Files
marqdo/scripts/run-public-pages.sh
cflmyandCursor d539e6b96b fix(pages): build linalg plugin for public site CI
public/features/07-linalg needs marqdo_plugin_linalg; pages only built quantum.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-09-07 19:35:52 +08:00

21 lines
585 B
Bash
Executable File

#!/usr/bin/env bash
# Run every public/*.mq.md that defines `# main`, then export the site.
set -euo pipefail
ROOT="$(cd "$(dirname "$0")/.." && pwd)"
cd "$ROOT"
# CLI + native plugins used by public demos (ext/quantum, ext/linalg).
cargo build --release -p marqdo -p marqdo_plugin_quantum -p marqdo_plugin_linalg
BIN=./target/release/marqdo
while IFS= read -r -d '' f; do
if grep -q '^# main' "$f"; then
echo "+ marqdo run $f"
"$BIN" run "$f"
else
echo "- skip (no # main): $f"
fi
done < <(find public -name '*.mq.md' -print0)
"$BIN" view output public -o public