We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4c4ef50 commit aa460c5Copy full SHA for aa460c5
Doc/conf.py
@@ -242,9 +242,14 @@
242
# Options for the link checker
243
# ----------------------------
244
245
-# Ignore certain URLs.
246
-linkcheck_ignore = [r'https://bugs.python.org/(issue)?\d+']
247
-
+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+',
248
+ # GH-NNNN used to refer to pull requests
249
+ r'https://github.com/python/cpython/issues/\d+': 'https://github.com/python/cpython/pull/\d+',
250
+ # :source:`something` linking files in the repository
251
+ r'https://github.com/python/cpython/tree/.*': 'https://github.com/python/cpython/blob/.*'
252
+}
253
254
# Options for extensions
255
# ----------------------
0 commit comments