Skip to content

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.

3-column shell: collapsible sidebar nav (native <details> groups), prose content, and a sticky TOC that reuses the [data-toc] scrollspy:

Open “Docs — guide” in a new tab ↗

Stacked, collapsible endpoint blocks with verb badges, params tables, and request/response samples, plus a version switcher:

Open “Docs — API reference” in a new tab ↗

Search-first landing with a category grid and popular articles:

Open “Docs — help center” in a new tab ↗

Breadcrumb, prose article, “was this helpful?” feedback, and related articles:

Open “Docs — help article” in a new tab ↗
ComponentClass / hookNotes
Doc shell.doc-shellsidebar | prose | TOC; responsive collapse
Sidebar nav.doc-nav + <details>multi-level, aria-current="page"
Search trigger.doc-searchprovider hook, not wired search
Pager.doc-pagerprev/next link cards
API endpoint.api-ref (<details>)collapsible block
Verb badge.api-method.get/.post/.put/.patch/.deleteinfo/primary/warning/danger
Params.api-paramsname/type/required/description
Code sample.api-coderequest/response
Version switcher.doc-versionstyled native <select>
Help landing.help + .help-hero/.help-cats/.help-listsearch hero, categories, popular
Breadcrumb.crumbsa + .sep
Feedback.help-vote”was this helpful?”
Related.help-relatedarticle 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>