aboutsummaryrefslogtreecommitdiff
path: root/build-docs.sh
diff options
context:
space:
mode:
authorbozo.kopic <bozo@kopic.xyz>2022-08-02 01:20:12 +0200
committerbozo.kopic <bozo@kopic.xyz>2022-09-25 02:40:23 +0200
commit288727f09a1b3458c268497d111349e608c3f9fa (patch)
treed62565249fa3c7127856c65405752572fc41aca9 /build-docs.sh
Diffstat (limited to 'build-docs.sh')
-rwxr-xr-xbuild-docs.sh12
1 files changed, 12 insertions, 0 deletions
diff --git a/build-docs.sh b/build-docs.sh
new file mode 100755
index 0000000..5efccc5
--- /dev/null
+++ b/build-docs.sh
@@ -0,0 +1,12 @@
+#!/bin/sh
+
+set -e
+
+cd $(dirname -- "$0")
+
+PYTHON=${PYTHON:-python3}
+SRC=docs
+DST=build/docs
+
+mkdir -p $DST
+$PYTHON -m sphinx -q -b html $SRC $DST