Press n or j to go to the next uncovered block, b, p or k for the previous block.
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 | import type {
CalloutTone,
DocCard,
DocDiagram,
DocStep,
} from "./components/DocBlocks";
/** A tinted aside — a tip, a note, or a warning. */
export interface DocCallout {
tone: CalloutTone;
title?: string;
text: string;
}
/** A table. The first column renders as a code token unless told otherwise. */
export interface DocTableSpec {
headers: string[];
rows: string[][];
/** Render the first column as plain text rather than as a code token. */
plainFirstColumn?: boolean;
}
/** A hero image under an article's title. `src` is a path under public/. */
export interface DocImage {
src: string;
alt: string;
}
/**
* One block of an article. Blocks render in a fixed order — heading, app
* path, paragraphs, list, cards, callout, steps, table, diagram, code — so a
* section that needs a different order is two sections.
*/
export interface DocSection {
heading?: string;
/** Where this lives in the app, as a breadcrumb: Inference › Agents. */
appPath?: string[];
paragraphs?: string[];
list?: string[];
/** A grid of short concept cards — the glanceable form of a list. */
cards?: DocCard[];
code?: string;
codeLabel?: string;
callout?: DocCallout;
steps?: DocStep[];
table?: DocTableSpec;
diagram?: DocDiagram;
diagramCaption?: string;
}
export interface DocContent {
title: string;
description: string;
image?: DocImage;
sections: DocSection[];
}
|