|
67 | 67 | # Login page |
68 | 68 | r"https://github.com/python/buildmaster-config/issues/new.*": r"https://github.com/login.*", # noqa: E501 |
69 | 69 | r"https://github.com/python/core-workflow/issues/new.*": r"https://github.com/login.*", # noqa: E501 |
| 70 | + r"https://github.com/orgs/python/teams.*": r"https://github.com/login.*", # noqa: E501 |
70 | 71 | # Archive redirect |
71 | 72 | r"https://github.com/python/cpython/archive/main.zip": r"https://codeload.github.com/python/cpython/zip/refs/heads/main", # noqa: E501 |
72 | 73 | # Blob to tree |
|
89 | 90 | r'\/.*', |
90 | 91 | ] |
91 | 92 |
|
| 93 | +# Check the link itself, but ignore anchors that are added by JS |
| 94 | +# https://www.sphinx-doc.org/en/master/usage/configuration.html#confval-linkcheck_anchors_ignore_for_url |
| 95 | +linkcheck_anchors_ignore_for_url = [ |
| 96 | + # GitHub |
| 97 | + r'https://github.com/.*', |
| 98 | +] |
| 99 | + |
92 | 100 | linkcheck_ignore = [ |
93 | 101 | # The voters repo is private and appears as a 404 |
94 | 102 | 'https://github.com/python/voters', |
|
98 | 106 | 'https://discuss.python.org/groups/staff', |
99 | 107 | 'https://discuss.python.org/groups/moderators', |
100 | 108 | 'https://discuss.python.org/groups/admins', |
101 | | - # The crawler gets "Anchor not found" for GitHub anchors |
102 | | - r'https://github.com.+?#L\d+', |
103 | | - r'https://github.com/cli/cli#installation', |
104 | | - r'https://github.com/github/renaming#renaming-existing-branches', |
105 | | - r'https://github.com/python/bedevere/#pr-state-machine', |
106 | 109 | # "Anchor not found": |
107 | 110 | r'https://packaging.python.org/.*#', |
108 | 111 | # "-rate limited-", causing a timeout |
109 | 112 | r'https://stackoverflow.com/.*', |
110 | 113 | # Discord doesn't allow robot crawlers: "403 Client Error: Forbidden" |
111 | | - 'https://support.discord.com/hc/en-us/articles/219070107-Server-Nicknames', |
| 114 | + r'https://support.discord.com/hc/en-us/articles/219070107-Server-Nicknames', |
| 115 | + # Patreon also gives 403 to the GHA linkcheck runner |
| 116 | + r'https://www.patreon.com/.*', |
112 | 117 | ] |
113 | 118 |
|
114 | 119 | rediraffe_redirects = { |
|
0 commit comments