8000 GH-103484: Docs: add linkcheck allowed redirects entries for most cases by rffontenelle · Pull Request #103569 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content

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

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Apr 18, 2023
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 = {
# 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+']

Expand Down
0