Commit 034959b
committed
feat(tour): unify index Topics list — parts + docs, muted summaries
Collapses the index.html TOC from two separate cards ("Parts" and
"Topics") into a single unified list under one "Topics" header.
Each row has the same shape: a bright title link and a muted
one-liner context (section count for parts, summary for docs) —
matching the dek-line treatment on the socket.dev footer reference.
Build-side:
- scripts/tour.mts: new rewriteIndexContents replaces meander's
Parts card + any legacy Topics card with the unified block.
Uses node-html-parser (newly pinned devDep) instead of regex —
selector queries + element replacement survive future meander
output whitespace changes without brittle patterns.
- Removes the now-redundant Index-page TOC post-process step
(<ul> → <ol class="wt-parts-ol"> + "Part N:" prefix stripping)
since rewriteIndexContents replaces the whole card anyway.
Style-side:
- walkthrough-overrides.css: replaces the old .wt-parts-ol rules
with .wt-contents + .wt-contents-row + .wt-contents-title +
.wt-contents-summary. Muted summary color (var(--eyebrow)), tight
but not crowded row rhythm (8px padding + hairline separators),
hover tint on titles.
devDep: node-html-parser 7.1.0 (exact pin, not catalog — this repo
has no catalog and adding infrastructure for a single helper was
disproportionate).1 parent 5d7e521 commit 034959b
4 files changed
Lines changed: 235 additions & 76 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
90 | 90 | | |
91 | 91 | | |
92 | 92 | | |
| 93 | + | |
93 | 94 | | |
94 | 95 | | |
95 | 96 | | |
| |||
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
0 commit comments