doc: handle 'make htmldocs' warnings as errors
authorHeinrich Schuchardt <xypron.glpk@gmx.de>
Sun, 1 Aug 2021 20:11:39 +0000 (22:11 +0200)
committerHeinrich Schuchardt <xypron.glpk@gmx.de>
Sun, 1 Aug 2021 20:23:01 +0000 (22:23 +0200)
Parameter -W for sphinx-build turns build warnings into errors. This helps
us to avoid bad patches passing Gitlab CI.

Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
doc/Makefile

index 683e4b5..050d9dd 100644 (file)
@@ -6,7 +6,7 @@ subdir-y :=
 
 # You can set these variables from the command line.
 SPHINXBUILD   = sphinx-build
-SPHINXOPTS    =
+SPHINXOPTS    = -W
 SPHINXDIRS    = .
 _SPHINXDIRS   = $(patsubst $(srctree)/doc/%/conf.py,%,$(wildcard $(srctree)/doc/*/conf.py))
 SPHINX_CONF   = conf.py