1
0
mirror of https://github.com/funkypenguin/geek-cookbook/ synced 2025-12-12 17:26:19 +00:00

Try to fix builds!

Signed-off-by: David Young <davidy@funkypenguin.co.nz>
This commit is contained in:
David Young
2023-07-08 11:26:53 +12:00
parent 00a7e450b0
commit 8870c84cfe
2 changed files with 3 additions and 2 deletions

View File

@@ -35,7 +35,7 @@ plugins:
external_assets_exclude:
- shields.io/*
optimize:
enabled: false # seems to break netlify builds :(
enabled: true # seems to break netlify builds :(
with-pdf:
#author: David Young
#copyright: ANY TEXT

View File

@@ -10,6 +10,8 @@ set -x # debug failed builds
# Run python build script to check for errors
# python3 scripts/build.py mkdocs.yml
apt-get install -y pngquant # we need this for optimizing images
# install mkdocs (or insiders version, if we're passed a GH_TOKEN var)
if [ -z "$GH_TOKEN" ]
then
@@ -19,7 +21,6 @@ then
else
echo "GH_TOKEN passed, doing an insiders build.."
pip install git+https://${GH_TOKEN}@github.com/squidfunk/mkdocs-material-insiders.git
pip install pngquant
ENABLE_PDF_EXPORT=1 mkdocs build -f mkdocs-insiders.yml
# Put the PDF into secret location