Audit round 3: dedup site styles, single-read lint, doc consolidation
- Single-sourced the category key: new
--category-{concept,entity,source,note}tokens incolor.cssplus a sharedcategory-dot.cssrule now feed the backlink chips, the graph legend, and the graph canvas (which resolves the same variable names through its probe node) — three hand-synced copies of the same four colors collapsed to one, withTYPE_BY_CATEGORYexported fromcontract.tsso the legend derives from the contract instead of hardcoding it. - Extracted
entry-list.cssfrom the category listings and the per-tag pages, which carried ~45 lines of byte-identical CSS; each page now keeps only its own deltas (tag pages’ ellipsis clipping, the entity source-count and letter-group rules). - Unified the two listing branches in
[category]/index.astrobehind a single group shape (an ungrouped listing is one unlabelled group). Fixes a latent bug: the letter-grouped branch omittedentry-count, so entity(sources: N)badges would have silently vanished had Entities ever passed 24 pages. wiki_lint.pynow reads each page once — frontmatter and[[links]]are parsed at collection time and carried onPage— instead of re-opening every file in four separate checks. Measured on this repo: 330 file reads → 82, 4–5 reads per page → 1. No behavior change; 59 Python tests still pass.- Removed dead code:
skeleton.css(18 lines, unreferenced, describing Music/Movies/Mastodon feeds this repo doesn’t have), an unusedNodetype re-export inremark-wiki-links.ts, and the unused--primary/--primary-foreground/--destructive/--red-9/--red-11/--aspect-videotokens. The gray/space/radius/blur scales were left whole on purpose — a scale is a system, not a per-use token. - Docs: the lint check catalog lived in five places (script docstring,
scripts/README.mdtable,CLAUDE.mdLint Layer 1,CLAUDE.mdIngest step 9, root README). Thescripts/README.mdtable is now canonical and the other four point at it;CLAUDE.mdshed ~1.1K chars with no loss of workflow instruction. - Verified: wiki_lint clean, 59 Python tests, 45 Bun tests,
astro check0 errors, 214 pages built (unchanged), Biome clean. Listing/legend/backlink rendering checked against computed styles in a real browser — pixel-identical. - pages touched: none (site + scripts + docs only).