Skip to content

Commit dc105fe

Browse files
authored
Turn Sphinx warnings into errors (#1809)
This will – for example – prevent "floating" documents that aren't part of the TOC structure.
1 parent 69493db commit dc105fe

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

docs/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ PYTHON = python3
1010
VENVDIR = ./venv
1111
SPHINXBUILD = PATH=$(VENVDIR)/bin:$$PATH sphinx-build
1212

13-
ALLSPHINXOPTS = -b $(BUILDER) -d build/doctrees $(SPHINXOPTS) . build/$(BUILDER) $(SOURCES)
13+
ALLSPHINXOPTS = -W -b $(BUILDER) -d build/doctrees $(SPHINXOPTS) . build/$(BUILDER) $(SOURCES)
1414

1515
.PHONY: help clean build html text venv Makefile
1616

docs/make.bat

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ if errorlevel 9009 (
2525
exit /b 1
2626
)
2727

28-
%SPHINXBUILD% -M %1 %SOURCEDIR% %BUILDDIR% %SPHINXOPTS% %O%
28+
%SPHINXBUILD% -W -M %1 %SOURCEDIR% %BUILDDIR% %SPHINXOPTS% %O%
2929
goto end
3030

3131
:help

0 commit comments

Comments
 (0)