Skip to content

Commit 3dbc21f

Browse files
authored
📝 Make Sphinx strict about broken references (#2168)
1 parent 63c98c2 commit 3dbc21f

File tree

7 files changed

+11
-4
lines changed

7 files changed

+11
-4
lines changed

.readthedocs.yml

+1
Original file line numberDiff line numberDiff line change
@@ -15,3 +15,4 @@ python:
1515
sphinx:
1616
builder: html
1717
configuration: docs/conf.py
18+
fail_on_warning: true

docs/changelog.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ Bugfixes
7272
^^^^^^^^
7373

7474
- Distinguish between normal Windows Python and MSYS2 Python when looking for
75-
virtualenv executable path. Adds os.sep to :class:`InterpreterInfo`
75+
virtualenv executable path. Adds os.sep to :class:`~tox.interpreters.InterpreterInfo`
7676
- by :user:`jschwartzentruber`
7777
`#1982 <https://github.com/tox-dev/tox/issues/1982>`_
7878
- Fix a ``tox-conda`` isolation build bug - by :user:`AntoineD`.

docs/changelog/2168.misc.rst

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Started enforcing valid references in Sphinx docs -- :user:`webknjaz`

docs/conf.py

+5
Original file line numberDiff line numberDiff line change
@@ -129,3 +129,8 @@ def parse_node(env, text, node):
129129
"pull": ("https://github.com/tox-dev/tox/pull/%s", "p"),
130130
"user": ("https://github.com/%s", "@"),
131131
}
132+
133+
nitpicky = True
134+
nitpick_ignore = [
135+
("py:class", "tox.interpreters.InterpreterInfo"),
136+
]

docs/example/basic.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,7 @@ Further customizing installation
212212
By default tox uses `pip`_ to install packages, both the
213213
package-under-test and any dependencies you specify in ``tox.ini``.
214214
You can fully customize tox's install-command through the
215-
testenv-specific :conf:`install_command=ARGV` setting.
215+
testenv-specific :conf:`install_command = ARGV <install_command>` setting.
216216
For instance, to use pip's ``--find-links`` and ``--no-index`` options to specify
217217
an alternative source for your dependencies:
218218

docs/index.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ Current features
137137
* :doc:`plugin system <plugins>` to modify tox execution with simple hooks.
138138

139139
* uses pip_ and setuptools_ by default. Support for configuring the installer command
140-
through :conf:`install_command=ARGV`.
140+
through :conf:`install_command = ARGV <install_command>`.
141141

142142
* **cross-Python compatible**: CPython-2.7, 3.5 and higher, Jython and pypy_.
143143

tox.ini

+1-1
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ deps =
5050
description = invoke sphinx-build to build the HTML docs
5151
basepython = python3.8
5252
extras = docs
53-
commands = sphinx-build -d "{toxworkdir}/docs_doctree" docs "{toxworkdir}/docs_out" --color -W -bhtml {posargs}
53+
commands = sphinx-build -d "{toxworkdir}/docs_doctree" docs "{toxworkdir}/docs_out" --color -W --keep-going -n -bhtml {posargs}
5454
python -c 'import pathlib; print("documentation available under file://\{0\}".format(pathlib.Path(r"{toxworkdir}") / "docs_out" / "index.html"))'
5555

5656
[testenv:package_description]

0 commit comments

Comments
 (0)