|
264 | 264 |
|
265 | 265 | linkcheck_allowed_redirects = {
|
266 | 266 | # bpo-NNNN -> BPO -> GH Issues
|
267 |
| - r'https://bugs.python.org/issue\?@action=redirect&bpo=\d+': 'https://github.com/python/cpython/issues/\d+', |
| 267 | + r'https://bugs.python.org/issue\?@action=redirect&bpo=\d+': r'https://github.com/python/cpython/issues/\d+', |
268 | 268 | # GH-NNNN used to refer to pull requests
|
269 |
| - r'https://github.com/python/cpython/issues/\d+': 'https://github.com/python/cpython/pull/\d+', |
| 269 | + r'https://github.com/python/cpython/issues/\d+': r'https://github.com/python/cpython/pull/\d+', |
270 | 270 | # :source:`something` linking files in the repository
|
271 |
| - r'https://github.com/python/cpython/tree/.*': 'https://github.com/python/cpython/blob/.*' |
| 271 | + r'https://github.com/python/cpython/tree/.*': 'https://github.com/python/cpython/blob/.*', |
| 272 | + # Intentional HTTP use at Misc/NEWS.d/3.5.0a1.rst |
| 273 | + r'http://www.python.org/$': 'https://www.python.org/$', |
| 274 | + # Used in license page, keep as is |
| 275 | + r'https://www.zope.org/': r'https://www.zope.dev/', |
| 276 | + # Microsoft's redirects to learn.microsoft.com |
| 277 | + r'https://msdn.microsoft.com/.*': 'https://learn.microsoft.com/.*', |
| 278 | + r'https://docs.microsoft.com/.*': 'https://learn.microsoft.com/.*', |
| 279 | + r'https://go.microsoft.com/fwlink/\?LinkID=\d+': 'https://learn.microsoft.com/.*', |
| 280 | + # Language redirects |
| 281 | + r'https://toml.io': 'https://toml.io/en/', |
| 282 | + r'https://www.redhat.com': 'https://www.redhat.com/en', |
| 283 | + # Other redirects |
| 284 | + r'https://www.boost.org/libs/.+': r'https://www.boost.org/doc/libs/\d_\d+_\d/.+', |
| 285 | + r'https://support.microsoft.com/en-us/help/\d+': 'https://support.microsoft.com/en-us/topic/.+', |
| 286 | + r'https://perf.wiki.kernel.org$': 'https://perf.wiki.kernel.org/index.php/Main_Page', |
| 287 | + r'https://www.sqlite.org': 'https://www.sqlite.org/index.html', |
| 288 | + r'https://mitpress.mit.edu/sicp$': 'https://mitpress.mit.edu/9780262510875/structure-and-interpretation-of-computer-programs/', |
| 289 | + r'https://www.python.org/psf/': 'https://www.python.org/psf-landing/', |
272 | 290 | }
|
273 | 291 |
|
274 | 292 | linkcheck_anchors_ignore = [
|
|
0 commit comments