[Python-checkins] Speedup: build docs in parallel (GH-92733) (GH-92850)

ambv webhook-mailer at python.org
Mon May 16 12:53:42 EDT 2022


https://github.com/python/cpython/commit/cfb9248cd4adb2ef4309e7ddb406cab5ce6edffa
commit: cfb9248cd4adb2ef4309e7ddb406cab5ce6edffa
branch: 3.10
author: Hugo van Kemenade <hugovk at users.noreply.github.com>
committer: ambv <lukasz at langa.pl>
date: 2022-05-16T18:53:38+02:00
summary:

Speedup: build docs in parallel (GH-92733) (GH-92850)

(cherry picked from commit a487623c6b784847a8a1e47b4597b0ae2b8def87)

files:
M .github/workflows/doc.yml
M Doc/Makefile

diff --git a/.github/workflows/doc.yml b/.github/workflows/doc.yml
index a57552b07905f..36b9f9f1d3497 100644
--- a/.github/workflows/doc.yml
+++ b/.github/workflows/doc.yml
@@ -37,7 +37,7 @@ jobs:
     - name: 'Install build dependencies'
       run: make -C Doc/ PYTHON=../python venv
     - name: 'Build documentation'
-      run: xvfb-run make -C Doc/ PYTHON=../python SPHINXOPTS="-q -W --keep-going -j4" doctest html suspicious
+      run: xvfb-run make -C Doc/ PYTHON=../python SPHINXOPTS="-q -W --keep-going" doctest html suspicious
     - name: 'Upload'
       uses: actions/upload-artifact at v3
       with:
diff --git a/Doc/Makefile b/Doc/Makefile
index 24528a1c4f326..939498e548a06 100644
--- a/Doc/Makefile
+++ b/Doc/Makefile
@@ -17,7 +17,7 @@ SPHINXERRORHANDLING = -W
 PAPEROPT_a4     = -D latex_elements.papersize=a4paper
 PAPEROPT_letter = -D latex_elements.papersize=letterpaper
 
-ALLSPHINXOPTS = -b $(BUILDER) -d build/doctrees $(PAPEROPT_$(PAPER)) \
+ALLSPHINXOPTS = -b $(BUILDER) -d build/doctrees $(PAPEROPT_$(PAPER)) -j auto \
                 $(SPHINXOPTS) $(SPHINXERRORHANDLING) . build/$(BUILDER) $(SOURCES)
 
 .PHONY: help build html htmlhelp latex text texinfo changes linkcheck \



More information about the Python-checkins mailing list