doc/Makefile: use sphinx-build -W by default

Use -W with sphinx-build by default to turn warnings into errors.

Signed-off-by: François Cami <fcami@redhat.com>
Reviewed-By: Christian Heimes <cheimes@redhat.com>
This commit is contained in:
François Cami 2020-04-21 12:18:03 +02:00
parent 51d15176a4
commit 7558e1413d
2 changed files with 2 additions and 2 deletions

View File

@ -3,7 +3,7 @@
# You can set these variables from the command line, and also
# from the environment for the first two.
SPHINXOPTS ?=
SPHINXOPTS ?= -W
SPHINXBUILD ?= sphinx-build
SOURCEDIR = .
BUILDDIR = _build

View File

@ -76,7 +76,7 @@ jobs:
echo "Running make target 'lint'"
make V=0 lint
echo "Building documentation"
make -C doc/ html SPHINXOPTS="-W"
make -C doc/ html
displayName: Lint sources and documentation
- template: templates/save-test-artifacts.yml
parameters: