Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Docs: add some linkcheck allowed redirects entries
  • Loading branch information
rffontenelle authored Apr 15, 2023
commit 5862efd3b0dbf5f56d0b25a0bffb3e43c5a894b9
9 changes: 9 additions & 0 deletions Doc/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -254,6 +254,15 @@
# Options for the link checker
# ----------------------------

linkcheck_allow_redirect = {
Comment thread
rffontenelle marked this conversation as resolved.
Outdated
# 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/.*'
}

# Ignore certain URLs.
linkcheck_ignore = [r'https://bugs.python.org/(issue)?\d+']
Comment thread
rffontenelle marked this conversation as resolved.
Outdated

Expand Down