Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 82349cf

Browse files
committed
DOC: Enable parallel builds
The latest sphinx-gallery 0.17.0 adds support for parallel building of examples, and the issue in pydata-sphinx-theme was fixed in 0.15.4, so we can try enabling it again.
1 parent cb487f3 commit 82349cf

File tree

3 files changed

+7
-2
lines changed

3 files changed

+7
-2
lines changed

.circleci/config.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ commands:
147147
export RELEASE_TAG='-t release'
148148
fi
149149
mkdir -p logs
150-
make html O="-T $RELEASE_TAG -j1 -w /tmp/sphinxerrorswarnings.log"
150+
make html O="-T $RELEASE_TAG -j4 -w /tmp/sphinxerrorswarnings.log"
151151
rm -r build/html/_sources
152152
working_directory: doc
153153
- save_cache:

doc/conf.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -286,6 +286,11 @@ def tutorials_download_error(record):
286286
'copyfile_regex': r'.*\.rst',
287287
}
288288

289+
if parse_version(sphinx_gallery.__version__) >= parse_version('0.17.0'):
290+
sphinx_gallery_conf['parallel'] = True
291+
# Any warnings from joblib turned into errors may cause a deadlock.
292+
warnings.filterwarnings('default', category=UserWarning, module='joblib')
293+
289294
if 'plot_gallery=0' in sys.argv:
290295
# Gallery images are not created. Suppress warnings triggered where other
291296
# parts of the documentation link to these images.

requirements/doc/doc-requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,5 +20,5 @@ pyyaml
2020
sphinxcontrib-svg2pdfconverter>=1.1.0
2121
sphinx-copybutton
2222
sphinx-design
23-
sphinx-gallery>=0.12.0
23+
sphinx-gallery[parallel]>=0.12.0
2424
sphinx-tags>=0.4.0

0 commit comments

Comments
 (0)