1
0
mirror of https://github.com/funkypenguin/geek-cookbook/ synced 2025-12-13 01:36:23 +00:00
Files
geek-cookbook/scripts/build.sh
2021-01-04 16:07:40 +13:00

14 lines
417 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
# 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