mirror of
https://github.com/borgbackup/borg.git
synced 2024-12-23 08:16:54 +00:00
Added makefile target to update gh-pages branch
This commit is contained in:
parent
06db9e897c
commit
cbfdedc329
1 changed files with 9 additions and 0 deletions
|
@ -128,3 +128,12 @@ doctest:
|
||||||
$(SPHINXBUILD) -b doctest $(ALLSPHINXOPTS) $(BUILDDIR)/doctest
|
$(SPHINXBUILD) -b doctest $(ALLSPHINXOPTS) $(BUILDDIR)/doctest
|
||||||
@echo "Testing of doctests in the sources finished, look at the " \
|
@echo "Testing of doctests in the sources finished, look at the " \
|
||||||
"results in $(BUILDDIR)/doctest/output.txt."
|
"results in $(BUILDDIR)/doctest/output.txt."
|
||||||
|
|
||||||
|
gh-pages: html
|
||||||
|
GH_PAGES_CLONE="`mktemp -d`" && \
|
||||||
|
git clone --branch gh-pages `git rev-parse --show-toplevel` $$GH_PAGES_CLONE && \
|
||||||
|
(cd $$GH_PAGES_CLONE && git rm -r *) && \
|
||||||
|
cp -r _build/html/* $$GH_PAGES_CLONE && \
|
||||||
|
(cd $$GH_PAGES_CLONE && git add -A && git commit -m 'Updated gh-pages' && git push) && \
|
||||||
|
rm -rf $$GH_PAGES_CLONE
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue