aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCristián Maureira-Fredes <cristian.maureira-fredes@qt.io>2022-09-01 14:39:46 +0200
committerQt Cherry-pick Bot <cherrypick_bot@qt-project.org>2022-09-01 17:22:48 +0000
commit24d0ae35ab5fcfb0cebd1cb8c47795ba21ce6116 (patch)
tree0ef1e7b0ce9e79f62371b42c19739bc3d9241ec2
parent0f7f11f6e2c00cf2e694b31883545bd698264736 (diff)
doc: use more processes for sphinx-build
Adding the option '-j auto' to the calls we have for sphinx-build, speeding up the documentation generation process. Change-Id: Ie676d305e283fa217a90f3de64f96978ce6b3af0 Task-number: PYSIDE-1106 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io> (cherry picked from commit ddbf71586ac56b623c6467285b2b965f377d4752) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
-rw-r--r--build_scripts/main.py2
-rw-r--r--sources/pyside6/doc/CMakeLists.txt2
-rw-r--r--sources/shiboken6/doc/CMakeLists.txt2
3 files changed, 3 insertions, 3 deletions
diff --git a/build_scripts/main.py b/build_scripts/main.py
index c654a4e02..daf7d2f70 100644
--- a/build_scripts/main.py
+++ b/build_scripts/main.py
@@ -1274,7 +1274,7 @@ class PysideRstDocs(Command, DistUtilsCommandMixin):
elif self.name == SHIBOKEN:
self.sphinx_src = self.out_dir
- sphinx_cmd = ["sphinx-build", "-b", "html", "-c", self.sphinx_src,
+ sphinx_cmd = ["sphinx-build", "-b", "html", "-j", "auto", "-c", self.sphinx_src,
self.doc_dir, self.out_dir]
if run_process(sphinx_cmd) != 0:
raise DistutilsSetupError(f"Error running CMake for {self.doc_dir}")
diff --git a/sources/pyside6/doc/CMakeLists.txt b/sources/pyside6/doc/CMakeLists.txt
index 9d4fcf144..61133c97a 100644
--- a/sources/pyside6/doc/CMakeLists.txt
+++ b/sources/pyside6/doc/CMakeLists.txt
@@ -194,7 +194,7 @@ if (FULLDOCSBUILD)
endif()
add_custom_target(apidoc
- COMMAND ${SHIBOKEN_PYTHON_INTERPRETER} ${SPHINX_BUILD} -b ${DOC_OUTPUT_FORMAT} ${CMAKE_CURRENT_BINARY_DIR}/rst html
+ COMMAND ${SHIBOKEN_PYTHON_INTERPRETER} ${SPHINX_BUILD} -b ${DOC_OUTPUT_FORMAT} -j auto ${CMAKE_CURRENT_BINARY_DIR}/rst html
COMMENT "Generating PySide htmls..."
)
diff --git a/sources/shiboken6/doc/CMakeLists.txt b/sources/shiboken6/doc/CMakeLists.txt
index 4cd459c23..acf9acc94 100644
--- a/sources/shiboken6/doc/CMakeLists.txt
+++ b/sources/shiboken6/doc/CMakeLists.txt
@@ -18,7 +18,7 @@ if(SPHINX_BUILD)
# conditional tag for sphinx build
#string(JOIN "_" SPHINX_TAG ${DOC_OUTPUT_FORMAT} "format")
add_custom_target(doc
- COMMAND ${SPHINX_BUILD} -b ${DOC_OUTPUT_FORMAT} -c . ${CMAKE_CURRENT_SOURCE_DIR} html
+ COMMAND ${SPHINX_BUILD} -b ${DOC_OUTPUT_FORMAT} -j auto -c . ${CMAKE_CURRENT_SOURCE_DIR} html
COMMENT "Generating shiboken documentation HTML files"
VERBATIM)