From b170eac3e00f65c3d56d48d5aa8ee18f00a7baf9 Mon Sep 17 00:00:00 2001 From: Sviatoslav Sydorenko Date: Fri, 16 Oct 2020 01:09:14 +0200 Subject: =?UTF-8?q?=F0=9F=9A=91=20Make=20Sphinx=20nitpicky=20about=20broke?= =?UTF-8?q?n=20references?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fixes #2424 --- docs/conf.py | 4 ++++ tox.ini | 11 ++++++++++- 2 files changed, 14 insertions(+), 1 deletion(-) diff --git a/docs/conf.py b/docs/conf.py index d5111391..1928af58 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -146,3 +146,7 @@ link_files = { ], ), } + + +# Be strict about any broken references: +nitpicky = True diff --git a/tox.ini b/tox.ini index 535b67d3..828d2c02 100644 --- a/tox.ini +++ b/tox.ini @@ -49,7 +49,16 @@ extras = testing changedir = docs commands = - python -m sphinx . {toxinidir}/build/html + {envpython} -m sphinx \ + -j auto \ + -b html \ + --color \ + -a \ + -n \ + -W \ + -d "{temp_dir}/.doctrees" \ + . \ + "{toxinidir}/build/html" [testenv:finalize] skip_install = True -- cgit v1.2.1