aboutsummaryrefslogtreecommitdiff
path: root/build.sh
blob: 7fb4bedb27c53693bc53db5239327382b5e7e265 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
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/"