summaryrefslogtreecommitdiffstats
path: root/util/docker/flashrom.org/makeSphinx.sh
diff options
context:
space:
mode:
Diffstat (limited to 'util/docker/flashrom.org/makeSphinx.sh')
-rwxr-xr-xutil/docker/flashrom.org/makeSphinx.sh12
1 files changed, 12 insertions, 0 deletions
diff --git a/util/docker/flashrom.org/makeSphinx.sh b/util/docker/flashrom.org/makeSphinx.sh
new file mode 100755
index 000000000..5b6ea0386
--- /dev/null
+++ b/util/docker/flashrom.org/makeSphinx.sh
@@ -0,0 +1,12 @@
+#!/usr/bin/env bash
+
+if [ "$1" == "livehtml" ]; then
+ echo "Starting live documentation build"
+ cd /data-in/ && sphinx-autobuild -b html doc /tmp/build/html
+else
+ echo "Starting production documentation build"
+ cd /data-in/ \
+ && sphinx-build -b html doc /tmp/build/html \
+ && rm -rf /data-out/* \
+ && mv /tmp/build/html/* /data-out/
+fi