mirror of
https://github.com/fish-shell/fish-shell
synced 2025-01-14 05:53:59 +00:00
sphinx-build to use multiple processes
sphinx-build supports the -j option to use multiple processes. Start using it. This reduces the time to build the docs on my Linux box from 11 seconds to about 4. Note this doesn't work on macOS since -j is ignored there (see sphinx-build PR 6879).
This commit is contained in:
parent
d2ca6ed564
commit
ecaf455277
1 changed files with 2 additions and 0 deletions
|
@ -19,6 +19,7 @@ add_custom_target(sphinx-docs
|
|||
mkdir -p ${SPHINX_HTML_DIR}/_static/
|
||||
COMMAND env PATH="$<TARGET_FILE_DIR:fish_indent>:$$PATH"
|
||||
${SPHINX_EXECUTABLE}
|
||||
-j auto
|
||||
-q -b html
|
||||
-c "${SPHINX_SRC_DIR}"
|
||||
-d "${SPHINX_CACHE_DIR}"
|
||||
|
@ -31,6 +32,7 @@ add_custom_target(sphinx-docs
|
|||
add_custom_target(sphinx-manpages
|
||||
env PATH="$<TARGET_FILE_DIR:fish_indent>:$$PATH"
|
||||
${SPHINX_EXECUTABLE}
|
||||
-j auto
|
||||
-q -b man
|
||||
-c "${SPHINX_SRC_DIR}"
|
||||
-d "${SPHINX_CACHE_DIR}"
|
||||
|
|
Loading…
Reference in a new issue