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

Create better build script (#128)

This commit is contained in:
Thomas
2021-01-04 16:07:40 +13:00
committed by GitHub
parent 6892542f9d
commit 1c4b8ed04c
2 changed files with 236 additions and 13 deletions

View File

@@ -4,19 +4,8 @@
# Fetch git history so that we get last-updated timestamps
git fetch --unshallow
# Append a common footer to all recipes/swarm docs
for i in `find manuscript/ -name "*.md" | grep -v index.md`
do
# Does this recipe already have a "tip your waiter" section?
grep -q "Tip your waiter" $i
if [ $? -eq 1 ]
then
echo -e "\n" >> $i
cat scripts/recipe-footer.md >> $i
else
echo "WARNING - hard-coded footer exists in $i"
fi
done
# Run python build script
python3 scripts/build.py mkdocs.yml
# Now build the docs for publishing
mkdocs build -f mkdocs.yml