Title: GH-103484: Docs: add linkcheck allowed redirects entries for most cases by rffontenelle · Pull Request #103569 · python/cpython · GitHub
Open Graph Title: GH-103484: Docs: add linkcheck allowed redirects entries for most cases by rffontenelle · Pull Request #103569 · python/cpython
X Title: GH-103484: Docs: add linkcheck allowed redirects entries for most cases by rffontenelle · Pull Request #103569 · python/cpython
Description: This is one of the patches required to fix the current state of make linkcheck in Python Docs, see #103484. This pull request solves the cases that result in the most output (8000+ of 8327 output lines) when running make linkcheck. Find below examples of each case. c-api/intro.rst:178: [redirected permanently] https://bugs.python.org/issue?@action=redirect&bpo=33720 to https://github.com/python/cpython/issues/77901 This redirect is caused by using the bpo-NNNNN custom role, which links https://bugs.python.org/issueNNNNN. Accessing that will redirect to CPython's GitHub issues. Instead of changing all occurrences to GH-NNNNN, this marks that redirect as allowed. whatsnew/3.12.rst:185: [redirected with Found] https://github.com/python/cpython/issues/100581 to https://github.com/python/cpython/pull/100581 This is caused by using GH-NNNNN (which links to GitHub issues) to link pull requests. Instead of adding a new syntax for GitHub pull requests, this marks that redirect as allowed. library/collections.abc.rst:13: [redirected permanently] https://github.com/python/cpython/tree/main/Lib/_collections_abc.py to https://github.com/python/cpython/blob/main/Lib/_collections_abc.py This is caused by using :source:`something` to link a file. source results in 'https://github.com/python/cpython/tree/main/' + something, but the url for files in GitHub repos is /blob/ instead of /tree/. Changing :source:'s URL from /tree/ to /blob/ wouldn't solve it because if a directory was linked, it would pop-up a redirect from /blob/ to /tree/. Hence it is better to allow this redirect. Issue: gh-103484
Open Graph Description: This is one of the patches required to fix the current state of make linkcheck in Python Docs, see #103484. This pull request solves the cases that result in the most output (8000+ of 8327 output l...
X Description: This is one of the patches required to fix the current state of make linkcheck in Python Docs, see #103484. This pull request solves the cases that result in the most output (8000+ of 8327 output l...
Opengraph URL: https://github.com/python/cpython/pull/103569
X: @github
Domain: github.com
| route-pattern | /:user_id/:repository/pull/:id/checks(.:format) |
| route-controller | pull_requests |
| route-action | checks |
| fetch-nonce | v2:8d77e9e0-33f3-a3f0-5983-ffc102ed9f9f |
| current-catalog-service-hash | 87dc3bc62d9b466312751bfd5f889726f4f1337bdff4e8be7da7c93d6c00a25a |
| request-id | E2DE:30B952:100D07E:1622FEF:6969F8F6 |
| html-safe-nonce | 05452d9e10570c9c1601bfad617ed6100fe472df7ae4a9da0ac597e9af38ae8e |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFMkRFOjMwQjk1MjoxMDBEMDdFOjE2MjJGRUY6Njk2OUY4RjYiLCJ2aXNpdG9yX2lkIjoiNzYwMzg5MTUwOTQxNzA4MTA3OCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | a0688a62cd69f8cb93376b6bb02d71cc682de3d6a8a6723b6bea234267318fab |
| hovercard-subject-tag | pull_request:1315264801 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,checks,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/python/cpython/pull/103569/checks |
| twitter:image | https://avatars.githubusercontent.com/u/1571783?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/1571783?s=400&v=4 |
| og:image:alt | This is one of the patches required to fix the current state of make linkcheck in Python Docs, see #103484. This pull request solves the cases that result in the most output (8000+ of 8327 output l... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 7b32f1c7c4549428ee399213e8345494fc55b5637195d3fc5f493657579235e8 |
| turbo-cache-control | no-preview |
| go-import | github.com/python/cpython git https://github.com/python/cpython.git |
| octolytics-dimension-user_id | 1525981 |
| octolytics-dimension-user_login | python |
| octolytics-dimension-repository_id | 81598961 |
| octolytics-dimension-repository_nwo | python/cpython |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 81598961 |
| octolytics-dimension-repository_network_root_nwo | python/cpython |
| turbo-body-classes | logged-out env-production page-responsive full-width full-width-p-0 |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | bdde15ad1b403e23b08bbd89b53fbe6bdf688cad |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width