|
113 | 113 | ), |
114 | 114 | } |
115 | 115 |
|
116 | | -# GitHub renders issue comments, README tab anchors and blob line anchors with |
117 | | -# JavaScript, so the linkcheck builder cannot find them in the static HTML. |
| 116 | +# GitHub renders issue comments, README tab anchors, blob line anchors and |
| 117 | +# commit-diff anchors with JavaScript, so the linkcheck builder cannot find |
| 118 | +# them in the static HTML. |
118 | 119 | linkcheck_anchors_ignore = [ |
119 | 120 | r"issuecomment-\d+", |
120 | 121 | r"readme", |
121 | 122 | r"L\d+", |
| 123 | + r"diff-[0-9a-f]+", |
| 124 | +] |
| 125 | + |
| 126 | +# GitHub markdown READMEs and CONTRIBUTING files render their heading anchors |
| 127 | +# client-side, so linkcheck can't validate any fragment on github.com pages. |
| 128 | +linkcheck_anchors_ignore_for_url = [ |
| 129 | + r"https://github\.com/.+", |
122 | 130 | ] |
123 | 131 |
|
124 | 132 | linkcheck_ignore = [ |
125 | | - # These sites return 403 to bots but are valid. |
| 133 | + # These sites return 403/418/429/timeout to bots but are valid. |
| 134 | + r"https://claude\.ai/", |
| 135 | + r"https://devkitpro\.org", |
| 136 | + r"https://docs\.chocolatey\.org/", |
| 137 | + r"https://en\.opensuse\.org/", |
| 138 | + r"https://git\.yoctoproject\.org/", |
| 139 | + r"https://gitlab\.alpinelinux\.org/", |
| 140 | + r"https://gitlab\.manjaro\.org/", |
126 | 141 | r"https://guix\.gnu\.org", |
| 142 | + r"https://liberapay\.com", |
| 143 | + r"https://medium\.com/", |
| 144 | + r"https://ohmybash\.nntoan\.com", |
| 145 | + r"https://openclipart\.org/", |
| 146 | + r"http://www\.slackware\.com/", |
| 147 | + r"https://www\.bitdefender\.com/", |
| 148 | + r"https://www\.gnu\.org/software/", |
| 149 | + r"https://www\.npmjs\.com", |
| 150 | + r"https://(www\.)?patreon\.com", |
| 151 | + r"https://www\.tug\.org/", |
| 152 | + # star-history.com renders chart fragments client-side. |
| 153 | + r"https://star-history\.com/", |
127 | 154 | # GitHub fragment anchors are rendered client-side and not visible to linkcheck. |
128 | 155 | r"https://github\.com/kdeldycke/click-extra#", |
| 156 | + # GitHub README tab fragments are rendered client-side. |
| 157 | + r"https://github\.com/.+\?tab=readme-ov-file#", |
| 158 | + # The unversioned `releases/latest/download/<file>` URLs in the Executables |
| 159 | + # table 404 until the release workflow publishes unversioned aliases. The |
| 160 | + # versioned `mpm-<version>-<platform>-<arch>.<ext>` artifacts do exist on |
| 161 | + # every release. |
| 162 | + r"https://github\.com/kdeldycke/meta-package-manager/releases/latest/download/.*", |
129 | 163 | ] |
130 | 164 |
|
131 | 165 | # Footer content. |
|
0 commit comments