From: Philipp Spitzer Date: Tue, 26 Feb 2019 20:59:52 +0000 (+0100) Subject: Add web target to Sphinx makefile. X-Git-Url: https://git.toastfreeware.priv.at/chrisu/seepark.git/commitdiff_plain/7419f864747b4cb78abcdf86b6f6f5cd523d334c Add web target to Sphinx makefile. --- diff --git a/doc/Makefile b/doc/Makefile index f036606..1b95ecc 100644 --- a/doc/Makefile +++ b/doc/Makefile @@ -6,6 +6,7 @@ SPHINXOPTS = SPHINXBUILD = sphinx-build PAPER = BUILDDIR = _build +WEBBUILDDIR = ../web/static/doc # Internal variables. PAPEROPT_a4 = -D latex_paper_size=a4 @@ -18,6 +19,7 @@ I18NSPHINXOPTS = $(PAPEROPT_$(PAPER)) $(SPHINXOPTS) . help: @echo "Please use \`make ' where is one of" @echo " html to make standalone HTML files" + @echo " web to make standalone HTML files and copy them to the seepark app" @echo " dirhtml to make HTML files named index.html in directories" @echo " singlehtml to make a single large HTML file" @echo " pickle to make pickle files" @@ -54,6 +56,12 @@ html: @echo @echo "Build finished. The HTML pages are in $(BUILDDIR)/html." +.PHONY: web +web: + $(SPHINXBUILD) -b html $(ALLSPHINXOPTS) $(WEBBUILDDIR) + @echo + @echo "Build finished. The HTML pages are in $(WEBBUILDDIR)." + .PHONY: dirhtml dirhtml: $(SPHINXBUILD) -b dirhtml $(ALLSPHINXOPTS) $(BUILDDIR)/dirhtml