2016-08-11 16:43:34 -06:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
# usage:
|
2020-07-15 19:42:43 -06:00
|
|
|
# ./build.sh
|
|
|
|
# SPHINX=/path/to/sphinx-build ./build.sh
|
|
|
|
# JOBS=3 ./build.sh ...
|
|
|
|
# all command-line arguments are passed directly to sphinx-build - run
|
|
|
|
# ``sphinx-build --help`` for a list, or see
|
|
|
|
# https://www.sphinx-doc.org/en/master/man/sphinx-build.html
|
2016-08-11 16:43:34 -06:00
|
|
|
|
|
|
|
cd $(dirname "$0")
|
|
|
|
cd ..
|
|
|
|
|
2022-07-10 00:58:11 -06:00
|
|
|
"${SPHINX:-sphinx-build}" -E -b html -d build/docs/html . docs/html -w build/docs/html/_sphinx-warnings.txt -j "${JOBS:-auto}" "$@"
|
|
|
|
"${SPHINX:-sphinx-build}" -E -b text -d build/docs/text . docs/text -w build/docs/text/_sphinx-warnings.txt -j "${JOBS:-auto}" "$@"
|