From: Rafael Fontenelle Date: Wed, 14 Aug 2024 21:35:23 +0000 (-0300) Subject: GH-103484: Tell linkcheck to ignore debian manpage redirects (#123019) X-Git-Tag: v3.14.0a1~777 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=1054a755a3016f95fcd24b3ad20e8ed9048b7939;p=thirdparty%2FPython%2Fcpython.git GH-103484: Tell linkcheck to ignore debian manpage redirects (#123019) --- diff --git a/Doc/conf.py b/Doc/conf.py index 3860d146a27e..dc6ea6ad2b1b 100644 --- a/Doc/conf.py +++ b/Doc/conf.py @@ -546,6 +546,8 @@ linkcheck_allowed_redirects = { 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/.*', + # Debian's man page redirects to its current stable version + r'https://manpages.debian.org/\w+\(\d(\w+)?\)': r'https://manpages.debian.org/\w+/[\w/\-\.]*\.\d(\w+)?\.en\.html', # Language redirects r'https://toml.io': 'https://toml.io/en/', r'https://www.redhat.com': 'https://www.redhat.com/en',