Repository navigation
feat: docs tables, cards, search dialog and ToC (#8, #9, #10, #11) - #12
Merged
Merged
Conversation
Add DocsTable with explicit narrow/prose columns and a scroll box, plus default Markdown table styles that never scroll the page. Add CardGrid and DocsCard with explicit prose resets so cards have no bullets or underlined text. Rework SearchDialog into a single header row with a themed focus ring, readable results, a 16px input and a full-screen mobile dialog. Generate an On this page ToC in DocsLayout from headings, with a sticky desktop sidebar, a mobile details block, active-section highlighting and a toc={false} opt-out.
Closes #8
Closes #9
Closes #10
Closes #11
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.
Summary
Docs chrome overhaul covering #8, #9, #10 and #11. One branch, no version bump; everything is under
[Unreleased].#8 — tables
DocsTable.astro: data-drivencolumns/rows, explicitnarrow(shrink + nowrap) andprose(wrap at 16–20ch mobile / 20–48ch desktop) columns, optionalcaption, and an internal scroll box.display: block; width: max-content; max-width: 100%; overflow-x: autopattern, so they scroll inside the table rather than the page.DocsTableopts out via.kdc-table.scroll-margin-topso anchors land below the sticky navbar.#9 — overview cards
CardGrid.astro(1 / 2 / 3 responsive columns) andDocsCard.astro(title,description,href, optionalicon)..kdc-card-gridprose resets.not-prosealone is inert here because the package does not install@tailwindcss/typography; the class is kept for consumers that do.#10 — search dialog
text-base, breadcrumbstext-sm, in both the server-rendered list and the client re-render path.max(1rem, 16px)) so iOS Safari does not zoom.scale: 1on the open daisyUI modal box, whose open-state rule is shadowed by a deeper layer in daisyUI 5.7.#11 — table of contents
DocsLayoutacceptsheadings: TocHeading[]andtoc?: boolean(default on).lg, collapsible<details>block belowlg.aria-current="location"on both copies; notocand no headings keeps the original centred layout.TocHeadingcore type;DocsLayoutis otherwise unchanged for existing pages.Playground
/docs/configreference page with realisticktor.deployment.*tables, a long-key table, and h2/h3 headings for ToC depth filtering.CardGrid/DocsCardandDocsTable.toc={false}.headings.Validation
pnpm typecheckpnpm test— 66 tests passpnpm buildpnpm --filter @kolektiv/common-docs-chrome-playground buildChecked in headless Chrome at 390 / 768 / 1024 / 1440px:
Notes
.astropages needs hand-authoredheadingsentries with matching elementids; Markdown pages get them automatically.Closes #8
Closes #9
Closes #10
Closes #11