From 4929b0b38f704cca3e5dfe982fa44be4e9e70cb8 Mon Sep 17 00:00:00 2001 From: Ned Batchelder Date: Sun, 22 Feb 2026 18:46:41 -0500 Subject: [PATCH 1/4] WIP: Docs: use a Sphinx extension to eliminate excessive links --- Doc/conf.py | 1 + Doc/requirements.txt | 2 ++ 2 files changed, 3 insertions(+) diff --git a/Doc/conf.py b/Doc/conf.py index d7effe2572ec44..2721e376298bc1 100644 --- a/Doc/conf.py +++ b/Doc/conf.py @@ -39,6 +39,7 @@ 'sphinx.ext.coverage', 'sphinx.ext.doctest', 'sphinx.ext.extlinks', + 'linklint.ext', ] # Skip if downstream redistributors haven't installed them diff --git a/Doc/requirements.txt b/Doc/requirements.txt index d0107744ecbe85..f8f3922ef5be18 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 +git+https://github.com/nedbat/linklint + -c constraints.txt From 70b2469a02c12e8203dc05e8cb026861dd5acdde Mon Sep 17 00:00:00 2001 From: Ned Batchelder Date: Tue, 24 Feb 2026 07:44:22 -0500 Subject: [PATCH 2/4] move linklint extension to optional --- Doc/conf.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Doc/conf.py b/Doc/conf.py index 2721e376298bc1..351af466213536 100644 --- a/Doc/conf.py +++ b/Doc/conf.py @@ -39,13 +39,13 @@ 'sphinx.ext.coverage', 'sphinx.ext.doctest', 'sphinx.ext.extlinks', - 'linklint.ext', ] # Skip if downstream redistributors haven't installed them _OPTIONAL_EXTENSIONS = ( 'notfound.extension', 'sphinxext.opengraph', + 'linklint.ext', ) for optional_ext in _OPTIONAL_EXTENSIONS: try: From e191ce2df4ee624ae3c083ac847f6a9fff65b018 Mon Sep 17 00:00:00 2001 From: Ned Batchelder Date: Sat, 28 Feb 2026 17:45:27 -0500 Subject: [PATCH 3/4] sort the list --- Doc/conf.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Doc/conf.py b/Doc/conf.py index 351af466213536..545049bb460419 100644 --- a/Doc/conf.py +++ b/Doc/conf.py @@ -43,9 +43,9 @@ # Skip if downstream redistributors haven't installed them _OPTIONAL_EXTENSIONS = ( + 'linklint.ext', 'notfound.extension', 'sphinxext.opengraph', - 'linklint.ext', ) for optional_ext in _OPTIONAL_EXTENSIONS: try: From eb0d3f2d2492497fe9a4fe95df3e8f46e599eaa9 Mon Sep 17 00:00:00 2001 From: Ned Batchelder Date: Sun, 1 Mar 2026 12:12:19 -0500 Subject: [PATCH 4/4] linklint is published to PyPI --- Doc/requirements.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Doc/requirements.txt b/Doc/requirements.txt index f8f3922ef5be18..536ae57e4efc29 100644 --- a/Doc/requirements.txt +++ b/Doc/requirements.txt @@ -18,6 +18,6 @@ sphinx-notfound-page~=1.0.0 # to install that as well. python-docs-theme>=2023.3.1,!=2023.7 -git+https://github.com/nedbat/linklint +linklint -c constraints.txt