Repository navigation
fix(docs): correct per-category rule counts on group overview pages - #171
Merged
Merged
Conversation
…1661 The SEO group overview page (docs/rules/seo/index.mdx) carries its own copy of each category's rule count. Only the canonical index (docs/rules/index.mdx) was guarded, so eight of the overview's cards had gone stale against loadAllRules(): crawl 18 -> 20, core 13 -> 14, links 14 -> 15, content 12 -> 18, schema 10 -> 12, social 4 -> 5, a11y 59 -> 61, url 8 -> 9 Counts recomputed from packages/rules (loadAllRules(), 278 rules / 21 categories at this commit). The other group overview pages (agents, performance, security) were checked and are already current, as are the exact totals on docs/index.mdx and docs/agent-setup/index.mdx. Refs squirrelscan/repo#1661, which adds a guard on the private side so these pages cannot drift again. Signed-off-by: Nik Cubrilovic <[email protected]>
6 tasks done
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
docs/rules/seo/index.mdxis a group overview page: it repeats each category'srule count in its own cards. Only the canonical index (
docs/rules/index.mdx) iscovered by the count guard, so this second copy drifted silently. Eight cards were
stale against the live catalog:
How the numbers were derived
Recomputed from this repo, not copied from anywhere:
loadAllRules()inpackages/rules, tallied byrule.meta.category. At this commit that is278 rules across 21 categories.
Also checked, no change needed
docs/rules/agents/index.mdx(ax 17),docs/rules/performance/index.mdx(perf 29, card and prose),
docs/rules/security/index.mdx(integrity 9,legal 4, blocking 3, security 16) are all current.
docs/index.mdx(278 / 21, including the per-categorytable, which sums to 278) and
docs/agent-setup/index.mdx(278) are current.the SEO group in
packages/report/src/categories.ts, plus the docs-onlyGap Analysis card.
Validation
make validateindocs/:Pages: 384 Orphans: 1 ✓ All checks passed.make build: 387 pages built, clean.Follow-up (not in this PR)
docs/configuration/rules.mdxis stale in the same way but needs a contentrewrite rather than a numeric fix: it claims "All 18 audit rule categories",
lists 20 sections (Site Integrity is missing entirely), documents the legacy
ai/*alias instead of the canonicalax/*, and has 14 stale**Rules:** Nvalues. Tracked separately so this fix stays reviewable.
Refs squirrelscan/repo#1661, which adds the guard that stops these pages
drifting again.