From: Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> Date: Fri, 6 Mar 2026 06:50:06 +0000 (+0100) Subject: [3.13] Docs: use a Sphinx extension to eliminate excessive links (GH-145130) (#145574) X-Git-Tag: v3.13.13~130 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=0b4f366b5ca33572da5da935bce82eeeea759091;p=thirdparty%2FPython%2Fcpython.git [3.13] Docs: use a Sphinx extension to eliminate excessive links (GH-145130) (#145574) Docs: use a Sphinx extension to eliminate excessive links (GH-145130) (cherry picked from commit 15f6479c415cc6cd219cd25c1d94bab17d720cbc) Co-authored-by: Ned Batchelder --- diff --git a/Doc/conf.py b/Doc/conf.py index fd7db0140923..b15f31e7db18 100644 --- a/Doc/conf.py +++ b/Doc/conf.py @@ -41,6 +41,7 @@ extensions = [ # Skip if downstream redistributors haven't installed them _OPTIONAL_EXTENSIONS = ( + 'linklint.ext', 'notfound.extension', 'sphinxext.opengraph', ) diff --git a/Doc/requirements.txt b/Doc/requirements.txt index d0107744ecbe..536ae57e4efc 100644 --- a/Doc/requirements.txt +++ b/Doc/requirements.txt @@ -18,4 +18,6 @@ sphinx-notfound-page~=1.0.0 # to install that as well. python-docs-theme>=2023.3.1,!=2023.7 +linklint + -c constraints.txt