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

Modernize the ceph recipe

This commit is contained in:
David Young
2020-05-25 15:14:02 +12:00
committed by GitHub
parent 3137b1f2ce
commit 81d50951bf
4 changed files with 177 additions and 154 deletions

View File

@@ -4,22 +4,22 @@
# Copy the contents of "manuscript" to a new "publish" folder
mkdir -p publish
mkdir -p publish/overrides
cp -r {manuscript,overrides} publish/
cp -pr {manuscript,overrides} publish/
cp mkdocs.yml publish/
# Append a common footer to all recipes/swarm docs
for i in `find publish/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
# # Append a common footer to all recipes/swarm docs
# for i in `find publish/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
# Now build the docs for publishing
mkdocs build -f publish/mkdocs.yml