#!/usr/bin/env bash
# Regenerate diagram-slide-rule.widget.html from the WIDGET:START/END block in diagram-slide-rule.html.
set -euo pipefail
SLUG=$(basename "$(pwd)")
SCRIPT_DIR=$(cd "$(dirname "$0")/../.." && pwd)
node "$SCRIPT_DIR/scripts/extract-widget.mjs" "$SLUG"
