Skip to content

Commit

Permalink
add regenerate_github_static_files.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
garybernhardt committed Mar 6, 2011
1 parent 1163da8 commit b45f571
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions regenerate_github_static_files.sh
@@ -0,0 +1,16 @@
#!/bin/bash

set -e

if [[ `git symbolic-ref HEAD` != "refs/heads/gh-pages" ]]; then
echo "$0: cowardly refusing to commit generated docs on a branch other than gh-pages"
exit 1
fi

set -o verbose

git merge master
sphinx-build -b singlehtml docs .
git add --all
git commit -m 'generate'

0 comments on commit b45f571

Please sign in to comment.