#!/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 |