Skip to content

Commit

Permalink
Add gh-pages Makefile target
Browse files Browse the repository at this point in the history
  • Loading branch information
matthew-brett committed Jan 7, 2015
1 parent bf277ee commit 98865e8
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
git-clean:
git clean -fxd

html:
cd doc && make html

gh-pages: git-clean html
git co gh-pages
git rm -r .
git checkout HEAD -- .gitignore README.md .nojekyll
cp -r doc/_build/html/* . # your sphinx build directory
git stage .
@echo 'Commit and push when ready or git reset --hard && git checkout master to revert'

0 comments on commit 98865e8

Please sign in to comment.