Docs kit
The Docs kit (@qazana/strata/docs) is the documentation and help-center surface. It pairs
with the Content kit rather than duplicating it: load content.css + docs.css + qazana.js. The
reading column reuses content.css’s global .prose, .toc, callouts and code; docs.css adds only
the chrome content lacks — a 3-column shell, a collapsible sidebar nav, API-reference blocks, a
version switcher, and the help-center landing. Everything is scoped under .docs.
No baked search modal: search is provider-supplied (Algolia DocSearch, Pagefind), so the kit ships
the trigger/field as a hook. Sidebar nesting is native <details> — the correct ARIA for
navigation, not a tree widget.
Documentation shell
Section titled “Documentation shell”3-column shell: collapsible sidebar nav (native <details> groups), prose content, and a sticky
TOC that reuses the [data-toc] scrollspy:
API reference
Section titled “API reference”Stacked, collapsible endpoint blocks with verb badges, params tables, and request/response samples, plus a version switcher:
Help center
Section titled “Help center”Search-first landing with a category grid and popular articles:
Help article
Section titled “Help article”Breadcrumb, prose article, “was this helpful?” feedback, and related articles:
What’s inside
Section titled “What’s inside”| Component | Class / hook | Notes |
|---|---|---|
| Doc shell | .doc-shell | sidebar | prose | TOC; responsive collapse |
| Sidebar nav | .doc-nav + <details> | multi-level, aria-current="page" |
| Search trigger | .doc-search | provider hook, not wired search |
| Pager | .doc-pager | prev/next link cards |
| API endpoint | .api-ref (<details>) | collapsible block |
| Verb badge | .api-method.get/.post/.put/.patch/.delete | info/primary/warning/danger |
| Params | .api-params | name/type/required/description |
| Code sample | .api-code | request/response |
| Version switcher | .doc-version | styled native <select> |
| Help landing | .help + .help-hero/.help-cats/.help-list | search hero, categories, popular |
| Breadcrumb | .crumbs | a + .sep |
| Feedback | .help-vote | ”was this helpful?” |
| Related | .help-related | article cards |
<!-- docs / help page --><link rel="stylesheet" href="@qazana/strata/content"><link rel="stylesheet" href="@qazana/strata/docs"><script type="module" src="@qazana/strata"></script>
<body class="docs"> <div class="doc-shell"> <nav class="doc-nav">…</nav> <article class="prose">…</article> <!-- prose comes from the Content kit --> <nav class="toc" data-toc>…</nav> </div></body>