summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile10
1 files changed, 6 insertions, 4 deletions
diff --git a/Makefile b/Makefile
index 3556c038..3524d6fd 100644
--- a/Makefile
+++ b/Makefile
@@ -129,8 +129,10 @@ build_ext:
# Documentation
+DOCBIN = .tox/doc/bin
SPHINXOPTS = -aE
-SPHINXBUILD = .tox/doc/bin/sphinx-build $(SPHINXOPTS)
+SPHINXBUILD = $(DOCBIN)/sphinx-build $(SPHINXOPTS)
+SPHINXAUTOBUILD = $(DOCBIN)/sphinx-autobuild -p 9876 --ignore '.git/**' --open-browser
WEBHOME = ~/web/stellated/
WEBSAMPLE = $(WEBHOME)/files/sample_coverage_html
WEBSAMPLEBETA = $(WEBHOME)/files/sample_coverage_html_beta
@@ -139,11 +141,11 @@ docreqs:
tox -q -e doc --notest
dochtml: docreqs ## Build the docs HTML output.
- .tox/doc/bin/python doc/check_copied_from.py doc/*.rst
+ $(DOCBIN)/python doc/check_copied_from.py doc/*.rst
$(SPHINXBUILD) -b html doc doc/_build/html
-docopen: dochtml
- open doc/_build/html/index.html
+docdev: dochtml ## Build docs, and auto-watch for changes.
+ PATH=$(DOCBIN):$(PATH) $(SPHINXAUTOBUILD) -b html doc doc/_build/html
docspell: docreqs
$(SPHINXBUILD) -b spelling doc doc/_spell