mirror of
https://github.com/funkypenguin/geek-cookbook/
synced 2025-12-15 10:46:34 +00:00
Try to un-break deploy
This commit is contained in:
@@ -1,11 +1,8 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
# This script prepares mkdocs for a build (there are some adjustments to be made to the recipes before publishing)
|
# 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
|
# Fetch git history so that we get last-updated timestamps
|
||||||
# mkdir -p publish
|
git fetch --unshallow
|
||||||
# mkdir -p publish/overrides
|
|
||||||
# cp -pr {manuscript,overrides} publish/
|
|
||||||
# cp mkdocs.yml publish/
|
|
||||||
|
|
||||||
# Append a common footer to all recipes/swarm docs
|
# Append a common footer to all recipes/swarm docs
|
||||||
for i in `find manuscript/ -name "*.md" | grep -v index.md`
|
for i in `find manuscript/ -name "*.md" | grep -v index.md`
|
||||||
@@ -21,14 +18,8 @@ do
|
|||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|
||||||
# Fetch git history so that we get last-updated timestamps
|
|
||||||
git fetch --unshallow
|
|
||||||
|
|
||||||
# Now build the docs for publishing
|
# Now build the docs for publishing
|
||||||
# mkdocs build -f publish/mkdocs.yml
|
mkdocs build -f mkdocs.yml
|
||||||
mkdocs build
|
|
||||||
|
|
||||||
|
|
||||||
# Setup any necessary netlify redirects
|
# Setup any necessary netlify redirects
|
||||||
# cp netlify_redirects.txt publish/site/_redirects
|
cp netlify_redirects.txt site/_redirects
|
||||||
cp netlify_redirects.txt site/_redirects
|
|
||||||
Reference in New Issue
Block a user