aboutsummaryrefslogtreecommitdiff
path: root/build.sh
diff options
context:
space:
mode:
Diffstat (limited to 'build.sh')
-rwxr-xr-xbuild.sh13
1 files changed, 13 insertions, 0 deletions
diff --git a/build.sh b/build.sh
new file mode 100755
index 0000000..7fb4bed
--- /dev/null
+++ b/build.sh
@@ -0,0 +1,13 @@
+#!/bin/sh
+# Build kumardamani.net into ./build using Typst's bundle export.
+#
+# Usage: ./build.sh [output-dir] (default output dir: build)
+set -e
+
+cd "$(dirname "$0")"
+out=${1:-build}
+
+rm -rf "$out"
+typst compile --root . --features bundle,html -f bundle main.typ "$out"
+
+echo "Built site in $out/"