Skip to content

feat(site): check marked website examples with the reference checker - #27

Merged
weisser-dev merged 1 commit into
mainfrom
feat/site-checked-examples
Nov 26, 2026
Merged

weisser-dev merged 1 commit into
mainfrom
feat/site-checked-examples

Conversation

@weisser-dev

@weisser-dev weisser-dev commented Nov 26, 2026 •

Copy link
Copy Markdown
Member

Summary

Website pages show manifests of three API versions, and nothing noticed when one stopped validating. npm run check:examples (site/) runs every YAML block that follows an awp-check comment through the reference checker:

  • <!-- awp-check -->: valid under all profiles; profiles=core,governance narrows them.
  • expect=<code>: rejected with that code and no error of another family (same rule as the conformance runner).
  • Unknown options or profiles, a marker without a YAML block, and a run without any marked example fail.

Part of npm test in site/ and of the pages workflow. The Quickstart manifest is marked. Also corrects the pinned Astro/Starlight versions in site/README.md.

Tested

  • npm test: 596/596 (unchanged suite)
  • site: npm run check:examples on this commit alone: 1 marked example, 0 failed; negative cases (unknown profile, unknown option, marker without block, expectation with stray errors) fail as intended

First of two PRs; #28 (D22) builds on it.

Website pages show YAML manifests of three API versions, and nothing
noticed when one of them stopped validating. `npm run check:examples`
runs every YAML block that follows an `awp-check` comment through the
reference checker: valid under all or the named profiles, or rejected
with an expected diagnostic code and no error of another family, as in
the conformance runner. Unknown options or profiles fail the run, and so
does a run without any marked example. Unmarked blocks (fragments,
proposals) are never checked. The Quickstart manifest is marked.

Part of `npm test` in site/ and of the pages workflow. Also corrects the
pinned Astro and Starlight versions in site/README.md.

Signed-off-by: Erik <erik@weisser.dev>
@weisser-dev
weisser-dev merged commit dfd63de into main Nov 26, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant