Make Sphinx fail rendering on any warning (#3272)
This commit is contained in:
parent
2b53c224d1
commit
4a024e1ea1
7
Makefile
7
Makefile
|
@ -9,7 +9,7 @@ JOBS = 8
|
|||
SOURCES =
|
||||
# synchronise with render.yml -> deploy step
|
||||
OUTPUT_DIR = build
|
||||
SPHINXERRORHANDLING =
|
||||
SPHINXERRORHANDLING = -W --keep-going -w sphinx-warnings.txt
|
||||
|
||||
ALLSPHINXOPTS = -b $(BUILDER) -j $(JOBS) \
|
||||
$(SPHINXOPTS) $(SPHINXERRORHANDLING) . $(OUTPUT_DIR) $(SOURCES)
|
||||
|
@ -30,11 +30,6 @@ dirhtml: BUILDER = dirhtml
|
|||
dirhtml: venv
|
||||
$(SPHINXBUILD) $(ALLSPHINXOPTS)
|
||||
|
||||
## fail-warning to render PEPs to "pep-NNNN.html" files and fail the Sphinx build on any warning
|
||||
.PHONY: fail-warning
|
||||
fail-warning: venv
|
||||
$(SPHINXBUILD) $(ALLSPHINXOPTS) -W
|
||||
|
||||
## check-links to check validity of links within PEP sources
|
||||
.PHONY: check-links
|
||||
check-links: BUILDER = linkcheck
|
||||
|
|
Loading…
Reference in New Issue