Skip to content

Commit 4f41b3f

Browse files
sbryngelsonclaude
andcommitted
Fix doc reference lint for auto-generated pages
Register auto-generated page IDs (parameters, case_constraints, examples, cli) in lint_docs.py so the pre-commit doc reference check does not flag them as missing. These pages are created by ./mfc.sh generate and only exist after generation. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 0f4f41a commit 4f41b3f

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

toolchain/mfc/lint_docs.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -322,7 +322,8 @@ def check_page_refs(repo_root: Path) -> list[str]:
322322
return []
323323

324324
# Collect all @page identifiers
325-
page_ids = {"citelist"} # Doxygen built-in
325+
# Include Doxygen built-ins and auto-generated pages (created by ./mfc.sh generate)
326+
page_ids = {"citelist", "parameters", "case_constraints", "examples", "cli"}
326327
for md_file in doc_dir.glob("*.md"):
327328
text = md_file.read_text(encoding="utf-8")
328329
m = re.search(r"^\s*@page\s+(\w+)", text, flags=re.MULTILINE)

0 commit comments

Comments
 (0)