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/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:dc236b75-679f-1f44-be0d-a27bf505ab8c |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | D2BE:2B81A2:6876E7:8EA6A8:6969DDF7 |
| html-safe-nonce | 3596cb6480591740ee16b737ca59b45d342d587904d5244223b46a25483da117 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEMkJFOjJCODFBMjo2ODc2RTc6OEVBNkE4OjY5NjlEREY3IiwidmlzaXRvcl9pZCI6IjkxMzU4NjYwMjcwNDIyNjY2MTUiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 576a3b7d76117fb5f1410315297b9ee06d73eba3ac171ba274d301f0ea39df7a |
| hovercard-subject-tag | pull_request:1315264801 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,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/files |
| 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 |
| diff-view | unified |
| 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 |
| disable-turbo | true |
| 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