aboutsummaryrefslogtreecommitdiff
path: root/build_html.sh
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2023-10-12 12:27:58 -0400
committerNick Mathewson <nickm@torproject.org>2023-10-12 12:27:58 -0400
commit7589a207493f5a3200823bc340bccb24987b8164 (patch)
treeafcfc60a2877254411811a74b09b28b6a60e5db1 /build_html.sh
parentf11f012f05e717bfe813e66aa19b59b3c0d1d483 (diff)
downloadtorspec-7589a207493f5a3200823bc340bccb24987b8164.tar.gz
torspec-7589a207493f5a3200823bc340bccb24987b8164.zip
Copy all verbatim items into spec directory.
Diffstat (limited to 'build_html.sh')
-rwxr-xr-xbuild_html.sh15
1 files changed, 15 insertions, 0 deletions
diff --git a/build_html.sh b/build_html.sh
new file mode 100755
index 0000000..ae78080
--- /dev/null
+++ b/build_html.sh
@@ -0,0 +1,15 @@
+#!/usr/bin/env bash
+
+set -e -u -o pipefail
+
+TOPLEVEL=$(realpath $(dirname "$0"))
+cd "${TOPLEVEL}/proposals"
+./reindex.py
+
+cd "${TOPLEVEL}/mdbook/spec"
+mdbook build
+
+cd "${TOPLEVEL}/mdbook/proposals"
+mdbook build
+
+