1
0
mirror of https://github.com/funkypenguin/geek-cookbook/ synced 2025-12-13 01:36:23 +00:00

Fix markdownlint, add Discourse page

Signed-off-by: David Young <davidy@funkypenguin.co.nz>
This commit is contained in:
David Young
2022-08-23 10:47:09 +12:00
parent 956ebe8c38
commit 45a851df7a
30 changed files with 132 additions and 79 deletions

View File

@@ -11,17 +11,17 @@
if [ -z "$GH_TOKEN" ]
then
pip install mkdocs-material
ENABLE_PDF_EXPORT=1 mkdocs build -f mkdocs.yml
ENABLE_PDF_EXPORT=0 mkdocs build -f mkdocs.yml
else
# 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
pip install -e mkdocs-material-insiders
ENABLE_PDF_EXPORT=1 mkdocs build -f mkdocs-insiders.yml
ENABLE_PDF_EXPORT=0 mkdocs build -f mkdocs-insiders.yml
fi
# Setup any necessary netlify redirects
cp netlify_redirects.txt site/_redirects
# Put the PDF into secret location
mkdir -p site/${PDF_PATH}
mv site/funkypenguins-geek-cookbook.pdf site/${PDF_PATH}/
# mkdir -p site/${PDF_PATH}
# mv site/funkypenguins-geek-cookbook.pdf site/${PDF_PATH}/