]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.12] GH-103484: Tell linkcheck to ignore debian manpage redirects (GH-123019) ...
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Mon, 16 Sep 2024 18:49:14 +0000 (20:49 +0200)
committerGitHub <noreply@github.com>
Mon, 16 Sep 2024 18:49:14 +0000 (18:49 +0000)
GH-103484: Tell linkcheck to ignore debian manpage redirects (GH-123019)
(cherry picked from commit 1054a755a3016f95fcd24b3ad20e8ed9048b7939)

Co-authored-by: Rafael Fontenelle <rffontenelle@users.noreply.github.com>
Doc/conf.py

index 319cdf6079027ce53a541e022e40ce803317e05e..1de864c3da0fdd4dc42b326be37b09dda482b158 100644 (file)
@@ -532,6 +532,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',