Files
stacks-puppet-node/build_docs.sh
Aaron Blankstein b344c74a5b touch up doc builder
2017-07-06 11:23:18 -04:00

12 lines
330 B
Bash
Executable File

#!/usr/bin/env bash
set -e
PREVIOUS_BRANCH=$(git branch | grep ^\* | awk '{print $2}')
aglio -i docs/api-specs.md --theme-template docs/aglio_templates/core.jade -o /tmp/index.html
git checkout gh-pages
cp /tmp/index.html .
git add index.html
git commit -m "updating generated doc outputs"
git push
git checkout $PREVIOUS_BRANCH