fix(ci): run public pages via bash script with per-file logging

Move the Build & export loop into scripts/run-public-pages.sh (explicit
bash, skip files without # main) so CI failures show which demo broke.
Also quote remaining time/json italic string args.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
cflmyandCursor committed 2026-08-28 12:27:57 +08:00
1 parent 0fddc3bf05
commit 7317a653c7
5 files changed
+24 -14

No files matched your search

+16
View File
@@ -0,0 +1,16 @@
#!/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"
cargo build --release
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