diff --git a/.readthedocs.yaml b/.readthedocs.yaml index 019d3345e..e72d85bc5 100644 --- a/.readthedocs.yaml +++ b/.readthedocs.yaml @@ -2,7 +2,7 @@ version: 2 build: os: "ubuntu-22.04" tools: - python: "3" + python: "3.12" apt_packages: - make @@ -10,7 +10,11 @@ build: commands: - git clone https://github.com/python/cpython.git venv/cpython/ + # Install the doc requirements of the commit `make` builds, not of main. + - git -C venv/cpython checkout $(grep ^CPYTHON_CURRENT_COMMIT Makefile | cut -d= -f2) - python -m pip install -r venv/cpython/Doc/requirements.txt + # blurb 2.x rejects a malformed entry in the pinned commit's Misc/NEWS.d. + - python -m pip install "blurb<2" - make - mkdir -p _readthedocs/html/ - cp -r venv/cpython/Doc/build/html/* _readthedocs/html/