/** * Authored lexicon doc pages (chant #1731 / #1733). * * A lexicon's prose lives as `.mdx` files under `lexicons//docs/pages/`. * Each carries a `diataxis` frontmatter field naming its Diátaxis quadrant * (https://diataxis.fr). The pipeline expands `{{file:...}}` markers, stamps a * provenance marker and writes the result into `src/content/docs/`, and the * sidebar is grouped from the field. This replaced two older modes — prose * inside `docs.ts` template literals (`extraPages`) and hand-written content * pages wired through `sidebarExtra` — removed in chant #1757. * * Frontmatter recognised here, on top of Starlight's `title` / `description`: * * - `diataxis`: `tutorial | how-to | reference | explanation`. Required. * - `label`: sidebar label; defaults to `title`. * - `group`: a nested subgroup label inside the quadrant (e.g. "Vendor Composites"). * - `order`: number; lower sorts first within its group. Unordered pages follow, by label. * - `hidden`: `true` keeps the page out of the sidebar (reachable by URL only). * * `group` / `order` / `hidden` / `label` are stripped from the written copy so * Starlight's schema never sees them; `diataxis` stays, and the generated * `content.config.ts` declares it. */ import type { DocsConfig, Quadrant, SidebarPage } from "./docs-types.js"; export declare const QUADRANTS: readonly Quadrant[]; /** Sidebar group label for each quadrant, in display order. */ export declare const QUADRANT_LABELS: Record; export interface AuthoredPage extends SidebarPage { /** Source file name under `pagesDir`, e.g. `getting-started.mdx`. */ file: string; /** Page body with the rewritten frontmatter, markers expanded. */ content: string; } /** * Read every authored page under `pagesDir`. Returns an empty list when the * directory does not exist, which is every lexicon before it migrates. */ export declare function readAuthoredPages(config: DocsConfig): AuthoredPage[]; //# sourceMappingURL=docs-pages.d.ts.map