Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

📝 Make Sphinx strict about broken references #2168

Merged
merged 2 commits into from
Aug 21, 2021
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
📝 Make Sphinx strict about broken references
webknjaz committed Aug 20, 2021

Verified

This commit was signed with the committer’s verified signature.
webknjaz 🇺🇦 Sviatoslav Sydorenko (Святослав Сидоренко)
commit b09631d1d764c80d54238cc283ed44d472950347
1 change: 1 addition & 0 deletions .readthedocs.yml
Original file line number Diff line number Diff line change
@@ -15,3 +15,4 @@ python:
sphinx:
builder: html
configuration: docs/conf.py
fail_on_warning: true
2 changes: 1 addition & 1 deletion docs/changelog.rst
Original file line number Diff line number Diff line change
@@ -72,7 +72,7 @@ Bugfixes
^^^^^^^^

- Distinguish between normal Windows Python and MSYS2 Python when looking for
virtualenv executable path. Adds os.sep to :class:`InterpreterInfo`
virtualenv executable path. Adds os.sep to :class:`~tox.interpreters.InterpreterInfo`
- by :user:`jschwartzentruber`
`#1982 <https://github.com/tox-dev/tox/issues/1982>`_
- Fix a ``tox-conda`` isolation build bug - by :user:`AntoineD`.
5 changes: 5 additions & 0 deletions docs/conf.py
Original file line number Diff line number Diff line change
@@ -129,3 +129,8 @@ def parse_node(env, text, node):
"pull": ("https://github.com/tox-dev/tox/pull/%s", "p"),
"user": ("https://github.com/%s", "@"),
}

nitpicky = True
nitpick_ignore = [
("py:class", "tox.interpreters.InterpreterInfo"),
]
2 changes: 1 addition & 1 deletion docs/example/basic.rst
Original file line number Diff line number Diff line change
@@ -212,7 +212,7 @@ Further customizing installation
By default tox uses `pip`_ to install packages, both the
package-under-test and any dependencies you specify in ``tox.ini``.
You can fully customize tox's install-command through the
testenv-specific :conf:`install_command=ARGV` setting.
testenv-specific :conf:`install_command = ARGV <install_command>` setting.
For instance, to use pip's ``--find-links`` and ``--no-index`` options to specify
an alternative source for your dependencies:

2 changes: 1 addition & 1 deletion docs/index.rst
Original file line number Diff line number Diff line change
@@ -137,7 +137,7 @@ Current features
* :doc:`plugin system <plugins>` to modify tox execution with simple hooks.

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

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

2 changes: 1 addition & 1 deletion tox.ini
Original file line number Diff line number Diff line change
@@ -50,7 +50,7 @@ deps =
description = invoke sphinx-build to build the HTML docs
basepython = python3.8
extras = docs
commands = sphinx-build -d "{toxworkdir}/docs_doctree" docs "{toxworkdir}/docs_out" --color -W -bhtml {posargs}
commands = sphinx-build -d "{toxworkdir}/docs_doctree" docs "{toxworkdir}/docs_out" --color -W --keep-going -n -bhtml {posargs}
python -c 'import pathlib; print("documentation available under file://\{0\}".format(pathlib.Path(r"{toxworkdir}") / "docs_out" / "index.html"))'

[testenv:package_description]