diff options
author | Rafael Fontenelle <rffontenelle@users.noreply.github.com> | 2023-05-02 06:34:44 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-05-02 06:34:44 (GMT) |
commit | 68ed2a2a3f1e715dc10724b0c000ec2fc498d11e (patch) | |
tree | 85c87e27dff1f6564b5b7047a111f18be1d7233b /Doc/conf.py | |
parent | 82ba6ce303d04a7b21034e38d220e23ca9f1dc0a (diff) | |
download | cpython-68ed2a2a3f1e715dc10724b0c000ec2fc498d11e.zip cpython-68ed2a2a3f1e715dc10724b0c000ec2fc498d11e.tar.gz cpython-68ed2a2a3f1e715dc10724b0c000ec2fc498d11e.tar.bz2 |
GH-103484: Fix redirected permanently URLs (#104001)
Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
Co-authored-by: Oleg Iarygin <dralife@yandex.ru>
Diffstat (limited to 'Doc/conf.py')
-rw-r--r-- | Doc/conf.py | 24 |
1 files changed, 21 insertions, 3 deletions
diff --git a/Doc/conf.py b/Doc/conf.py index cef2a0e..6a3c01c 100644 --- a/Doc/conf.py +++ b/Doc/conf.py @@ -264,11 +264,29 @@ coverage_ignore_c_items = { 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+', + r'https://bugs.python.org/issue\?@action=redirect&bpo=\d+': r'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+', + r'https://github.com/python/cpython/issues/\d+': r'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/.*' + r'https://github.com/python/cpython/tree/.*': 'https://github.com/python/cpython/blob/.*', + # Intentional HTTP use at Misc/NEWS.d/3.5.0a1.rst + r'http://www.python.org/$': 'https://www.python.org/$', + # Used in license page, keep as is + r'https://www.zope.org/': r'https://www.zope.dev/', + # Microsoft's redirects to learn.microsoft.com + r'https://msdn.microsoft.com/.*': 'https://learn.microsoft.com/.*', + r'https://docs.microsoft.com/.*': 'https://learn.microsoft.com/.*', + r'https://go.microsoft.com/fwlink/\?LinkID=\d+': 'https://learn.microsoft.com/.*', + # Language redirects + r'https://toml.io': 'https://toml.io/en/', + r'https://www.redhat.com': 'https://www.redhat.com/en', + # 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/.+', + r'https://perf.wiki.kernel.org$': 'https://perf.wiki.kernel.org/index.php/Main_Page', + r'https://www.sqlite.org': 'https://www.sqlite.org/index.html', + r'https://mitpress.mit.edu/sicp$': 'https://mitpress.mit.edu/9780262510875/structure-and-interpretation-of-computer-programs/', + r'https://www.python.org/psf/': 'https://www.python.org/psf-landing/', } linkcheck_anchors_ignore = [ |