mirror of
https://github.com/funkypenguin/geek-cookbook/
synced 2025-12-13 17:56:26 +00:00
* Test updating CTA, using insiders version of mkdocs-material * Dark mode, baby! Signed-off-by: David Young <davidy@funkypenguin.co.nz> * What will netlify do if I remove requirements.txt? Signed-off-by: David Young <davidy@funkypenguin.co.nz> * What will netlify do if I remove requirements.txt? Signed-off-by: David Young <davidy@funkypenguin.co.nz> * Only build the insiders version Signed-off-by: David Young <davidy@funkypenguin.co.nz> * Remove some broken links Signed-off-by: David Young <davidy@funkypenguin.co.nz> * Fix dead link Signed-off-by: David Young <davidy@funkypenguin.co.nz> * Remove twitter embed Signed-off-by: David Young <davidy@funkypenguin.co.nz> * Fix dead links Signed-off-by: David Young <davidy@funkypenguin.co.nz> * Mooar dead links Signed-off-by: David Young <davidy@funkypenguin.co.nz> * Final dead link Signed-off-by: David Young <davidy@funkypenguin.co.nz>
23 lines
643 B
Bash
Executable File
23 lines
643 B
Bash
Executable File
#!/bin/bash
|
|
# This script prepares mkdocs for a build (there are some adjustments to be made to the recipes before publishing)
|
|
|
|
# Fetch git history so that we get last-updated timestamps
|
|
git fetch --unshallow
|
|
|
|
# install mkdocs (or insiders version, if we're passed a GH_TOKEN var)
|
|
if [ -z "$GH_TOKEN" ]
|
|
then
|
|
pip install mkdocs-material
|
|
else
|
|
pip install git+https://${GH_TOKEN}@github.com/squidfunk/mkdocs-material-insiders.git
|
|
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
|