Skip to content

Commit

Permalink
GH-103484: Docs: add linkcheck allowed redirects entries for most cas…
Browse files Browse the repository at this point in the history
…es (#103569)

Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
  • Loading branch information
rffontenelle and hugovk authored Apr 18, 2023
1 parent e35e0f1 commit f39e00f
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions Doc/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -254,9 +254,14 @@
# 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
# ----------------------
Expand Down

0 comments on commit f39e00f

Please sign in to comment.