mirror of
https://github.com/funkypenguin/geek-cookbook/
synced 2025-12-13 01:36:23 +00:00
Trial plausible for transparent analytics (#181)
This commit is contained in:
@@ -4,19 +4,18 @@
|
||||
# Fetch git history so that we get last-updated timestamps
|
||||
git fetch --unshallow
|
||||
|
||||
# Run python build script to check for errors
|
||||
python3 scripts/build.py mkdocs.yml
|
||||
|
||||
# install mkdocs (or insiders version, if we're passed a GH_TOKEN var)
|
||||
if [ -z "$GH_TOKEN" ]
|
||||
then
|
||||
pip install mkdocs-material
|
||||
mkdocs build -f mkdocs.yml
|
||||
else
|
||||
pip install git+https://${GH_TOKEN}@github.com/squidfunk/mkdocs-material-insiders.git
|
||||
mkdocs build -f mkdocs-insiders.yml
|
||||
fi
|
||||
|
||||
# Run python build script
|
||||
python3 scripts/build.py mkdocs.yml
|
||||
|
||||
# Now build the docs for publishing
|
||||
mkdocs build -f mkdocs.yml
|
||||
|
||||
# Setup any necessary netlify redirects
|
||||
cp netlify_redirects.txt site/_redirects
|
||||
|
||||
3
scripts/serve-insiders.sh
Executable file
3
scripts/serve-insiders.sh
Executable file
@@ -0,0 +1,3 @@
|
||||
#!/bin/bash
|
||||
docker build --build-arg FROM_SOURCE=ghcr.io/geek-cookbook/mkdocs-material-insiders . -t funkypenguin/mkdocs-material
|
||||
docker run --rm --name mkdocs-material -it -p 8123:8000 -v ${PWD}:/docs funkypenguin/mkdocs-material serve -f mkdocs-insiders.yml --dev-addr 0.0.0.0:8000 --dirtyreload
|
||||
@@ -1,4 +1,4 @@
|
||||
#!/bin/bash
|
||||
docker pull squidfunk/mkdocs-material:latest
|
||||
docker build . -t funkypenguin/mkdocs-material
|
||||
docker run --rm --name mkdocs-material -it -p 8123:8000 -v ${PWD}:/docs funkypenguin/mkdocs-material
|
||||
docker run --rm --name mkdocs-material -it -p 8123:8000 -v ${PWD}:/docs funkypenguin/mkdocs-material serve --dev-addr 0.0.0.0:8000 --dirtyreload
|
||||
Reference in New Issue
Block a user