forked from garybernhardt/python-mock-comparison
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add regenerate_github_static_files.sh
- Loading branch information
1 parent
1163da8
commit b45f571
Showing
1 changed file
with
16 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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' | ||
|