@@ -2,7 +2,7 @@ This repository contains scripts for automatically building the Python
2
2
documentation on [ docs.python.org] ( https://docs.python.org ) .
3
3
4
4
5
- # How to test it?
5
+ ## How to test it?
6
6
7
7
The following command should build all maintained versions and
8
8
translations in ` ./www ` , beware it can take a few hours:
@@ -15,7 +15,7 @@ If you don't need to build all translations of all branches, add
15
15
` --language en --branch main ` .
16
16
17
17
18
- # Check current version
18
+ ## Check current version
19
19
20
20
Install ` tools_requirements.txt ` then run `python check_versions.py
21
21
../cpython/` (pointing to a real CPython clone) to see which version
@@ -51,3 +51,20 @@ of Sphinx we're using where:
51
51
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
52
52
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
53
53
========= ===== ===== ===== ===== ===== ===== ===== ===== ======= ===== ===== ======= =======
54
+
55
+ ## Manually rebuild a branch
56
+
57
+ Docs for [ feature and bugfix branches] ( https://devguide.python.org/versions/ ) are
58
+ automatically built from a cron.
59
+
60
+ Manual rebuilds are needed for new security releases,
61
+ and to add the end-of-life banner for newly end-of-life branches.
62
+
63
+ To manually rebuild a branch, for example 3.11:
64
+
65
+ ``` shell
66
+ ssh docs.nyc1.psf.io
67
+ sudo su --shell=/bin/bash docsbuild
68
+ screen -DUR # Rejoin screen session if it exists, otherwise create a new one
69
+ /srv/docsbuild/venv/bin/python /srv/docsbuild/scripts/build_docs.py --branch 3.11
70
+ ```
0 commit comments