Skip to content

Commit

Permalink
Turn warnings into errors in the Makefile. (#906)
Browse files Browse the repository at this point in the history
* Turn warnings into errors in the Makefile.

* Restore missing label.

* Add `--keep-going`.

Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>

* 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 <CAM.Gerlach@Gerlach.CAM>

Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
Co-authored-by: CAM Gerlach <CAM.Gerlach@Gerlach.CAM>
  • Loading branch information
3 people committed Jul 13, 2022
1 parent 18f73bb commit 02f2b98
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Makefile
Expand Up @@ -5,7 +5,7 @@
PYTHON = python3
VENVDIR = ./venv
BUILDDIR = _build
SPHINXOPTS =
SPHINXOPTS = -W --keep-going -n
SPHINXBUILD = $(VENVDIR)/bin/sphinx-build
SPHINXLINT = $(VENVDIR)/bin/sphinx-lint
PAPER =
Expand Down
2 changes: 1 addition & 1 deletion conf.py
Expand Up @@ -40,7 +40,7 @@
# http://www.sphinx-doc.org/en/stable/config.html?highlight=linkcheck#confval-linkcheck_anchors_ignore
linkcheck_anchors_ignore = [
# match any anchor that starts with a '/' since this is an invalid HTML anchor
'\/.*',
r'\/.*',
]
rediraffe_redirects = {
"clang.rst": "advanced-tools/clang.rst",
Expand Down
1 change: 1 addition & 0 deletions make.bat
Expand Up @@ -22,6 +22,7 @@ if not defined SPHINXLINT (
)

set BUILDDIR=_build
set SPHINXOPTS=-W --keep-going -n
set ALLSPHINXOPTS=-d %BUILDDIR%/doctrees %SPHINXOPTS% .
if NOT "%PAPER%" == "" (
set ALLSPHINXOPTS=-D latex_paper_size=%PAPER% %ALLSPHINXOPTS%
Expand Down

0 comments on commit 02f2b98

Please sign in to comment.