mirror of
https://github.com/vale981/emacs-ipython-notebook
synced 2025-03-04 16:51:38 -05:00
Automate updating gh-pages
This commit is contained in:
parent
5f5e2a293c
commit
1af6508414
2 changed files with 18 additions and 1 deletions
11
doc/Makefile
11
doc/Makefile
|
@ -14,7 +14,9 @@ ALLSPHINXOPTS = -d $(BUILDDIR)/doctrees $(PAPEROPT_$(PAPER)) $(SPHINXOPTS) sou
|
|||
# the i18n builder cannot share the environment and doctrees with the others
|
||||
I18NSPHINXOPTS = $(PAPEROPT_$(PAPER)) $(SPHINXOPTS) source
|
||||
|
||||
.PHONY: help clean html dirhtml singlehtml pickle json htmlhelp qthelp devhelp epub latex latexpdf text man changes linkcheck doctest gettext
|
||||
.PHONY: help clean html dirhtml singlehtml pickle json htmlhelp \
|
||||
qthelp devhelp epub latex latexpdf text man changes linkcheck \
|
||||
doctest gettext update-gh-pages push-gh-pages
|
||||
|
||||
help:
|
||||
@echo "Please use \`make <target>' where <target> is one of"
|
||||
|
@ -151,3 +153,10 @@ doctest:
|
|||
$(SPHINXBUILD) -b doctest $(ALLSPHINXOPTS) $(BUILDDIR)/doctest
|
||||
@echo "Testing of doctests in the sources finished, look at the " \
|
||||
"results in $(BUILDDIR)/doctest/output.txt."
|
||||
|
||||
update-gh-pages: clean html
|
||||
@echo "Update gh-pages"
|
||||
./update-gh-pages.sh
|
||||
|
||||
push-gh-pages:
|
||||
cd build/html && git push origin gh-pages
|
||||
|
|
8
doc/update-gh-pages.sh
Executable file
8
doc/update-gh-pages.sh
Executable file
|
@ -0,0 +1,8 @@
|
|||
#!/bin/bash
|
||||
cd build/html/
|
||||
git add .
|
||||
if [ -n "$(git ls-files --deleted)" ]
|
||||
then
|
||||
git ls-files --deleted | xargs git rm
|
||||
fi
|
||||
git commit -m "Update"
|
Loading…
Add table
Reference in a new issue