spack/share/spack/qa/run-doc-tests

21 lines
450 B
Plaintext
Raw Normal View History

#!/bin/bash -e
#
# Description:
# Builds Spack documentation and checks for
# possible syntax errors. Treats warnings as
# fatal errors.
#
# Usage:
# run-doc-tests
#
. "$(dirname $0)/setup.sh"
check_dependencies sphinx-apidoc sphinx-build dot git hg svn
2016-08-30 00:10:06 +08:00
# Move to documentation directory
# Allows script to be run from anywhere
cd "$SPACK_ROOT/lib/spack/docs"
2016-08-25 05:56:59 +08:00
# Treat warnings as fatal errors
make clean --silent
make SPHINXOPTS=-W