Skip to content

Commit 319b433

Browse files
authored
fix problem of memory issue (#487)
* fix problem of memory issue * remove check * Sequential the run * change n_job
1 parent 9f7ce5b commit 319b433

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

docs/Makefile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@
22
#
33

44
# You can set these variables from the command line.
5-
SPHINXOPTS = -j auto -W --keep-going -n
5+
N_JOB = auto
6+
SPHINXOPTS = -j ${N_JOB} -W --keep-going -n
67
# -j/--jobs: N processes in parallel (auto=number of CPUs)
78
# -W/--fail-on-warning: Turn warnings into errors.
89
# --keep-going: Runs sphinx-build to completion and exits

tools/documentation/circleci/build_doc.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ else
114114
fi
115115

116116
# The pipefail is requested to propagate exit code
117-
set -o pipefail && cd docs && make $make_args 2>&1 | tee ~/output_sphinx.txt
117+
set -o pipefail && cd docs && make N_JOB=2 $make_args 2>&1 | tee ~/output_sphinx.txt
118118
cd -
119119

120120
set +o pipefail

0 commit comments

Comments
 (0)