2020-07-15 19:42:43 -06:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
# usage:
|
|
|
|
# ./build-pdf.sh
|
|
|
|
# SPHINX=/path/to/sphinx-build ./build-pdf.sh
|
|
|
|
# JOBS=3 ./build-pdf.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
|
|
|
|
|
|
|
|
cd $(dirname "$0")
|
|
|
|
cd ..
|
|
|
|
|
2022-07-10 00:01:31 -06:00
|
|
|
"${SPHINX:-sphinx-build}" -M latexpdf -d build/docs/pdf . docs/pdf -w build/docs/pdf/_sphinx-warnings.txt -j "${JOBS:-auto}" "$@"
|