blob: d8d507f1aa57046889c3833e2c62e316477b2e15 [file] [log] [blame]
#!/usr/bin/env bash
# Helper script for re-compiling the documentation after changes.
if [ ! -f index.rst ]; then
echo "You must be at the LLVM Docs directory to use this script"
exit -1
fi
SYNTAX="`basename $0` <doc.rst>"
if [[ $1 = '' ]]; then
echo $SYNTAX
exit -1
fi
DOC=$1
sphinx-build -b html -d _build/doctrees . _build/html $DOC