mirror of
https://github.com/funkypenguin/geek-cookbook/
synced 2025-12-13 09:46:23 +00:00
Refactor PDF generation
Signed-off-by: David Young <davidy@funkypenguin.co.nz>
This commit is contained in:
@@ -7,16 +7,18 @@ git fetch --unshallow
|
|||||||
# Run python build script to check for errors
|
# Run python build script to check for errors
|
||||||
python3 scripts/build.py mkdocs.yml
|
python3 scripts/build.py mkdocs.yml
|
||||||
|
|
||||||
|
ENABLE_PDF_EXPORT=1
|
||||||
|
|
||||||
# install mkdocs (or insiders version, if we're passed a GH_TOKEN var)
|
# install mkdocs (or insiders version, if we're passed a GH_TOKEN var)
|
||||||
if [ -z "$GH_TOKEN" ]
|
if [ -z "$GH_TOKEN" ]
|
||||||
then
|
then
|
||||||
pip install mkdocs-material
|
pip install mkdocs-material
|
||||||
ENABLE_PDF_EXPORT=true mkdocs build -f mkdocs.yml
|
mkdocs build -f mkdocs.yml
|
||||||
else
|
else
|
||||||
# Bypass search issue described at https://github.com/squidfunk/mkdocs-material/issues/3053
|
# Bypass search issue described at https://github.com/squidfunk/mkdocs-material/issues/3053
|
||||||
git clone --depth 1 https://${GH_TOKEN}@github.com/squidfunk/mkdocs-material-insiders.git
|
git clone --depth 1 https://${GH_TOKEN}@github.com/squidfunk/mkdocs-material-insiders.git
|
||||||
pip install -e mkdocs-material-insiders
|
pip install -e mkdocs-material-insiders
|
||||||
ENABLE_PDF_EXPORT=true mkdocs build -f mkdocs-insiders.yml
|
mkdocs build -f mkdocs-insiders.yml
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Setup any necessary netlify redirects
|
# Setup any necessary netlify redirects
|
||||||
|
|||||||
Reference in New Issue
Block a user