mirror of
https://github.com/python/cpython.git
synced 2025-08-10 03:49:18 +00:00
[3.11] GH-103484: Fix broken links reported by linkcheck (GH-103608) (#103683)
Co-authored-by: Éric <merwok@netwok.org> Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com> Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com> Fix broken links reported by linkcheck (#103608)
This commit is contained in:
parent
4e9635e2b1
commit
8642fdce8c
13 changed files with 35 additions and 21 deletions
18
Doc/conf.py
18
Doc/conf.py
|
@ -251,6 +251,24 @@ linkcheck_allowed_redirects = {
|
|||
r'https://github.com/python/cpython/tree/.*': 'https://github.com/python/cpython/blob/.*'
|
||||
}
|
||||
|
||||
linkcheck_anchors_ignore = [
|
||||
# ignore anchors that start with a '/', e.g. Wikipedia media files:
|
||||
# https://en.wikipedia.org/wiki/Walrus#/media/File:Pacific_Walrus_-_Bull_(8247646168).jpg
|
||||
r'\/.*',
|
||||
]
|
||||
|
||||
linkcheck_ignore = [
|
||||
# The crawler gets "Anchor not found"
|
||||
r'https://developer.apple.com/documentation/.+?#.*',
|
||||
r'https://devguide.python.org.+?/#.*',
|
||||
r'https://github.com.+?#.*',
|
||||
# Robot crawlers not allowed: "403 Client Error: Forbidden"
|
||||
r'https://support.enthought.com/hc/.*',
|
||||
# SSLError CertificateError, even though it is valid
|
||||
r'https://unix.org/version2/whatsnew/lp64_wp.html',
|
||||
]
|
||||
|
||||
|
||||
# Options for extensions
|
||||
# ----------------------
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue