8000 Speedup: build docs in parallel (GH-92733) · python/cpython@2ef6a98 · GitHub
[go: up one dir, main page]

Skip to content

Commit 2ef6a98

Browse files
Speedup: build docs in parallel (GH-92733)
(cherry picked from commit a487623) Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
1 parent a3d2ce9 commit 2ef6a98

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

.github/workflows/doc.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,12 +43,12 @@ jobs:
4343
# Run "check doctest html" as 3 steps to get a more readable output
4444
# in the web UI
4545
- name: 'Check documentation'
46-
run: make -C Doc/ PYTHON=../python SPHINXOPTS="-q -W --keep-going -j4" check
46+
run: make -C Doc/ PYTHON=../python SPHINXOPTS="-q -W --keep-going" check
4747
# Use "xvfb-run" since some doctest tests open GUI windows
4848
- name: 'Run documentation doctest'
49-
run: xvfb-run make -C Doc/ PYTHON=../python SPHINXOPTS="-q -W --keep-going -j4" doctest
49+
run: xvfb-run make -C Doc/ PYTHON=../python SPHINXOPTS="-q -W --keep-going" doctest
5050
- name: 'Build HTML documentation'
51-
run: make -C Doc/ PYTHON=../python SPHINXOPTS="-q -W --keep-going -j4" html
51+
run: make -C Doc/ PYTHON=../python SPHINXOPTS="-q -W --keep-going" html
5252
- name: 'Upload'
5353
uses: actions/upload-artifact@v3
5454
with:

Doc/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ SPHINXERRORHANDLING = -W
1818
PAPEROPT_a4 = -D latex_elements.papersize=a4paper
1919
PAPEROPT_letter = -D latex_elements.papersize=letterpaper
2020

21-
ALLSPHINXOPTS = -b $(BUILDER) -d build/doctrees $(PAPEROPT_$(PAPER)) \
21+
ALLSPHINXOPTS = -b $(BUILDER) -d build/doctrees $(PAPEROPT_$(PAPER)) -j auto \
2222
$(SPHINXOPTS) $(SPHINXERRORHANDLING) . build/$(BUILDER) $(SOURCES)
2323

2424
.PHONY: help build html htmlhelp latex text texinfo changes linkcheck \

0 commit comments

Comments
 (0)
0