2015-09-18 19:22:55 +03:00
|
|
|
# Makefile for Sphinx documentation
|
|
|
|
#
|
|
|
|
|
|
|
|
# You can set these variables from the command line.
|
|
|
|
SPHINXOPTS =
|
|
|
|
SPHINXBUILD = sphinx-build
|
2024-10-03 16:03:16 +03:00
|
|
|
SOURCEDIR = .
|
2015-09-18 19:22:55 +03:00
|
|
|
BUILDDIR = _build
|
|
|
|
|
2024-10-03 16:03:16 +03:00
|
|
|
.PHONY: help clean html livehtml linkcheck
|
2015-09-18 19:22:55 +03:00
|
|
|
|
|
|
|
help:
|
|
|
|
@echo "Please use \`make <target>' where <target> is one of"
|
2024-10-03 16:03:16 +03:00
|
|
|
@awk '/^#/{c=substr($$0,3);next}c&&/^[[:alpha:]][[:alnum:]_-]+:/{print substr($$1,1,index($$1,":")),c}1{c=0}' $(MAKEFILE_LIST) | column -s: -t
|
2015-09-18 19:22:55 +03:00
|
|
|
|
2024-10-03 16:03:16 +03:00
|
|
|
# Clean the build output
|
2015-09-18 19:22:55 +03:00
|
|
|
clean:
|
|
|
|
-rm -rf $(BUILDDIR)/*
|
|
|
|
|
2024-10-03 16:03:16 +03:00
|
|
|
# Build the HTML docs
|
2015-09-18 19:22:55 +03:00
|
|
|
html:
|
2024-10-03 16:03:16 +03:00
|
|
|
$(SPHINXBUILD) -b html $(SPHINXOPTS) $(SOURCEDIR) $(BUILDDIR)/html
|
2015-09-18 19:22:55 +03:00
|
|
|
|
2024-10-03 16:03:16 +03:00
|
|
|
# Build and serve docs with live reload
|
|
|
|
livehtml:
|
|
|
|
sphinx-autobuild -b html --port 9000 --watch . -c . $(SOURCEDIR) $(BUILDDIR)/html
|
2015-09-18 19:22:55 +03:00
|
|
|
|
2024-10-03 16:03:16 +03:00
|
|
|
# Check all external links for integrity
|
2015-09-18 19:22:55 +03:00
|
|
|
linkcheck:
|
2024-10-03 16:03:16 +03:00
|
|
|
$(SPHINXBUILD) -b linkcheck $(SPHINXOPTS) $(SOURCEDIR) $(BUILDDIR)/linkcheck
|
2015-09-18 19:22:55 +03:00
|
|
|
@echo
|
|
|
|
@echo "Link check complete; look for any errors in the above output " \
|
|
|
|
"or in $(BUILDDIR)/linkcheck/output.txt."
|