Add documentation build to CI, warnings as errors

Adds a CircleCI job to build the documentation and makes it so that
sphinx warnings are treated as errors.
This commit is contained in:
Tim Head
2018-08-03 15:30:48 +02:00
parent a98a5c322b
commit b48b55e3bd
2 changed files with 45 additions and 2 deletions

View File

@@ -2,7 +2,7 @@
#
# You can set these variables from the command line.
SPHINXOPTS =
SPHINXOPTS = -W
SPHINXBUILD = sphinx-build
SPHINXPROJ = TheLittlestJupyterHub
SOURCEDIR = .
@@ -17,4 +17,4 @@ help:
# Catch-all target: route all unknown targets to Sphinx using the new
# "make mode" option. $(O) is meant as a shortcut for $(SPHINXOPTS).
%: Makefile
@$(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
@$(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)