GitXplorerGitXplorer
p

docsbuild-scripts

public
66 stars
59 forks
12 issues

Commits

List of commits on branch main.
Verified
cc4f5531c333c0beaaa4e89e528787e877db6c43

Run prettier via pre-commit (#234)

hhugovk committed 3 months ago
Verified
5e1eac3dde08010d0207ed6401c4c88e64a5ae34

Merge pull request #233 from AA-Turner/switchers/keep-classes

hhugovk committed 3 months ago
Unverified
91d0994a794d255c767e42873ffee6502c88b91a

Keep switcher placeholder classes

AAA-Turner committed 3 months ago
Verified
49641c17b23dac6ecf3fefbe4483dca530dfd19f

Create switchers maps from arrays of pairs (#231)

AAA-Turner committed 3 months ago
Verified
eff0dd956eb3e58cb294100aea1bf0bf12a53ba9

Run prettier in GitHub Actions (#232)

AAA-Turner committed 3 months ago
Verified
c1fc85cfe4aeb2e99cc09096e28b4d8ca76e3db2

Always create new select nodes (#228)

AAA-Turner committed 3 months ago

README

The README file for this repository.

This repository contains scripts for automatically building the Python documentation on docs.python.org.

How to test it?

The following command should build all maintained versions and translations in ./www, beware it can take a few hours:

python3 ./build_docs.py --quick --build-root ./build_root --www-root ./www --log-directory ./logs --group $(id -g) --skip-cache-invalidation

If you don't need to build all translations of all branches, add --language en --branch main.

Check current version

Install tools_requirements.txt then run python check_versions.py ../cpython/ (pointing to a real CPython clone) to see which version of Sphinx we're using where:

Sphinx configuration in various branches:

=========  =============  ==================  ====================
version    travis         requirements.txt    conf.py
=========  =============  ==================  ====================
2.7        sphinx~=2.0.1  ø                   needs_sphinx='1.2'
3.5        sphinx==1.8.2  ø                   needs_sphinx='1.8'
3.6        sphinx==1.8.2  ø                   needs_sphinx='1.2'
3.7        sphinx==1.8.2  sphinx==2.3.1       needs_sphinx="1.6.6"
3.8        ø              sphinx==2.4.4       needs_sphinx='1.8'
3.9        ø              sphinx==2.4.4       needs_sphinx='1.8'
3.10       ø              sphinx==3.4.3       needs_sphinx='3.2'
3.11       ø              sphinx~=7.2.0       needs_sphinx='4.2'
3.12       ø              sphinx~=8.1.0       needs_sphinx='7.2.6'
3.13       ø              sphinx~=8.1.0       needs_sphinx='7.2.6'
3.14       ø              sphinx~=8.1.0       needs_sphinx='7.2.6'
=========  =============  ==================  ====================

Sphinx build as seen on docs.python.org:

=========  =====  =====  =====  =====  =====  =====  =====  =====  =======  =====  =====  =======  =======
version    en     es     fr     id     it     ja     ko     pl     pt-br    tr     uk     zh-cn    zh-tw
=========  =====  =====  =====  =====  =====  =====  =====  =====  =======  =====  =====  =======  =======
3.9        2.4.4  2.4.4  2.4.4  2.4.4  2.4.4  2.4.4  2.4.4  2.4.4  2.4.4    2.4.4  2.4.4  2.4.4    2.4.4
3.10       3.4.3  3.4.3  3.4.3  3.4.3  3.4.3  3.4.3  3.4.3  3.4.3  3.4.3    3.4.3  3.4.3  3.4.3    3.4.3
3.11       7.2.6  7.2.6  7.2.6  7.2.6  7.2.6  7.2.6  7.2.6  7.2.6  7.2.6    7.2.6  7.2.6  7.2.6    7.2.6
3.12       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.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 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:

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