GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — How to deploy 2023.5 for 3.11 branch? · Issue #134 · python/python-docs-theme

How to deploy 2023.5 for 3.11 branch? #134

New issue
Copy link
New issue
Copy link
Closed
python/docsbuild-scripts
#161
python/docsbuild-scripts#161
Closed
How to deploy 2023.5 for 3.11 branch?#134
python/docsbuild-scripts
#161
Copy link

Description

@hugovk
hugovk
opened on Jul 22, 2023
Issue body actions

We have the dark theme (#44) deployed on https://docs.python.org/3.12/ and https://docs.python.org/3.13/ and I think it's ready for https://docs.python.org/3/ 🚀

@JulienPalard What do we need to deploy on 3.11?


#44 was merged in the latest 2023.5 release.

I checked requirements.txt in the 3.11 branch, but that has python-docs-theme>=2022.1 which would install the latest, but it mustn't be using this file:

https://github.com/python/cpython/blob/4f7c23e4dfb4b932b3916f8f79895e2a1bf3ae43/Doc/requirements.txt#L16-L18

I also checked but didn't find it in https://github.com/python/docsbuild-scripts

Where is the version pinned for each actual docs deploy?

Thanks!

Activity

  1. JulienPalard commented on Jul 24, 2023

    @JulienPalard
    JulienPalard
    on Jul 24, 2023
    Member
    More actions

    On docs.python.org it's all handled by docsbuild-scripts.

    See https://github.com/python/docsbuild-scripts/blob/952c9ee85c676ec58a5126fb0d96a98e47f1f373/build_docs.py#L829, it "just" use the requirements.txt found in cpython's Doc/. Except when it cause trouble we override it here: https://github.com/python/docsbuild-scripts/blob/952c9ee85c676ec58a5126fb0d96a98e47f1f373/build_docs.py#L102

    The venvs are kept from one build to another, so having >= in the requirements.txt file is not enough to have the theme bumped. To "bump" it I often rm -fr'ed the venv manually over ssh on the build server to have it fresh on the next build: this is not optimal.

    One of the way to fix it would be to be more precise about which version of the theme we want in the cpython's Doc/requirements.txt file, but in the other hand this means that once a Python version is in security-only and EOL we have no way to bump its theme (except by overwriting it in docsbuild-script, which is already possible).

  2. AA-Turner commented on Jul 24, 2023

    @AA-Turner
    AA-Turner
    on Jul 24, 2023
    Member
    More actions

    Would the following change help at all?

    -            [venv_path / "bin" / "python", "-m", "pip", "install"]
    +            [venv_path / "bin" / "python", "-m", "pip", "install", "--upgrade"]

    in build_docs.py#L838

  3. JulienPalard commented on Jul 24, 2023

    @JulienPalard
    JulienPalard
    on Jul 24, 2023
    Member
    More actions

    That should do it, yes.

  4. hugovk commented on Jul 26, 2023

    @hugovk
    hugovk
    on Jul 26, 2023
    MemberAuthor
    More actions

    Thanks, please see PR python/docsbuild-scripts#161.

  5. hugovk commented on Jul 26, 2023

    @hugovk
    hugovk
    on Jul 26, 2023
    MemberAuthor
    More actions

    We could also consider removing the venv for each build, it only takes some 5s to recreate it locally with everything already in the pip cache.

    I think other hosts such as Read the Docs, Netlify and GitHub Pages deploy to a clean slate.

  6. JulienPalard
    closed this as completedin docsbuild-scripts#161on Aug 31, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402503 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.