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