aboutsummaryrefslogtreecommitdiff
path: root/helpers/llvm-doc
blob: d8d507f1aa57046889c3833e2c62e316477b2e15 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/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