Add shell script to build docs

Useful for testing docs without changing BUILD_DOCS if it's set to OFF.
develop
lethosor 2016-08-11 18:43:34 -04:00
parent 9b495fe08b
commit 1a79e7456c
1 changed files with 20 additions and 0 deletions

@ -0,0 +1,20 @@
#!/bin/sh
# usage:
# ./build.sh
# ./build.sh sphinx-executable
# JOBS=3 ./build.sh ...
cd $(dirname "$0")
cd ..
sphinx=sphinx-build
if [ -n "$1" ]; then
sphinx=$1
fi
if [ -z "$JOBS" ]; then
JOBS=2
fi
"$sphinx" -a -E -q -b html . ./docs/html -w ./docs/_sphinx-warnings.txt -j "$JOBS"