1
0
mirror of https://github.com/funkypenguin/geek-cookbook/ synced 2025-12-17 19:51:43 +00:00

Update for leanpub preview

This commit is contained in:
AutoPenguin
2020-06-03 01:42:01 +00:00
parent 65dd34c7ea
commit 2e8e16157b
193 changed files with 12667 additions and 155 deletions

View File

@@ -1,14 +1,11 @@
#!/bin/bash
# This script prepares mkdocs for a build (there are some adjustments to be made to the recipes before publishing)
# Copy the contents of "manuscript" to a new "publish" folder
mkdir -p publish
mkdir -p publish/overrides
cp -r {manuscript,overrides} publish/
cp mkdocs.yml publish/
# 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 publish/manuscript/ -name "*.md" | grep -v index.md`
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
@@ -22,7 +19,7 @@ do
done
# Now build the docs for publishing
mkdocs build -f publish/mkdocs.yml
mkdocs build -f mkdocs.yml
# Setup any necessary netlify redirects
cp netlify_redirects.txt publish/site/_redirects
cp netlify_redirects.txt site/_redirects