Renato Golin | 94cc104 | 2016-04-26 11:02:23 +0100 | [diff] [blame] | 1 | #!/usr/bin/env bash |
2 | |||||
3 | # Helper script for re-compiling the documentation after changes. | ||||
4 | |||||
5 | if [ ! -f index.rst ]; then | ||||
6 | echo "You must be at the LLVM Docs directory to use this script" | ||||
7 | exit -1 | ||||
8 | fi | ||||
9 | |||||
10 | SYNTAX="`basename $0` <doc.rst>" | ||||
11 | if [[ $1 = '' ]]; then | ||||
12 | echo $SYNTAX | ||||
13 | exit -1 | ||||
14 | fi | ||||
15 | DOC=$1 | ||||
16 | |||||
17 | sphinx-build -b html -d _build/doctrees . _build/html $DOC |