]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
GH-103484: Tell linkcheck to ignore debian manpage redirects (#123019)
authorRafael Fontenelle <rffontenelle@users.noreply.github.com>
Wed, 14 Aug 2024 21:35:23 +0000 (18:35 -0300)
committerGitHub <noreply@github.com>
Wed, 14 Aug 2024 21:35:23 +0000 (22:35 +0100)
Doc/conf.py

index 3860d146a27e85769c3e94774e541d47375781b7..dc6ea6ad2b1bb609404024f1d6653884f022a5ca 100644 (file)
@@ -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',