René's URL Explorer Experiment


Title: bpo-41028: Doc: Move switchers to docsbuild-scripts. by JulienPalard · Pull Request #20969 · python/cpython · GitHub

Open Graph Title: bpo-41028: Doc: Move switchers to docsbuild-scripts. by JulienPalard · Pull Request #20969 · python/cpython

X Title: bpo-41028: Doc: Move switchers to docsbuild-scripts. by JulienPalard · Pull Request #20969 · python/cpython

Description: TL;DR: I'm moving language and version switchers (manually maintained in every branches), and "indexlayout" (left menu, in docs.python.org, with a list of versions, manually maintained in every branches), to docsbuild-scripts. The current version of docs.python.org already uses the new language picker, version picker, and indexsidebar, I build all french versions with it manually, other languages will be built in a few hours. There's no hurry to merge this PR, docsbuild-scripts accomodate to its presence or absence, and it does not need to be backported. More info: https://mail.python.org/pipermail/doc-sig/2020-June/004200.html I took some liberties: I added some translation to dummy.html, even if docsbuild-script don't use them yet, it should in the future. I added an id to the

  • where the language and version switchers should land, to avoid ugly selectors to try to find it, and eventual bugs associated with ugly selectors. Docsbuild-script don't use it yet but should in the future. This should avoid commits like: 19e3e00, 85c6f8c, 3f36043, 59e7bbc, which had to be backported as far as possible (I was not a big fan of pushing thoses changes to security-only branches, but it was the only way to have an up-to-date sidebar and switcher on their doc). https://bugs.python.org/issue41028

    Open Graph Description: TL;DR: I'm moving language and version switchers (manually maintained in every branches), and "indexlayout" (left menu, in docs.python.org, with a list of versions, manually maintaine...

    X Description: TL;DR: I'm moving language and version switchers (manually maintained in every branches), and "indexlayout" (left menu, in docs.python.org, with a list of versions, manual...

    Opengraph URL: https://github.com/python/cpython/pull/20969

    X: @github

    direct link

    Domain: github.com

    route-pattern/:user_id/:repository/pull/:id/files(.:format)
    route-controllerpull_requests
    route-actionfiles
    fetch-noncev2:fd78f631-3547-ba69-4138-693b6b61a422
    current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
    request-idEBE8:2DA0A8:516E8:6E3E7:6969A291
    html-safe-noncec46a59cde0e9fba11df40a0a9687de61c5a236637c67939640e164f89fc3e91f
    visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFQkU4OjJEQTBBODo1MTZFODo2RTNFNzo2OTY5QTI5MSIsInZpc2l0b3JfaWQiOiIxMTczMjM5NTE0ODg5MDM2NDMzIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
    visitor-hmac5cf0b79b3dc346ae3e79e93be94bc973b435262cc03967ffb7419e912220a7f3
    hovercard-subject-tagpull_request:436777973
    github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
    google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
    octolytics-urlhttps://collector.github.com/github/collect
    analytics-location///pull_requests/show/files
    fb:app_id1401488693436528
    apple-itunes-appapp-id=1477376905, app-argument=https://github.com/python/cpython/pull/20969/files
    twitter:imagehttps://avatars.githubusercontent.com/u/239510?s=400&v=4
    twitter:cardsummary_large_image
    og:imagehttps://avatars.githubusercontent.com/u/239510?s=400&v=4
    og:image:altTL;DR: I'm moving language and version switchers (manually maintained in every branches), and "indexlayout" (left menu, in docs.python.org, with a list of versions, manually maintaine...
    og:site_nameGitHub
    og:typeobject
    hostnamegithub.com
    expected-hostnamegithub.com
    None24c4c97a2d520cb286b35e1a4c22d7a4df3c26a2fa28dd7cdf0e65db327b4de7
    turbo-cache-controlno-preview
    diff-viewunified
    go-importgithub.com/python/cpython git https://github.com/python/cpython.git
    octolytics-dimension-user_id1525981
    octolytics-dimension-user_loginpython
    octolytics-dimension-repository_id81598961
    octolytics-dimension-repository_nwopython/cpython
    octolytics-dimension-repository_publictrue
    octolytics-dimension-repository_is_forkfalse
    octolytics-dimension-repository_network_root_id81598961
    octolytics-dimension-repository_network_root_nwopython/cpython
    turbo-body-classeslogged-out env-production page-responsive full-width
    disable-turbotrue
    browser-stats-urlhttps://api.github.com/_private/browser/stats
    browser-errors-urlhttps://api.github.com/_private/browser/errors
    release124667f43168afb6c9c03b7c02eb5b1d2e1be3d9
    ui-targetfull
    theme-color#1e2327
    color-schemelight dark

    Links:

    Skip to contenthttps://github.com/python/cpython/pull/20969/files#start-of-content
    https://github.com/
    Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F20969%2Ffiles
    GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
    GitHub SparkBuild and deploy intelligent appshttps://github.com/features/spark
    GitHub ModelsManage and compare promptshttps://github.com/features/models
    MCP RegistryNewIntegrate external toolshttps://github.com/mcp
    ActionsAutomate any workflowhttps://github.com/features/actions
    CodespacesInstant dev environmentshttps://github.com/features/codespaces
    IssuesPlan and track workhttps://github.com/features/issues
    Code ReviewManage code changeshttps://github.com/features/code-review
    GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
    Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
    Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
    Why GitHubhttps://github.com/why-github
    Documentationhttps://docs.github.com
    Bloghttps://github.blog
    Changeloghttps://github.blog/changelog
    Marketplacehttps://github.com/marketplace
    View all featureshttps://github.com/features
    Enterpriseshttps://github.com/enterprise
    Small and medium teamshttps://github.com/team
    Startupshttps://github.com/enterprise/startups
    Nonprofitshttps://github.com/solutions/industry/nonprofits
    App Modernizationhttps://github.com/solutions/use-case/app-modernization
    DevSecOpshttps://github.com/solutions/use-case/devsecops
    DevOpshttps://github.com/solutions/use-case/devops
    CI/CDhttps://github.com/solutions/use-case/ci-cd
    View all use caseshttps://github.com/solutions/use-case
    Healthcarehttps://github.com/solutions/industry/healthcare
    Financial serviceshttps://github.com/solutions/industry/financial-services
    Manufacturinghttps://github.com/solutions/industry/manufacturing
    Governmenthttps://github.com/solutions/industry/government
    View all industrieshttps://github.com/solutions/industry
    View all solutionshttps://github.com/solutions
    AIhttps://github.com/resources/articles?topic=ai
    Software Developmenthttps://github.com/resources/articles?topic=software-development
    DevOpshttps://github.com/resources/articles?topic=devops
    Securityhttps://github.com/resources/articles?topic=security
    View all topicshttps://github.com/resources/articles
    Customer storieshttps://github.com/customer-stories
    Events & webinarshttps://github.com/resources/events
    Ebooks & reportshttps://github.com/resources/whitepapers
    Business insightshttps://github.com/solutions/executive-insights
    GitHub Skillshttps://skills.github.com
    Documentationhttps://docs.github.com
    Customer supporthttps://support.github.com
    Community forumhttps://github.com/orgs/community/discussions
    Trust centerhttps://github.com/trust-center
    Partnershttps://github.com/partners
    GitHub SponsorsFund open source developershttps://github.com/sponsors
    Security Labhttps://securitylab.github.com
    Maintainer Communityhttps://maintainers.github.com
    Acceleratorhttps://github.com/accelerator
    Archive Programhttps://archiveprogram.github.com
    Topicshttps://github.com/topics
    Trendinghttps://github.com/trending
    Collectionshttps://github.com/collections
    Enterprise platformAI-powered developer platformhttps://github.com/enterprise
    GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
    Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
    Premium SupportEnterprise-grade 24/7 supporthttps://github.com/premium-support
    Pricinghttps://github.com/pricing
    Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
    documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
    Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F20969%2Ffiles
    Sign up https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fpull_requests%2Fshow%2Ffiles&source=header-repo&source_repo=python%2Fcpython
    Reloadhttps://github.com/python/cpython/pull/20969/files
    Reloadhttps://github.com/python/cpython/pull/20969/files
    Reloadhttps://github.com/python/cpython/pull/20969/files
    python https://github.com/python
    cpythonhttps://github.com/python/cpython
    Please reload this pagehttps://github.com/python/cpython/pull/20969/files
    Notifications https://github.com/login?return_to=%2Fpython%2Fcpython
    Fork 33.9k https://github.com/login?return_to=%2Fpython%2Fcpython
    Star 71.1k https://github.com/login?return_to=%2Fpython%2Fcpython
    Code https://github.com/python/cpython
    Issues 5k+ https://github.com/python/cpython/issues
    Pull requests 2.1k https://github.com/python/cpython/pulls
    Actions https://github.com/python/cpython/actions
    Projects 31 https://github.com/python/cpython/projects
    Security Uh oh! There was an error while loading. Please reload this page. https://github.com/python/cpython/security
    Please reload this pagehttps://github.com/python/cpython/pull/20969/files
    Insights https://github.com/python/cpython/pulse
    Code https://github.com/python/cpython
    Issues https://github.com/python/cpython/issues
    Pull requests https://github.com/python/cpython/pulls
    Actions https://github.com/python/cpython/actions
    Projects https://github.com/python/cpython/projects
    Security https://github.com/python/cpython/security
    Insights https://github.com/python/cpython/pulse
    Sign up for GitHub https://github.com/signup?return_to=%2Fpython%2Fcpython%2Fissues%2Fnew%2Fchoose
    terms of servicehttps://docs.github.com/terms
    privacy statementhttps://docs.github.com/privacy
    Sign inhttps://github.com/login?return_to=%2Fpython%2Fcpython%2Fissues%2Fnew%2Fchoose
    JulienPalardhttps://github.com/JulienPalard
    python:masterhttps://github.com/python/cpython/tree/master
    JulienPalard:move-switchershttps://github.com/JulienPalard/cpython/tree/move-switchers
    Conversation 9 https://github.com/python/cpython/pull/20969
    Commits 2 https://github.com/python/cpython/pull/20969/commits
    Checks 0 https://github.com/python/cpython/pull/20969/checks
    Files changed https://github.com/python/cpython/pull/20969/files
    Please reload this pagehttps://github.com/python/cpython/pull/20969/files
    bpo-41028: Doc: Move switchers to docsbuild-scripts. https://github.com/python/cpython/pull/20969/files#top
    Show all changes 2 commits https://github.com/python/cpython/pull/20969/files
    b05cd7c Doc: Move switchers to docsbuild-scripts. JulienPalard Jun 18, 2020 https://github.com/python/cpython/pull/20969/commits/b05cd7c323efd5bfb961d44bf23a080f5860d393
    33658d1 blurb JulienPalard Jun 18, 2020 https://github.com/python/cpython/pull/20969/commits/33658d1646fa5e5546479e8f65fa2d9cc2e7f28d
    Clear filters https://github.com/python/cpython/pull/20969/files
    Please reload this pagehttps://github.com/python/cpython/pull/20969/files
    Please reload this pagehttps://github.com/python/cpython/pull/20969/files
    Makefile https://github.com/python/cpython/pull/20969/files#diff-a5a6b8d06efdd9fcda4979c51e0abc76642899e6c9b4ffe238f5cdb7c5fd2bac
    switchers.js https://github.com/python/cpython/pull/20969/files#diff-42c8192952bf6999acfb5189d8329c283fcbad63c0563030b514f199a203dff0
    dummy.html https://github.com/python/cpython/pull/20969/files#diff-58c6319afa976708e1745536a41fd0c50fa2118cfcbb56275ab08dbaf5bbe061
    indexsidebar.html https://github.com/python/cpython/pull/20969/files#diff-5af754e65e81a6a90c598cf320ed15369141b47c01e13a1e55af3f8e6ed17069
    layout.html https://github.com/python/cpython/pull/20969/files#diff-abd77e29f1ff6d74ae538e4c07866587819a5c838e138b76c15ce8a402309a5a
    2020-06-18-23-37-03.bpo-41028.vM8bC8.rst https://github.com/python/cpython/pull/20969/files#diff-3c9f350dc61bd7a6dc211135778ba8a67acc5f336fbd2bdf7f060713e4a48210
    Doc/Makefilehttps://github.com/python/cpython/pull/20969/files#diff-a5a6b8d06efdd9fcda4979c51e0abc76642899e6c9b4ffe238f5cdb7c5fd2bac
    View file https://github.com/JulienPalard/cpython/blob/33658d1646fa5e5546479e8f65fa2d9cc2e7f28d/Doc/Makefile
    Open in desktop https://desktop.github.com
    https://github.co/hiddenchars
    https://github.com/python/cpython/pull/20969/{{ revealButtonHref }}
    https://github.com/python/cpython/pull/20969/files#diff-a5a6b8d06efdd9fcda4979c51e0abc76642899e6c9b4ffe238f5cdb7c5fd2bac
    https://github.com/python/cpython/pull/20969/files#diff-a5a6b8d06efdd9fcda4979c51e0abc76642899e6c9b4ffe238f5cdb7c5fd2bac
    Doc/tools/static/switchers.jshttps://github.com/python/cpython/pull/20969/files#diff-42c8192952bf6999acfb5189d8329c283fcbad63c0563030b514f199a203dff0
    View file https://github.com/python/cpython/blob/825ac383327255d38b69a753e5e41710bb3ed010/Doc/tools/static/switchers.js
    Open in desktop https://desktop.github.com
    Please reload this pagehttps://github.com/python/cpython/pull/20969/files
    Doc/tools/templates/dummy.htmlhttps://github.com/python/cpython/pull/20969/files#diff-58c6319afa976708e1745536a41fd0c50fa2118cfcbb56275ab08dbaf5bbe061
    View file https://github.com/JulienPalard/cpython/blob/33658d1646fa5e5546479e8f65fa2d9cc2e7f28d/Doc/tools/templates/dummy.html
    Open in desktop https://desktop.github.com
    https://github.co/hiddenchars
    https://github.com/python/cpython/pull/20969/{{ revealButtonHref }}
    https://github.com/python/cpython/pull/20969/files#diff-58c6319afa976708e1745536a41fd0c50fa2118cfcbb56275ab08dbaf5bbe061
    Doc/tools/templates/indexsidebar.htmlhttps://github.com/python/cpython/pull/20969/files#diff-5af754e65e81a6a90c598cf320ed15369141b47c01e13a1e55af3f8e6ed17069
    View file https://github.com/JulienPalard/cpython/blob/33658d1646fa5e5546479e8f65fa2d9cc2e7f28d/Doc/tools/templates/indexsidebar.html
    Open in desktop https://desktop.github.com
    https://github.co/hiddenchars
    https://github.com/python/cpython/pull/20969/{{ revealButtonHref }}
    https://github.com/python/cpython/pull/20969/files#diff-5af754e65e81a6a90c598cf320ed15369141b47c01e13a1e55af3f8e6ed17069
    https://github.com/python/cpython/pull/20969/files#diff-5af754e65e81a6a90c598cf320ed15369141b47c01e13a1e55af3f8e6ed17069
    Doc/tools/templates/layout.htmlhttps://github.com/python/cpython/pull/20969/files#diff-abd77e29f1ff6d74ae538e4c07866587819a5c838e138b76c15ce8a402309a5a
    View file https://github.com/JulienPalard/cpython/blob/33658d1646fa5e5546479e8f65fa2d9cc2e7f28d/Doc/tools/templates/layout.html
    Open in desktop https://desktop.github.com
    https://github.co/hiddenchars
    https://github.com/python/cpython/pull/20969/{{ revealButtonHref }}
    https://github.com/python/cpython/pull/20969/files#diff-abd77e29f1ff6d74ae538e4c07866587819a5c838e138b76c15ce8a402309a5a
    https://github.com/python/cpython/pull/20969/files#diff-abd77e29f1ff6d74ae538e4c07866587819a5c838e138b76c15ce8a402309a5a
    Misc/NEWS.d/next/Documentation/2020-06-18-23-37-03.bpo-41028.vM8bC8.rsthttps://github.com/python/cpython/pull/20969/files#diff-3c9f350dc61bd7a6dc211135778ba8a67acc5f336fbd2bdf7f060713e4a48210
    View file https://github.com/JulienPalard/cpython/blob/33658d1646fa5e5546479e8f65fa2d9cc2e7f28d/Misc/NEWS.d/next/Documentation/2020-06-18-23-37-03.bpo-41028.vM8bC8.rst
    Open in desktop https://desktop.github.com
    https://github.co/hiddenchars
    https://github.com/python/cpython/pull/20969/{{ revealButtonHref }}
    https://github.com
    Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
    Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
    Securityhttps://github.com/security
    Statushttps://www.githubstatus.com/
    Communityhttps://github.community/
    Docshttps://docs.github.com/
    Contacthttps://support.github.com?tags=dotcom-footer

    Viewport: width=device-width


    URLs of crawlers that visited me.