Title: Docs: Fix build preview banner by hugovk · Pull Request #104082 · python/cpython · GitHub
Open Graph Title: Docs: Fix build preview banner by hugovk · Pull Request #104082 · python/cpython
X Title: Docs: Fix build preview banner by hugovk · Pull Request #104082 · python/cpython
Description: There should be a banner at the top of PR build previews for docs. Here's it working on this branch as a PR on my fork: But for some reason it's missing for this upstream: TODO The code to control this: cpython/Doc/conf.py Lines 117 to 124 in f0ad456 # Deployment preview information # (See .readthedocs.yml and https://docs.readthedocs.io/en/stable/reference/environment-variables.html) repository_url = os.getenv("READTHEDOCS_GIT_CLONE_URL") html_context = { "is_deployment_preview": os.getenv("READTHEDOCS_VERSION_TYPE") == "external", "repository_url": repository_url.removesuffix(".git") if repository_url else None, "pr_id": os.getenv("READTHEDOCS_VERSION") } Let's start with a draft PR to debug the env vars.
Open Graph Description: There should be a banner at the top of PR build previews for docs. Here's it working on this branch as a PR on my fork: But for some reason it's missing for this upstream: TODO The code to...
X Description: There should be a banner at the top of PR build previews for docs. Here's it working on this branch as a PR on my fork: But for some reason it's missing for this upstream: TODO The...
Opengraph URL: https://github.com/python/cpython/pull/104082
X: @github
Domain: github.com
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:ef9d0e08-c7ce-de36-0b72-80ce38537a75 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | 9C4A:1254A9:52ABA4:73036A:696A7651 |
| html-safe-nonce | 4d5b237f63fa515c6ef59d8590d2b9ebab2dc90c581445504327ad7ceef0d3d8 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5QzRBOjEyNTRBOTo1MkFCQTQ6NzMwMzZBOjY5NkE3NjUxIiwidmlzaXRvcl9pZCI6IjkxOTAxMjkwNjkwNjE3MzE5MjEiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 2a9f90a1dc650a22e7f6d2138d994c5396784bd76b6333c573c902dcfda6f0dc |
| hovercard-subject-tag | pull_request:1334668357 |
| 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/104082/files |
| twitter:image | https://avatars.githubusercontent.com/u/1324225?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/1324225?s=400&v=4 |
| og:image:alt | There should be a banner at the top of PR build previews for docs. Here's it working on this branch as a PR on my fork: But for some reason it's missing for this upstream: TODO The code to... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 5b774e44f85c14a75886edd04ddda4e5a25ddebbb241bcbb590b08a3048730e8 |
| 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 | cc5f4eee261b3601c1e98e217ceaf28508b9567e |
| ui-target | canary-2 |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width