Run sphinx-build over all cores

Use `sphinx-build -j` and `nproc` to distribute collecting and compiling
the documentation over all cores.
parent c9a53c76
......@@ -55,7 +55,7 @@ docs:
script:
- echo "Building current docs"
- env -u GITLAB_CI make doctest
- env -u GITLAB_CI sphinx-build -M html "." "_build" -W
- env -u GITLAB_CI sphinx-build -M html "." "_build" -W -j $(nproc)
- echo "Checking if there are changes"
- ./generate-apidocs.sh
- git diff --exit-code
......
......@@ -2,7 +2,7 @@
set -e
sphinx-build -b html /usr/src/app/docs/ /concrexit/docs/
sphinx-build -b html /usr/src/app/docs/ /concrexit/docs/ -j $(nproc)
until psql -h "$DJANGO_POSTGRES_HOST" -U "postgres" -c '\l'; do
>&2 echo "PostgreSQL is unavailable: Sleeping"
......
......@@ -3,7 +3,7 @@
set -e
>&2 echo "Creating Sphinx documentation"
sphinx-build -b html /usr/src/app/docs/ /concrexit/docs/
sphinx-build -b html /usr/src/app/docs/ /concrexit/docs/ -j $(nproc)
until psql -h "$DJANGO_POSTGRES_HOST" -U "postgres" -c '\l' $POSTGRES_DB; do
>&2 echo "PostgreSQL is unavailable: Sleeping"
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment