aboutsummaryrefslogtreecommitdiff
path: root/helpers/llvm-doc
diff options
context:
space:
mode:
Diffstat (limited to 'helpers/llvm-doc')
-rwxr-xr-xhelpers/llvm-doc17
1 files changed, 17 insertions, 0 deletions
diff --git a/helpers/llvm-doc b/helpers/llvm-doc
new file mode 100755
index 0000000..d8d507f
--- /dev/null
+++ b/helpers/llvm-doc
@@ -0,0 +1,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