]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.13] GH-103484: Tell linkcheck to ignore debian manpage redirects (GH-123019) ...
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Mon, 23 Sep 2024 18:10:59 +0000 (20:10 +0200)
committerGitHub <noreply@github.com>
Mon, 23 Sep 2024 18:10:59 +0000 (11:10 -0700)
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 915e9317fa4babad17988f36beb05ec83a83acce..0618bc97e13939033d842a8f84c23da7f127a5c6 100644 (file)
@@ -547,6 +547,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',