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