GH-103484: Tell linkcheck to ignore debian manpage redirects (#123019)

This commit is contained in:
Rafael Fontenelle 2024-08-14 18:35:23 -03:00 committed by GitHub
parent 1cf624be6d
commit 1054a755a3
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View 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',