| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 696e52a commit c556409
3 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1 +1,2 @@ | |||
| 1 | 1 | doctrees | |
| 2 | + gh-pages | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -18,3 +18,7 @@ help: | |||
| 18 | 18 | # "make mode" option. $(O) is meant as a shortcut for $(SPHINXOPTS). | |
| 19 | 19 | %: Makefile | |
| 20 | 20 | @$(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O) | |
| 21 | + | ||
| 22 | + | ||
| 23 | + gh-pages: | ||
| 24 | + @./update-gh-pages.sh | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -0,0 +1,15 @@ | |||
| 1 | + #!/usr/bin/env bash | ||
| 2 | + 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 | ||
| Back | FazBrowse Home | New Git URL |
0 commit comments