-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
29 lines (25 loc) · 820 Bytes
/
Makefile
File metadata and controls
29 lines (25 loc) · 820 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
# Makefile for Sphinx documentation
#
# You can set these variables from the command line.
SPHINXBUILD = sphinx-build
BUILDDIR = docs/_build
SOURCEDIR = docs
CONFIGDIR = docs
GH_PAGES_SOURCES = docs app utils config.py Makefile
.PHONY: clean
clean:
rm -rf $(BUILDDIR)/*
.PHONY: html
html:
$(SPHINXBUILD) -b html -c ${CONFIGDIR} ${SOURCEDIR} $(BUILDDIR)/html
@echo
@echo "Build finished. The HTML pages are in $(BUILDDIR)/html."
.PHONY: gh-pages
gh-pages:
git checkout gh-pages && git checkout master $(GH_PAGES_SOURCES) && git reset HEAD
make html
rm -rf _sources _static
mv -fv --backup=off ${BUILDDIR}/html/* .
rm -rf $(GH_PAGES_SOURCES)
git add -A
git commit -m "Generated gh-pages for `git log master -1 --pretty=short --abbrev-commit`" && git push origin gh-pages ; git checkout master