CI: validate snippet MDX frontmatter and asset references #136
Labels
No labels
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
pokebedrock/wiki#136
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
npm run lintcurrently validates frontmatter and local image references for regular docs, but both custom validators explicitly skipdocs/**/snippets/**.Evidence
On current
main, I created a temporary local repro file underdocs/en/snippets/__tmp-validation-gap.mdxwith:lastUpdated: 2026-04-19), which the schema rejects for normal docs)Even with that file present, the repo's current validators still passed:
That proves snippet MDX currently sits outside the frontmatter + image validation gate even though snippet files in this repo already carry frontmatter metadata and can contain importable content.
Impact
A broken snippet can land on
mainwithout CI noticing:Acceptance criteria
scripts/validate-frontmatter.tsvalidates regular docs plusdocs/**/snippets/**scripts/check-images.tsvalidates regular docs plusdocs/**/snippets/**_partialsremain excluded unless/until they gain a consistent validation contractnpm run lintfails when a snippet MDX file has invalid frontmatter or a broken local image referenceAlready fixed on
mainbyaf00d16(PR #137).scripts/validate-frontmatter.tsandscripts/check-images.tsno longer ignore**/snippets/**._partialsstay excluded. Current frontmatter ignore is_partials,node_modules, andREADME.md; the image ignore is_partialsandnode_modules.