Skip to content

Commit 034959b

Browse files
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

File tree

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,7 @@
9090
"magic-string": "0.30.21",
9191
"marked": "18.0.0",
9292
"nock": "14.0.10",
93+
"node-html-parser": "7.1.0",
9394
"oxfmt": "0.37.0",
9495
"oxlint": "1.52.0",
9596
"pacote": "21.0.1",

pnpm-lock.yaml

Lines changed: 83 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)