mirror of
https://github.com/python/cpython.git
synced 2025-08-10 03:49:18 +00:00
[3.12] GH-103484: Fix permanently redirects reported by linkcheck (GH-124144) (GH-124152)
Fix redirects reported by linkcheck, update docs conf.py checks.
(cherry picked from commit 0a32c6959c
)
Co-authored-by: Rafael Fontenelle <rffontenelle@users.noreply.github.com>
This commit is contained in:
parent
2f9dc65e12
commit
92bc714033
17 changed files with 30 additions and 26 deletions
|
@ -537,6 +537,10 @@ linkcheck_allowed_redirects = {
|
|||
# Language redirects
|
||||
r'https://toml.io': 'https://toml.io/en/',
|
||||
r'https://www.redhat.com': 'https://www.redhat.com/en',
|
||||
# pypi.org project name normalization (upper to lowercase, underscore to hyphen)
|
||||
r'https://pypi.org/project/[A-Za-z\d_\-\.]+/': r'https://pypi.org/project/[a-z\d\-\.]+/',
|
||||
# Discourse title name expansion (text changes when title is edited)
|
||||
r'https://discuss\.python\.org/t/\d+': r'https://discuss\.python\.org/t/.*/\d+',
|
||||
# Other redirects
|
||||
r'https://www.boost.org/libs/.+': r'https://www.boost.org/doc/libs/\d_\d+_\d/.+',
|
||||
r'https://support.microsoft.com/en-us/help/\d+': 'https://support.microsoft.com/en-us/topic/.+',
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue