From a4ea56525f130caaa12f39a4438078a0693e27be Mon Sep 17 00:00:00 2001 From: m1ngsama Date: Sat, 23 May 2026 19:38:48 +0800 Subject: [PATCH] Add beta documentation consistency check --- README.md | 5 +++-- scripts/test-quick.sh | 12 ++++++++++++ 2 files changed, 15 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 1e2e991..148d032 100644 --- a/README.md +++ b/README.md @@ -145,8 +145,9 @@ for native `S`. For onboarding, use `:ChopsticksTutor` for a guided practice page, `SPC ?` for the active keymap, and `:ChopsticksStatus` for tool/LSP health. `QUICKSTART.md` is the 5-minute path; this README is the full reference. -During the beta, `:ChopsticksBeta` opens the in-editor test checklist and -`:ChopsticksBetaLog` opens editable local notes. +During the beta, `:ChopsticksBeta` opens the in-editor test checklist, +`:ChopsticksBetaLog` opens editable local notes, and `:ChopsticksBetaSession` +appends a timestamped session block. ``` SPC SPC fuzzy find file gd go to definition diff --git a/scripts/test-quick.sh b/scripts/test-quick.sh index b4cf906..68457f9 100755 --- a/scripts/test-quick.sh +++ b/scripts/test-quick.sh @@ -28,6 +28,18 @@ check_docs() { need markdownlint markdownlint README.md QUICKSTART.md CONTRIBUTING.md CHANGELOG.md BETA.md + step "Documentation consistency" + for command in ChopsticksBeta ChopsticksBetaLog ChopsticksBetaSession; do + for file in README.md BETA.md modules/beta.vim modules/cheatsheet.vim \ + modules/tutor.vim modules/status.vim + do + grep -Fq "$command" "$file" || { + echo "Missing $command in $file" >&2 + exit 1 + } + done + done + if command -v vhs >/dev/null 2>&1; then vhs validate .github/demo.tape else