Skip to content

Commit 89bcaf8

Browse files
committed
raise nitpicky warnings as errors
1 parent 8e22171 commit 89bcaf8

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

.github/workflows/check_external_links.yml .github/workflows/check_sphinx_links.yml

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
name: Check Sphinx external links
1+
name: Check Sphinx links
22
on:
33
pull_request:
44
schedule:
55
- cron: '0 5 * * *' # once per day at midnight ET
66
workflow_dispatch:
77

88
jobs:
9-
check-external-links:
9+
check-sphinx-links:
1010
runs-on: ubuntu-latest
1111
steps:
1212
- name: Cancel non-latest runs
@@ -31,5 +31,5 @@ jobs:
3131
python -m pip install -r requirements-doc.txt
3232
python -m pip install .
3333
34-
- name: Check Sphinx external links
35-
run: sphinx-build -b linkcheck ./docs/source ./test_build
34+
- name: Check Sphinx internal and external links
35+
run: sphinx-build -W -b linkcheck ./docs/source ./test_build

docs/Makefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ changes:
149149
@echo "The overview file is in $(BUILDDIR)/changes."
150150

151151
linkcheck:
152-
$(SPHINXBUILD) -b linkcheck $(ALLSPHINXOPTS) $(BUILDDIR)/linkcheck
152+
$(SPHINXBUILD) -W -b linkcheck $(ALLSPHINXOPTS) $(BUILDDIR)/linkcheck
153153
@echo
154154
@echo "Link check complete; look for any errors in the above output " \
155155
"or in $(BUILDDIR)/linkcheck/output.txt."

docs/make.bat

+1-1
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ if "%1" == "changes" (
183183
)
184184

185185
if "%1" == "linkcheck" (
186-
%SPHINXBUILD% -b linkcheck %ALLSPHINXOPTS% %BUILDDIR%/linkcheck
186+
%SPHINXBUILD% -W -b linkcheck %ALLSPHINXOPTS% %BUILDDIR%/linkcheck
187187
if errorlevel 1 exit /b 1
188188
echo.
189189
echo.Link check complete; look for any errors in the above output ^

0 commit comments

Comments
 (0)