We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e35e0f1 commit f39e00fCopy full SHA for f39e00f
Doc/conf.py
@@ -254,9 +254,14 @@
254
# Options for the link checker
255
# ----------------------------
256
257
-# Ignore certain URLs.
258
-linkcheck_ignore = [r'https://bugs.python.org/(issue)?\d+']
259
-
+linkcheck_allowed_redirects = {
+ # bpo-NNNN -> BPO -> GH Issues
+ r'https://bugs.python.org/issue\?@action=redirect&bpo=\d+': 'https://github.com/python/cpython/issues/\d+',
260
+ # GH-NNNN used to refer to pull requests
261
+ r'https://github.com/python/cpython/issues/\d+': 'https://github.com/python/cpython/pull/\d+',
262
+ # :source:`something` linking files in the repository
263
+ r'https://github.com/python/cpython/tree/.*': 'https://github.com/python/cpython/blob/.*'
264
+}
265
266
# Options for extensions
267
# ----------------------
0 commit comments