File tree Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Original file line number Diff line number Diff line change 242242# Options for the link checker
243243# ----------------------------
244244
245- # Ignore certain URLs.
246- linkcheck_ignore = [r'https://bugs.python.org/(issue)?\d+' ]
247-
245+ linkcheck_allowed_redirects = {
246+ # bpo-NNNN -> BPO -> GH Issues
247+ 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+ }
248253
249254# Options for extensions
250255# ----------------------
You can’t perform that action at this time.
0 commit comments