8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 696e52a commit c556409Copy full SHA for c556409
doc/.gitignore
@@ -1 +1,2 @@
1
doctrees
2
+gh-pages
doc/Makefile
@@ -18,3 +18,7 @@ help:
18
# "make mode" option. $(O) is meant as a shortcut for $(SPHINXOPTS).
19
%: Makefile
20
@$(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
21
+
22
23
+gh-pages:
24
+ @./update-gh-pages.sh
doc/update-gh-pages.sh
@@ -0,0 +1,15 @@
+#!/usr/bin/env bash
+set -ex
3
+CLONE_URL=$(git remote -v | grep origin | head -n1 | awk '{print $2}')
4
+if [ ! -d gh-pages ]; then
5
+ git clone -b gh-pages ${CLONE_URL} gh-pages
6
+else
7
+ (cd gh-pages && git pull origin gh-pages)
8
+fi
9
10
+cd gh-pages
11
+rm -rf *
12
+cp -r ../html/* .
13
+git add -A
14
+git commit -m 'Update docs'
15
+git push origin gh-pages
0 commit comments