#!/usr/bin/env bash
set -euo pipefail

ROOT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
SITE_DIR="${ROOT_DIR}/docs/site"

echo "[docs] Installing dependencies in ${SITE_DIR}"
cd "${SITE_DIR}"
npm ci

echo "[docs] Building static site"
npm run build

echo "[docs] Build complete. Output: ${SITE_DIR}/build"
