diff --git a/conf.py b/conf.py index 27795dd48..7e0ea0810 100644 --- a/conf.py +++ b/conf.py @@ -3,7 +3,6 @@ from urllib.request import urlopen extensions = [ - 'linklint.ext', 'notfound.extension', 'sphinx.ext.extlinks', 'sphinx.ext.intersphinx', @@ -11,6 +10,7 @@ 'sphinx_copybutton', 'sphinx_inline_tabs', 'sphinx_last_updated_by_git', + 'sphinx_linklint.ext', 'sphinxcontrib.youtube', 'sphinxext.opengraph', 'sphinxext.rediraffe', diff --git a/documentation/style-guide.rst b/documentation/style-guide.rst index 11032a59f..9747651b6 100644 --- a/documentation/style-guide.rst +++ b/documentation/style-guide.rst @@ -237,7 +237,7 @@ the second mention is more appropriate for a link. Some units are long enough to have a few repeated links. Use judgement to decide when a link will help the reader. -We use the :pypi:`linklint Sphinx extension ` to suppress two kinds +We use the :pypi:`linklint Sphinx extension ` to suppress two kinds of excessive links: references in a section to itself and duplicate references in a paragraph. Previously, editors had to carefully use an exclamation mark in a Sphinx reference (``:func:`!map```) to prevent such links. diff --git a/requirements.txt b/requirements.txt index 789f9597a..a63e5aa8a 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,12 +1,12 @@ furo>=2025.12.19 jinja2 -linklint sphinx-autobuild>=2025.8.25 sphinx-inline-tabs>=2025.12.21.14 sphinx-last-updated-by-git>=0.3.8 sphinx-lint==1.0.2 sphinx-notfound-page>=1.1.0 sphinx_copybutton>=0.5.2 +sphinx_linklint sphinxcontrib-youtube>=1.5.0 sphinxext-opengraph>=0.13.0 sphinxext-rediraffe