Skip to content

Commit

Permalink
Merge pull request #236 from hugovk/manual-rebuild
Browse files Browse the repository at this point in the history
Add instructions on manually rebuilding a branch
  • Loading branch information
hugovk authored Dec 16, 2024
2 parents b2b5483 + 10064ee commit 920b6c6
Showing 1 changed file with 19 additions and 2 deletions.
21 changes: 19 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ This repository contains scripts for automatically building the Python
documentation on [docs.python.org](https://docs.python.org).


# How to test it?
## How to test it?

The following command should build all maintained versions and
translations in `./www`, beware it can take a few hours:
Expand All @@ -15,7 +15,7 @@ If you don't need to build all translations of all branches, add
`--language en --branch main`.


# Check current version
## Check current version

Install `tools_requirements.txt` then run `python check_versions.py
../cpython/` (pointing to a real CPython clone) to see which version
Expand Down Expand Up @@ -51,3 +51,20 @@ of Sphinx we're using where:
3.13 8.1.3 8.1.3 8.1.3 8.1.3 8.1.3 8.1.3 8.1.3 8.1.3 8.1.3 8.1.3 8.1.3 8.1.3 8.1.3
3.14 8.1.3 8.1.3 8.1.3 8.1.3 8.1.3 8.1.3 8.1.3 8.1.3 8.1.3 8.1.3 8.1.3 8.1.3 8.1.3
========= ===== ===== ===== ===== ===== ===== ===== ===== ======= ===== ===== ======= =======

## Manually rebuild a branch

Docs for [feature and bugfix branches](https://devguide.python.org/versions/) are
automatically built from a cron.

Manual rebuilds are needed for new security releases,
and to add the end-of-life banner for newly end-of-life branches.

To manually rebuild a branch, for example 3.11:

```shell
ssh docs.nyc1.psf.io
sudo su --shell=/bin/bash docsbuild
screen -DUR # Rejoin screen session if it exists, otherwise create a new one
/srv/docsbuild/venv/bin/python /srv/docsbuild/scripts/build_docs.py --branch 3.11
```

0 comments on commit 920b6c6

Please sign in to comment.