diff options
author | Rafael Fontenelle <rffontenelle@users.noreply.github.com> | 2024-08-14 21:35:23 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-08-14 21:35:23 (GMT) |
commit | 1054a755a3016f95fcd24b3ad20e8ed9048b7939 (patch) | |
tree | 13a8bf006409ba1493e7cdeba07e60faeafd6b5a | |
parent | 1cf624be6dab5170f4ee40dfce729df7de1d5056 (diff) | |
download | cpython-1054a755a3016f95fcd24b3ad20e8ed9048b7939.zip cpython-1054a755a3016f95fcd24b3ad20e8ed9048b7939.tar.gz cpython-1054a755a3016f95fcd24b3ad20e8ed9048b7939.tar.bz2 |
GH-103484: Tell linkcheck to ignore debian manpage redirects (#123019)
-rw-r--r-- | Doc/conf.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Doc/conf.py b/Doc/conf.py index 3860d14..dc6ea6a 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', |