Skip to content

Commit 02f2b98

Browse files
ezio-melottiAA-TurnerCAM-Gerlach
authored
Turn warnings into errors in the Makefile. (#906)
* Turn warnings into errors in the Makefile. * Restore missing label. * Add `--keep-going`. Co-authored-by: Adam Turner <[email protected]> * Add `-W --keep-going -n` to SPHINXOPTS. * Fix a warning in conf.py. * Update `make.bat`. * Unquote variable in make.bat. Co-authored-by: CAM Gerlach <[email protected]> Co-authored-by: Adam Turner <[email protected]> Co-authored-by: CAM Gerlach <[email protected]>
1 parent 18f73bb commit 02f2b98

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
PYTHON = python3
66
VENVDIR = ./venv
77
BUILDDIR = _build
8-
SPHINXOPTS =
8+
SPHINXOPTS = -W --keep-going -n
99
SPHINXBUILD = $(VENVDIR)/bin/sphinx-build
1010
SPHINXLINT = $(VENVDIR)/bin/sphinx-lint
1111
PAPER =

conf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
# http://www.sphinx-doc.org/en/stable/config.html?highlight=linkcheck#confval-linkcheck_anchors_ignore
4141
linkcheck_anchors_ignore = [
4242
# match any anchor that starts with a '/' since this is an invalid HTML anchor
43-
'\/.*',
43+
r'\/.*',
4444
]
4545
rediraffe_redirects = {
4646
"clang.rst": "advanced-tools/clang.rst",

make.bat

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ if not defined SPHINXLINT (
2222
)
2323

2424
set BUILDDIR=_build
25+
set SPHINXOPTS=-W --keep-going -n
2526
set ALLSPHINXOPTS=-d %BUILDDIR%/doctrees %SPHINXOPTS% .
2627
if NOT "%PAPER%" == "" (
2728
set ALLSPHINXOPTS=-D latex_paper_size=%PAPER% %ALLSPHINXOPTS%

0 commit comments

Comments
 (0)