mirror of
https://github.com/funkypenguin/geek-cookbook/
synced 2025-12-13 09:46:23 +00:00
Try to fix builds!
Signed-off-by: David Young <davidy@funkypenguin.co.nz>
This commit is contained in:
@@ -35,7 +35,7 @@ plugins:
|
|||||||
external_assets_exclude:
|
external_assets_exclude:
|
||||||
- shields.io/*
|
- shields.io/*
|
||||||
optimize:
|
optimize:
|
||||||
enabled: false # seems to break netlify builds :(
|
enabled: true # seems to break netlify builds :(
|
||||||
with-pdf:
|
with-pdf:
|
||||||
#author: David Young
|
#author: David Young
|
||||||
#copyright: ANY TEXT
|
#copyright: ANY TEXT
|
||||||
|
|||||||
@@ -10,6 +10,8 @@ set -x # debug failed builds
|
|||||||
# 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
|
||||||
|
|
||||||
|
apt-get install -y pngquant # we need this for optimizing images
|
||||||
|
|
||||||
# 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
|
||||||
@@ -19,7 +21,6 @@ then
|
|||||||
else
|
else
|
||||||
echo "GH_TOKEN passed, doing an insiders build.."
|
echo "GH_TOKEN passed, doing an insiders build.."
|
||||||
pip install git+https://${GH_TOKEN}@github.com/squidfunk/mkdocs-material-insiders.git
|
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
|
ENABLE_PDF_EXPORT=1 mkdocs build -f mkdocs-insiders.yml
|
||||||
|
|
||||||
# Put the PDF into secret location
|
# Put the PDF into secret location
|
||||||
|
|||||||
Reference in New Issue
Block a user