Skip to content

Commit 15e3c50

Browse files
authored
Configure sphinx warnings as errors (#7697)
1 parent 51ce7cf commit 15e3c50

File tree

8 files changed

+14
-5
lines changed

8 files changed

+14
-5
lines changed

.readthedocs.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ build:
77

88
sphinx:
99
configuration: docs/source/conf.py
10+
fail_on_warning: true
1011

1112
python:
1213
install:

distributed/scheduler.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -616,7 +616,7 @@ def memory(self) -> MemoryState:
616616
goes back down, and spilled goes down by 100MB as it should have to
617617
begin with.
618618
619-
https://github.com/dask/distributed/issues/6002 will let us solve this.
619+
:issue:`6002` will let us solve this.
620620
"""
621621
return MemoryState(
622622
process=self.metrics["memory"],

docs/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
#
33

44
# You can set these variables from the command line.
5-
SPHINXOPTS = -j4
5+
SPHINXOPTS = -j4 -W --keep-going
66
SPHINXBUILD = sphinx-build
77
PAPER =
88
BUILDDIR = build

docs/source/changelog.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1125,7 +1125,7 @@ Released on May 2, 2022
11251125

11261126
Highlights
11271127
^^^^^^^^^^
1128-
This is a bugfix release for `this issue <https://github.com/dask/distributed/issues/6255>`_.
1128+
This is a bugfix release for :issue:`this issue<6255>`.
11291129

11301130
Enhancements
11311131
^^^^^^^^^^^^

docs/source/conf.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -426,6 +426,12 @@
426426
</html>
427427
"""
428428

429+
suppress_warnings = [
430+
# more than one target found for cross-reference
431+
# https://github.com/sphinx-doc/sphinx/issues/10400
432+
"ref.python"
433+
]
434+
429435

430436
def copy_legacy_redirects(app, docname):
431437
if app.builder.name == "html":

docs/source/killed.rst

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,8 +86,7 @@ as you would for ordinary exceptions happening during task execution.
8686
Specifically for connectivity problems (e.g., timeout exceptions in the worker
8787
logs), you will need to diagnose your networking infrastructure, which is more
8888
complicated than can be described here. Commonly, it may involve logging into
89-
the machine running the affected worker
90-
(although you can :ref:`ipylaunch`).
89+
the machine running the affected worker.
9190

9291
Killed by Nanny
9392
'''''''''''''''

docs/source/queues.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
:orphan:
2+
13
Data Streams with Queues
24
========================
35

docs/source/worker-state.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
.. _worker-state:
2+
23
Worker State Machine
34
====================
45

0 commit comments

Comments
 (0)