Commit 368625d
feat(gates): parse every docs frontmatter block locally, not in
Nothing under `scripts/` YAML-parsed `content/docs/**` frontmatter. The one
gate that reads those pages line by line, `check:doc-anchors`, deliberately
blanks the block, so the closest thing to a frontmatter reader was the thing
that erases it. The only owner of "this frontmatter parses" was `Build Docs` —
a full `next build` on a 30-minute-timeout runner that exists only in CI and is
path-filtered besides.
`scripts/check-doc-frontmatter.mjs` reads the corpus with the docs build's own
extractor regex and the same `yaml` parser fumadocs resolves, and types the two
keys `pageSchema` declares. Wired into lint.yml directly (root package.json is
inside the #9465 fence), both legs.
Closes #10493
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DdCnBGcHeufjrq7drTD3wtnext build
1 parent 8f04d9a commit 368625d
2 files changed
Lines changed: 807 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
621 | 621 | | |
622 | 622 | | |
623 | 623 | | |
| 624 | + | |
| 625 | + | |
| 626 | + | |
| 627 | + | |
| 628 | + | |
| 629 | + | |
| 630 | + | |
| 631 | + | |
| 632 | + | |
| 633 | + | |
| 634 | + | |
| 635 | + | |
| 636 | + | |
| 637 | + | |
| 638 | + | |
| 639 | + | |
| 640 | + | |
| 641 | + | |
| 642 | + | |
| 643 | + | |
| 644 | + | |
| 645 | + | |
| 646 | + | |
| 647 | + | |
| 648 | + | |
| 649 | + | |
| 650 | + | |
| 651 | + | |
| 652 | + | |
| 653 | + | |
| 654 | + | |
| 655 | + | |
| 656 | + | |
| 657 | + | |
| 658 | + | |
624 | 659 | | |
625 | 660 | | |
626 | 661 | | |
| |||
0 commit comments