GH-103484: Docs: add linkcheck allowed redirects entries for most cases (GH-103569)

(cherry picked from commit f39e00f952)

Co-authored-by: Rafael Fontenelle <rffontenelle@users.noreply.github.com>
Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
This commit is contained in:
Miss Islington (bot) 2023-04-17 20:06:52 -07:00 committed by GitHub
parent 4c4ef50ec2
commit 1dad3d1071
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -242,9 +242,14 @@ coverage_ignore_c_items = {
# Options for the link checker
# ----------------------------
# Ignore certain URLs.
linkcheck_ignore = [r'https://bugs.python.org/(issue)?\d+']
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+',
# GH-NNNN used to refer to pull requests
r'https://github.com/python/cpython/issues/\d+': 'https://github.com/python/cpython/pull/\d+',
# :source:`something` linking files in the repository
r'https://github.com/python/cpython/tree/.*': 'https://github.com/python/cpython/blob/.*'
}
# Options for extensions
# ----------------------