Title: Move indexsidebar.html and switchers.js to docsbuild-scripts · Issue #90 · python/docsbuild-scripts · GitHub
Open Graph Title: Move indexsidebar.html and switchers.js to docsbuild-scripts · Issue #90 · python/docsbuild-scripts
X Title: Move indexsidebar.html and switchers.js to docsbuild-scripts · Issue #90 · python/docsbuild-scripts
Description: The idea is that the cpython Doc/ repository should just care about building the documentation, not linking to other builds and languages from docs.python.org. Building multiple versions, multiple languages, and linking them together is ...
Open Graph Description: The idea is that the cpython Doc/ repository should just care about building the documentation, not linking to other builds and languages from docs.python.org. Building multiple versions, multiple ...
X Description: The idea is that the cpython Doc/ repository should just care about building the documentation, not linking to other builds and languages from docs.python.org. Building multiple versions, multiple ...
Opengraph URL: https://github.com/python/docsbuild-scripts/issues/90
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Move indexsidebar.html and switchers.js to docsbuild-scripts","articleBody":"The idea is that the cpython Doc/ repository should just care about building the documentation, not linking to other builds and languages from docs.python.org.\r\n\r\nBuilding multiple versions, multiple languages, and linking them together is the role of docsbuild-scripts.\r\n\r\nThis would also avoid the need to update `switchers.js` and `indexsidebar.html` on every cpython branch for every new cpython release and every new language.\r\n\r\nWhat would need to change:\r\n\r\n- Drop `switchers=1` from `cpython/Doc/Makefile`\r\n- Drop `if switchers` block in `cpython/tools/templates/layout.html`. it already has an alternative. Add an `id` to the `\u003cli\u003e` so it can be easily found by the new `switchers.js` as the placeholders are dropped.\r\n- Move `switchers.js` to docsbuild-scripts and make it use the `\u003cli\u003e` new id instead of placeholders if they are not found, and maybe fallback to find the place from other ways so it can work on old branches without commiting to them.\r\n- Write a generic \"indexsidebar.html\" for local builds, to be commited in cpython, and move the \"cross-linked\" version of indexsidebar in docsbuild-scripts.\r\n- Move {% trans %} tags in dummy.html so they can still be translated even if versionned in docsbuild-scripts (it's the only remaining part in cpython, hope it won't change too often).\r\n\r\nWe then need a **clean** way for docsbuild-scripts to edit the HTML to make it load switchers.js.","author":{"url":"https://github.com/JulienPalard","@type":"Person","name":"JulienPalard"},"datePublished":"2020-06-04T20:43:36.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":3},"url":"https://github.com/90/docsbuild-scripts/issues/90"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:50fcb2d0-7321-08a4-9ed0-1289db2732d7 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 912C:292960:9F938A:DAC7FC:6969EC3A |
| html-safe-nonce | b6e03b5bf3a2d7f7efbdacf70b218d4ed17c6fbc4ce0f34fe0da97acec2c4e80 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5MTJDOjI5Mjk2MDo5RjkzOEE6REFDN0ZDOjY5NjlFQzNBIiwidmlzaXRvcl9pZCI6IjEyODYyMDMzMzA5MzY4MjY5MzgiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | d1619f5d11ae0d936dc1efc01f78a674fa943de06760897203fb9e6482d25a34 |
| hovercard-subject-tag | issue:631132665 |
| github-keyboard-shortcuts | repository,issues,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/_view_fragments/issues/show/python/docsbuild-scripts/90/issue_layout |
| twitter:image | https://opengraph.githubassets.com/3c26063d6690f8bbdedadeaedae0514d1e9e84aa2c5814279549dfe4b917b138/python/docsbuild-scripts/issues/90 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/3c26063d6690f8bbdedadeaedae0514d1e9e84aa2c5814279549dfe4b917b138/python/docsbuild-scripts/issues/90 |
| og:image:alt | The idea is that the cpython Doc/ repository should just care about building the documentation, not linking to other builds and languages from docs.python.org. Building multiple versions, multiple ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | JulienPalard |
| hostname | github.com |
| expected-hostname | github.com |
| None | 7b32f1c7c4549428ee399213e8345494fc55b5637195d3fc5f493657579235e8 |
| turbo-cache-control | no-preview |
| go-import | github.com/python/docsbuild-scripts git https://github.com/python/docsbuild-scripts.git |
| octolytics-dimension-user_id | 1525981 |
| octolytics-dimension-user_login | python |
| octolytics-dimension-repository_id | 23553472 |
| octolytics-dimension-repository_nwo | python/docsbuild-scripts |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 23553472 |
| octolytics-dimension-repository_network_root_nwo | python/docsbuild-scripts |
| turbo-body-classes | logged-out env-production page-responsive |
| 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