From 51479ed9a3f76ec3b8113e2614438cef77e0ce27 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20K=C4=99pie=C5=84?= Date: Wed, 3 Feb 2021 11:44:02 +0100 Subject: [PATCH] Make sphinx-build warnings fatal In order to prevent documentation building issues from being glossed over, pass the -W command line switch to all sphinx-build invocations. This causes the latter to return with a non-zero exit code whenever any Sphinx warnings are triggered. --- Makefile.docs | 1 + 1 file changed, 1 insertion(+) diff --git a/Makefile.docs b/Makefile.docs index 8fe3114dbc..3b2700687b 100644 --- a/Makefile.docs +++ b/Makefile.docs @@ -10,6 +10,7 @@ AM_V_SPHINX_0 = @echo " SPHINX $@"; SPHINXBUILDDIR = $(builddir)/_build common_SPHINXOPTS = \ + -W \ -c $(srcdir) \ -a \ $(SPHINX_V)