@blaaiz/docs-core 0.1.0 → 0.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/ui.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/ui/accordion.tsx","../src/ui/api-layout.tsx","../src/ui/api-sidebar.tsx","../src/ui/auth-screen.tsx","../src/ui/callout.tsx","../src/ui/card.tsx","../src/ui/docs-icons.tsx","../src/ui/error-screen.tsx","../src/ui/steps.tsx","../src/ui/mdx.tsx","../src/ui/sidebar.tsx"],"names":["jsxs","jsx","Fragment"],"mappings":";;;;AAgBO,SAAS,SAAA,CAAU,EAAE,KAAA,EAAO,QAAA,EAAS,EAA4C;AACtF,EAAA,uBACE,IAAA;AAAA,IAAC,SAAA;AAAA,IAAA;AAAA,MACC,KAAA,EAAO;AAAA,QACL,MAAA,EAAQ,kCAAA;AAAA,QACR,YAAA,EAAc,CAAA;AAAA,QACd,OAAA,EAAS,WAAA;AAAA,QACT,MAAA,EAAQ;AAAA,OACV;AAAA,MAEA,QAAA,EAAA;AAAA,wBAAA,GAAA,CAAC,SAAA,EAAA,EAAQ,OAAO,EAAE,MAAA,EAAQ,WAAW,UAAA,EAAY,GAAA,IAAQ,QAAA,EAAA,KAAA,EAAM,CAAA;AAAA,4BAC9D,KAAA,EAAA,EAAI,KAAA,EAAO,EAAE,SAAA,EAAW,CAAA,IAAM,QAAA,EAAS;AAAA;AAAA;AAAA,GAC1C;AAEJ;AAOO,SAAS,cAAA,CAAe,EAAE,QAAA,EAAS,EAA6B;AACrE,EAAA,2BAAQ,KAAA,EAAA,EAAI,KAAA,EAAO,EAAE,MAAA,EAAQ,QAAA,IAAa,QAAA,EAAS,CAAA;AACrD;ACMO,SAAS,mBAAmB,KAAA,EAAqC;AAGtE,EAAA,IAAI,aAAa,KAAA,CAAM,aAAA;AACvB,EAAA,IACE,eAAe,UAAU,CAAA,IACxB,UAAA,CAAW,IAAA,CAAsC,mB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AAA,EAAO;AAAA,UACL,QAAA,EAAU,EAAA;AAAA,UACV,UAAA,EAAY,GAAA;AAAA,UACZ,KAAA,EAAO,4BAAA;AAAA,UACP,YAAA,EAAc;AAAA,SAChB;AAAA,QAEC,QAAA,EAAA,GAAA,CAAI;AAAA;AAAA,KACP;AAAA,oBACAA,IAAC,KAAA,EAAA,EAAM,KAAA,EAAO,IAAI,KAAA,EAAO,KAAA,EAAO,GAAG,WAAA,EAA0B;AAAA,GAAA,EAAA,EAXrD,KAAK,MAAA,CAAO,KAAK,CAAC,CAAA,CAY5B,CACD,CAAA,EACH,CAAA;AAEJ","file":"ui.js","sourcesContent":["import type { ReactNode } from 'react';\n\n/**\n * Accordion components — the Mintlify `<Accordion>` and `<AccordionGroup>`.\n * Built on the native `<details>` element, so they are interactive with zero\n * client JavaScript and render in a Server Component. The hairline uses the\n * framework's border token, so it follows the site's palette and the dark theme.\n *\n * @packageDocumentation\n */\n\n/**\n * A single collapsible section.\n *\n * @public\n */\nexport function Accordion({ title, children }: { title: string; children?: ReactNode }) {\n return (\n <details\n style={{\n border: '1px solid var(--color-fd-border)',\n borderRadius: 8,\n padding: '10px 14px',\n margin: '8px 0',\n }}\n >\n <summary style={{ cursor: 'pointer', fontWeight: 600 }}>{title}</summary>\n <div style={{ marginTop: 8 }}>{children}</div>\n </details>\n );\n}\n\n/**\n * A group of accordions.\n *\n * @public\n */\nexport function AccordionGroup({ children }: { children?: ReactNode }) {\n return <div style={{ margin: '16px 0' }}>{children}</div>;\n}\n","import { cloneElement, isValidElement, type ReactElement, type ReactNode } from 'react';\n\n/**\n * The Mintlify-style API operation layout: one two-column row for the whole\n * operation, so the code rail starts level with the endpoint title. Pass it to\n * fumadocs-openapi — the slots type is structural, so this module needs no\n * fumadocs dependency and the site keeps ownership of that package.\n *\n * @example\n * ```tsx\n * export const APIPage = createOpenAPIPage({\n * content: { renderOperationLayout: apiOperationLayout },\n * });\n * ```\n *\n * @packageDocumentation\n */\n\n/**\n * The slots fumadocs-openapi hands to `renderOperationLayout`.\n *\n * @public\n */\nexport interface ApiOperationSlots {\n readonly header: ReactNode;\n readonly description: ReactNode;\n readonly apiPlayground: ReactNode;\n readonly authSchemes: ReactNode;\n readonly parameters: ReactNode;\n readonly body: ReactNode;\n readonly responses: ReactNode;\n readonly callbacks: ReactNode;\n readonly apiExample: ReactNode;\n}\n\n/**\n * Render an API operation as title → description → playground → request details\n * on the left, with the code/response rail as the right column. Pair with\n * `@blaaiz/docs-core/styles/api-reference.css`, which anchors the rail to the\n * viewport.\n *\n * @param slots - the operation slots from fumadocs-openapi\n * @returns the two-column operation layout\n * @public\n */\nexport function apiOperationLayout(slots: ApiOperationSlots): ReactNode {\n // When the playground is our ApiTryIt (it declares `acceptsExample`), hand it\n // the code/response column so its modal can show form and sample side by side.\n let playground = slots.apiPlayground;\n if (\n isValidElement(playground) &&\n (playground.type as { acceptsExample?: boolean }).acceptsExample === true\n ) {\n playground = cloneElement(playground as ReactElement<{ example?: ReactNode }>, {\n example: slots.apiExample,\n });\n }\n\n return (\n <div className=\"flex flex-col gap-x-6 gap-y-4 @4xl:flex-row @4xl:items-start\">\n <div className=\"min-w-0 flex-1\">\n {slots.header}\n {slots.description}\n {playground}\n {slots.authSchemes}\n {slots.parameters}\n {slots.body}\n {slots.responses}\n {slots.callbacks}\n </div>\n <div className=\"@4xl:sticky @4xl:top-[calc(var(--fd-docs-row-1,2rem)+1rem)] @4xl:w-[400px]\">\n {slots.apiExample}\n </div>\n </div>\n );\n}\n","import type { ReactNode } from 'react';\n\n/**\n * Sidebar helpers for the API reference: a coloured HTTP-method badge and a\n * page-tree transformer that prefixes each API page's sidebar entry with it —\n * the Mintlify look (POST · GET · … next to the endpoint name). Server-\n * compatible; styled by `styles/api-reference.css`.\n *\n * @packageDocumentation\n */\n\n/**\n * A coloured HTTP-method pill (GET, POST, …).\n *\n * @param props - the HTTP method\n * @public\n */\nexport function MethodBadge({ method }: { method: string }) {\n const upper = method.toUpperCase();\n return (\n <span className=\"api-method-badge\" data-method={method.toLowerCase()}>\n {upper}\n </span>\n );\n}\n\n/**\n * The minimal page-tree item this transformer touches. Structural, so the\n * framework needs no fumadocs types; a site passes the result straight into\n * `loader({ pageTree: { transformers } })`.\n *\n * @public\n */\nexport interface SidebarItem {\n readonly type?: string;\n readonly url?: string;\n name?: ReactNode;\n}\n\n/**\n * A page-tree transformer with a `file` hook, generic over the tree's own item\n * type so it slots into fumadocs' `loader({ pageTree: { transformers } })`\n * without a cast: `file` returns exactly the item type it was given.\n *\n * @public\n */\nexport interface SidebarBadgeTransformer {\n file<T extends SidebarItem>(node: T): T;\n}\n\n/**\n * A page-tree transformer that prefixes every API page's sidebar entry with its\n * HTTP-method badge, matching endpoint URLs against the `methods` map the\n * generator emits (`content/api-methods.json`).\n *\n * @example\n * ```ts\n * import methods from '@/content/api-methods.json';\n * loader({ pageTree: { transformers: [apiMethodBadges(methods)] } });\n * ```\n *\n * @param methods - map of page URL to HTTP method\n * @returns a transformer with a `file` hook\n * @public\n */\nexport function apiMethodBadges(\n methods: Readonly<Record<string, string>>,\n): SidebarBadgeTransformer {\n return {\n file<T extends SidebarItem>(node: T): T {\n const method = node.url ? methods[node.url] : undefined;\n if (!method) {\n return node;\n }\n // Only `name` is rewritten; every other field is carried through, so the\n // item keeps its original type.\n return {\n ...node,\n name: (\n <span className=\"api-nav-item\">\n <MethodBadge method={method} />\n <span className=\"api-nav-text\">{node.name}</span>\n </span>\n ),\n };\n },\n };\n}\n","/**\n * The sign-in screen for a workspace-gated docs site.\n *\n * A site renders one element — `<AuthScreen config={config} .../>` — and gets\n * the whole gate: brand, the allowed-domain note, the providers its config\n * declares (email, shared secret, Google), and an inline error banner. The\n * shared-secret provider is a two-step flow — email, then secret — rendered by\n * the `step` prop. The framework owns the layout and copy; the site owns only\n * its config. Server-rendered: every form is a native POST, no client JS.\n *\n * @packageDocumentation\n */\n\nimport type { ReactNode } from 'react';\n\nimport type { DocsConfig } from '../core/config.js';\n\nimport { strokeIcon } from './icons.js';\n\n/**\n * Map a sign-in error code (carried on `?error=` after a failed attempt) to a\n * human sentence. Unknown codes get a safe generic message.\n *\n * @param code - the error code, or undefined\n * @param domains - the allowed email domains, for the domain-mismatch message\n * @returns the message to show, or null when there is no error\n * @public\n */\nexport function authErrorMessage(\n code: string | undefined,\n domains: readonly string[],\n): string | null {\n if (!code) {\n return null;\n }\n const list = domains.join(', ');\n switch (code) {\n case 'forbidden':\n case 'domain':\n return list\n ? `That email isn't on an allowed domain. Sign in with your ${list} account.`\n : `That account isn't allowed to access these docs.`;\n case 'oauth':\n case 'state':\n return `Google sign-in didn't complete. Please try again.`;\n case 'badsecret':\n return `That secret is incorrect. Please try again.`;\n case 'expired':\n return `Your session expired. Sign in again to continue.`;\n case 'config':\n return `Sign-in isn't configured for this site. Contact the site owner.`;\n default:\n return `Something went wrong signing in. Please try again.`;\n }\n}\n\n/**\n * Props for {@link AuthScreen}.\n *\n * @public\n */\nexport interface AuthScreenProps {\n /** The site configuration; drives brand, providers, and allowed domains. */\n readonly config: DocsConfig;\n /** The path to return to after sign-in (from the gate's `?from=`). */\n readonly from?: string;\n /** A sign-in error code to surface inline (from `?error=`). */\n readonly error?: string;\n /**\n * Which step of the shared-secret flow to render. `'email'` (default) shows\n * the email field; `'secret'` shows the secret field for the already-validated\n * {@link AuthScreenProps.email}. Ignored unless the secret provider is enabled.\n */\n readonly step?: 'email' | 'secret';\n /** The domain-checked email to show on the secret step (from the site's cookie). */\n readonly email?: string;\n /**\n * Whether to offer the shared-secret flow. Defaults to whether config declares\n * the secret provider; pass `false` when its env secret is absent. When on, it\n * supersedes plain email sign-in.\n */\n readonly secretEnabled?: boolean;\n /**\n * Whether to offer the Google button. Defaults to whether config declares the\n * Google provider; pass `false` to hide it when its env vars are absent.\n */\n readonly googleEnabled?: boolean;\n /** The email sign-in endpoint. Default `/api/auth/email`. */\n readonly emailAction?: string;\n /** The shared-secret sign-in endpoint (both steps post here). Default `/api/auth/secret`. */\n readonly secretAction?: string;\n /** The Google sign-in start path. Default `/api/auth/google/start`. */\n readonly googleStartPath?: string;\n /** The sign-in page path, for the \"use a different email\" link. Default `/signin`. */\n readonly signInPath?: string;\n}\n\nfunction mailIcon(): ReactNode {\n return strokeIcon('mail');\n}\n\nfunction lockIcon(): ReactNode {\n return strokeIcon('lock');\n}\n\nfunction alertIcon(): ReactNode {\n return strokeIcon('info');\n}\n\nfunction keyIcon(): ReactNode {\n return strokeIcon('key');\n}\n\nfunction userIcon(): ReactNode {\n return strokeIcon('user');\n}\n\n/** Google's multicolour \"G\" mark. */\nfunction googleIcon(): ReactNode {\n return (\n <svg viewBox=\"0 0 24 24\" aria-hidden=\"true\">\n <path\n fill=\"#4285F4\"\n d=\"M23.52 12.27c0-.82-.07-1.6-.2-2.36H12v4.46h6.47a5.53 5.53 0 0 1-2.4 3.63v3.02h3.88c2.27-2.09 3.57-5.17 3.57-8.75z\"\n />\n <path\n fill=\"#34A853\"\n d=\"M12 24c3.24 0 5.96-1.08 7.95-2.91l-3.88-3.02c-1.08.72-2.45 1.16-4.07 1.16-3.13 0-5.78-2.11-6.73-4.96H1.29v3.12A12 12 0 0 0 12 24z\"\n />\n <path\n fill=\"#FBBC05\"\n d=\"M5.27 14.27a7.2 7.2 0 0 1 0-4.54V6.61H1.29a12 12 0 0 0 0 10.78l3.98-3.12z\"\n />\n <path\n fill=\"#EA4335\"\n d=\"M12 4.75c1.77 0 3.35.61 4.6 1.8l3.44-3.44A11.5 11.5 0 0 0 12 0 12 12 0 0 0 1.29 6.61l3.98 3.12C6.22 6.86 8.87 4.75 12 4.75z\"\n />\n </svg>\n );\n}\n\n/**\n * Render the sign-in screen.\n *\n * @param props - see {@link AuthScreenProps}\n * @public\n */\nexport function AuthScreen(props: AuthScreenProps): ReactNode {\n const { config, from, error } = props;\n const auth = config.auth;\n const workspace = auth === 'public' ? null : auth;\n const domains = workspace?.allowedDomains ?? [];\n const target = from ?? '/';\n const emailAction = props.emailAction ?? '/api/auth/email';\n const secretAction = props.secretAction ?? '/api/auth/secret';\n const googleStartPath = props.googleStartPath ?? '/api/auth/google/start';\n const signInPath = props.signInPath ?? '/signin';\n\n const secretEnabled = props.secretEnabled ?? Boolean(workspace?.providers.secret);\n const emailProvider = workspace?.providers.email ?? false;\n // The secret flow supersedes plain email sign-in: offering email-only too\n // would let a reader skip the secret.\n const hasEmailFlow = secretEnabled || emailProvider;\n const showGoogle = props.googleEnabled ?? Boolean(workspace?.providers.google);\n const message = authErrorMessage(error, domains);\n const logo = config.theme.logo;\n\n // The secret step: only when the flow is enabled and we hold a validated email.\n const onSecretStep = props.step === 'secret' && secretEnabled && Boolean(props.email);\n\n const brand = (\n <div className=\"auth-brand\">\n {logo ? (\n <>\n <img className=\"auth-logo-light\" src={logo.light} alt={config.theme.name} />\n <img className=\"auth-logo-dark\" src={logo.dark} alt={config.theme.name} />\n </>\n ) : (\n <>\n <span className=\"auth-dot\" aria-hidden=\"true\" />\n {config.theme.name}\n </>\n )}\n </div>\n );\n\n const errorBanner = message ? (\n <div className=\"auth-error\" role=\"alert\">\n {alertIcon()}\n <span>{message}</span>\n </div>\n ) : null;\n\n if (onSecretStep) {\n return (\n <div className=\"auth-screen\">\n <div className=\"auth-ambient\" aria-hidden=\"true\" />\n <main className=\"auth-card\">\n {brand}\n <h1 className=\"auth-title\">Enter access secret</h1>\n <p className=\"auth-sub\">One more step — enter the shared secret to continue.</p>\n\n <div className=\"auth-identity\">\n {userIcon()}\n <span className=\"auth-identity-email\">{props.email}</span>\n <a className=\"auth-change\" href={signInPath}>\n Change\n </a>\n </div>\n\n {errorBanner}\n\n <form className=\"auth-form\" action={secretAction} method=\"post\">\n <input type=\"hidden\" name=\"from\" value={target} />\n <label className=\"auth-label\" htmlFor=\"auth-secret\">\n Access secret\n </label>\n <div className=\"auth-field\">\n {keyIcon()}\n <input\n id=\"auth-secret\"\n name=\"secret\"\n type=\"password\"\n required\n autoFocus\n autoComplete=\"off\"\n placeholder=\"Enter the access secret\"\n className=\"auth-input\"\n />\n </div>\n <button type=\"submit\" className=\"auth-submit\">\n Sign in\n </button>\n </form>\n\n <p className=\"auth-foot\">\n {lockIcon()}\n Access is limited to your workspace.\n </p>\n </main>\n </div>\n );\n }\n\n return (\n <div className=\"auth-screen\">\n <div className=\"auth-ambient\" aria-hidden=\"true\" />\n <main className=\"auth-card\">\n {brand}\n <h1 className=\"auth-title\">Sign in</h1>\n <p className=\"auth-sub\">\n {domains.length ? (\n <>\n These docs are restricted to <b>{domains.join(', ')}</b> accounts.\n </>\n ) : (\n 'These docs are restricted to your workspace.'\n )}\n </p>\n\n {errorBanner}\n\n {hasEmailFlow ? (\n <form\n className=\"auth-form\"\n action={secretEnabled ? secretAction : emailAction}\n method=\"post\"\n >\n <input type=\"hidden\" name=\"from\" value={target} />\n <label className=\"auth-label\" htmlFor=\"auth-email\">\n Work email\n </label>\n <div className=\"auth-field\">\n {mailIcon()}\n <input\n id=\"auth-email\"\n name=\"email\"\n type=\"email\"\n required\n autoComplete=\"email\"\n autoFocus\n placeholder={`you@${domains[0] ?? 'company.com'}`}\n className=\"auth-input\"\n />\n </div>\n <button type=\"submit\" className=\"auth-submit\">\n {secretEnabled ? 'Continue' : 'Continue with email'}\n </button>\n </form>\n ) : null}\n\n {hasEmailFlow && showGoogle ? <div className=\"auth-divider\">or</div> : null}\n\n {showGoogle ? (\n <a className=\"auth-google\" href={`${googleStartPath}?from=${encodeURIComponent(target)}`}>\n {googleIcon()}\n Continue with Google\n </a>\n ) : null}\n\n <p className=\"auth-foot\">\n {lockIcon()}\n Access is limited to your workspace.\n </p>\n </main>\n </div>\n );\n}\n","import type { ReactNode } from 'react';\n\nimport { type GlyphName, strokeIcon } from './icons.js';\n\n/**\n * Callout components — the Mintlify `<Note>`, `<Warning>`, `<Info>`, and `<Tip>`\n * blocks. Server-compatible: no client state, so they render in a React Server\n * Component without a `'use client'` boundary.\n *\n * The box is styled by the `.cl` classes in `@blaaiz/docs-core/styles/docs.css`,\n * which a site already imports. That is what makes a callout follow the dark\n * theme: the class set carries a light and a dark palette per tone, where the\n * inline colours these components used before could only ever be light.\n *\n * @packageDocumentation\n */\n\ntype Tone = 'note' | 'warning' | 'info' | 'tip';\n\n/** The glyph each tone shows: a circled `i`, a bulb for a tip, a triangle to warn. */\nconst TONE_GLYPHS: Record<Tone, GlyphName> = {\n note: 'info',\n info: 'info',\n tip: 'bulb',\n warning: 'alert',\n};\n\n/**\n * A tinted callout box with the tone's icon.\n *\n * @public\n */\nexport function Callout({ tone = 'note', children }: { tone?: Tone; children?: ReactNode }) {\n return (\n <div className={`cl cl-${tone}`}>\n <span className=\"cl-icon\">{strokeIcon(TONE_GLYPHS[tone], { size: 18, rounded: true })}</span>\n <div className=\"cl-body\">{children}</div>\n </div>\n );\n}\n\n/** Mintlify `<Note>`. @public */\nexport function Note({ children }: { children?: ReactNode }) {\n return <Callout tone=\"note\">{children}</Callout>;\n}\n\n/** Mintlify `<Warning>`. @public */\nexport function Warning({ children }: { children?: ReactNode }) {\n return <Callout tone=\"warning\">{children}</Callout>;\n}\n\n/** Mintlify `<Info>`. @public */\nexport function Info({ children }: { children?: ReactNode }) {\n return <Callout tone=\"info\">{children}</Callout>;\n}\n\n/** Mintlify `<Tip>`. @public */\nexport function Tip({ children }: { children?: ReactNode }) {\n return <Callout tone=\"tip\">{children}</Callout>;\n}\n","import type { CSSProperties, ReactNode } from 'react';\n\n/**\n * Card components — the Mintlify `<Card>` and `<CardGroup>`. Server-compatible.\n *\n * Colours come from the framework's `--color-fd-*` theme variables, so a card\n * follows the site's palette and the dark theme. Nothing here is a fixed hue.\n *\n * @packageDocumentation\n */\n\n/**\n * A card. When `href` is set it renders as a link.\n *\n * @public\n */\nexport function Card({\n title,\n href,\n children,\n}: {\n title?: string;\n href?: string;\n children?: ReactNode;\n}) {\n const style: CSSProperties = {\n display: 'block',\n border: '1px solid var(--color-fd-border)',\n borderRadius: 12,\n padding: '16px 18px',\n textDecoration: 'none',\n color: 'inherit',\n background: 'var(--color-fd-card)',\n };\n const body = (\n <>\n {title !== undefined && (\n <div style={{ fontWeight: 700, fontSize: 15, marginBottom: 4 }}>{title}</div>\n )}\n <div style={{ color: 'var(--color-fd-muted-foreground)', fontSize: 14 }}>{children}</div>\n </>\n );\n if (href !== undefined) {\n return (\n <a href={href} style={style}>\n {body}\n </a>\n );\n }\n return <div style={style}>{body}</div>;\n}\n\n/**\n * A responsive grid of cards. `cols` sets the column count (default 2).\n *\n * @public\n */\nexport function CardGroup({ cols = 2, children }: { cols?: number; children?: ReactNode }) {\n const style: CSSProperties = {\n display: 'grid',\n gridTemplateColumns: `repeat(${String(cols)}, minmax(0, 1fr))`,\n gap: 12,\n margin: '16px 0',\n };\n return <div style={style}>{children}</div>;\n}\n","import type { ReactNode } from 'react';\n\n/**\n * Inline-SVG icon resolver for navigation icons named in `docs.json` (Mintlify\n * uses icon names like `house`, `book`, `code`). Zero dependency: a curated set\n * of common docs-nav icons plus a graceful no-icon fallback. Pass it to\n * `loader({ icon: docsIcon })`.\n *\n * @packageDocumentation\n */\n\nimport { type GlyphName, strokeIcon } from './icons.js';\n\n/** The glyphs a docs navigation reaches for, keyed by the names authors write. */\nconst ICONS: Record<string, GlyphName> = {\n house: 'house',\n book: 'book',\n code: 'code',\n rocket: 'rocket',\n terminal: 'terminal',\n wallet: 'wallet',\n key: 'key',\n webhook: 'webhook',\n globe: 'globe',\n};\n\n// Aliases point several common spellings at one glyph.\nconst ALIASES: Record<string, string> = {\n home: 'house',\n 'book-open': 'book',\n api: 'code',\n reference: 'code',\n terminal: 'terminal',\n bank: 'wallet',\n 'credit-card': 'wallet',\n auth: 'key',\n lock: 'key',\n world: 'globe',\n};\n\n/**\n * Resolve a `docs.json` icon name to an inline SVG. Unknown names resolve to\n * nothing, so the sidebar simply shows no icon rather than a broken one.\n *\n * @param name - the icon name from `docs.json`, or undefined\n * @returns the icon element, or undefined\n * @public\n */\nexport function docsIcon(name: string | undefined): ReactNode {\n if (!name) {\n return undefined;\n }\n const key = name.toLowerCase();\n const glyph = ICONS[key] ?? ICONS[ALIASES[key] ?? ''];\n // The key matters: fumadocs renders a nav link as the array [icon, text], and\n // an unkeyed element in that array raises React's \"unique key\" warning in the\n // consuming site's console.\n return glyph === undefined\n ? undefined\n : strokeIcon(glyph, { size: 16, rounded: true, key: `docs-icon-${glyph}` });\n}\n","/**\n * A general error screen with per-kind states.\n *\n * One component covers every full-page error a docs site shows — a missing page\n * (404), a forbidden account (403), a runtime failure (500), an offline state —\n * each with its own icon, eyebrow, and default copy. A site picks the `kind`\n * and, for runtime errors, passes a retry action; the framework owns the rest.\n * Server-compatible: the site's `error.tsx` wrapper carries the `'use client'`\n * boundary and hands in the retry button.\n *\n * @packageDocumentation\n */\n\nimport type { ReactNode } from 'react';\n\nimport { type GlyphName, strokeIcon } from './icons.js';\n\n/**\n * The error states the screen renders.\n *\n * @public\n */\nexport type ErrorKind = 'not-found' | 'forbidden' | 'server' | 'offline' | 'unknown';\n\n/**\n * The default eyebrow, title, description, and icon for a {@link ErrorKind}.\n *\n * @public\n */\nexport interface ErrorPreset {\n readonly code: string;\n readonly title: string;\n readonly description: string;\n readonly icon: ReactNode;\n}\n\n/** The screens' icons are drawn a hair lighter than the rest of the UI. */\nfunction icon(name: GlyphName): ReactNode {\n return strokeIcon(name, { strokeWidth: 1.75 });\n}\n\nconst PRESETS: Record<ErrorKind, ErrorPreset> = {\n 'not-found': {\n code: '404',\n title: 'Page not found',\n description: \"The page you're looking for doesn't exist or may have moved.\",\n icon: icon('crossCircle'),\n },\n forbidden: {\n code: '403',\n title: 'Access restricted',\n description: 'Your account is not allowed to view this page. Sign in with an allowed account.',\n icon: icon('lock'),\n },\n server: {\n code: '500',\n title: 'Something went wrong',\n description: 'An unexpected error occurred on our side. Please try again in a moment.',\n icon: icon('alert'),\n },\n offline: {\n code: 'Offline',\n title: \"You're offline\",\n description: 'Check your connection and try again.',\n icon: icon('offline'),\n },\n unknown: {\n code: 'Error',\n title: 'Something went wrong',\n description: 'An unexpected error occurred. Please try again.',\n icon: icon('info'),\n },\n};\n\n/**\n * The default preset for an error kind — its icon, eyebrow, and copy.\n *\n * @param kind - the error state\n * @returns the preset a site can render or override\n * @public\n */\nexport function errorPreset(kind: ErrorKind): ErrorPreset {\n return PRESETS[kind];\n}\n\n/**\n * Props for {@link ErrorScreen}. Everything but `kind` is optional: the kind's\n * preset fills the eyebrow, title, description, and icon unless overridden.\n *\n * @public\n */\nexport interface ErrorScreenProps {\n /** Which error state to render. Default `unknown`. */\n readonly kind?: ErrorKind;\n /** Override the eyebrow code (e.g. a specific status). */\n readonly code?: string;\n /** Override the title. */\n readonly title?: string;\n /** Override the description. */\n readonly description?: string;\n /** When set, render a primary button linking here (e.g. `/docs`). */\n readonly homeHref?: string;\n /** Label for the home button. Default \"Back to docs\". */\n readonly homeLabel?: string;\n /** An extra action rendered beside the home button (e.g. a retry button). */\n readonly action?: ReactNode;\n}\n\nfunction homeIcon(): ReactNode {\n return strokeIcon('house');\n}\n\n/**\n * Render the error screen.\n *\n * @param props - see {@link ErrorScreenProps}\n * @public\n */\nexport function ErrorScreen(props: ErrorScreenProps): ReactNode {\n const kind = props.kind ?? 'unknown';\n const preset = PRESETS[kind];\n const code = props.code ?? preset.code;\n const title = props.title ?? preset.title;\n const description = props.description ?? preset.description;\n\n return (\n <div className=\"error-screen\">\n <div className=\"auth-ambient\" aria-hidden=\"true\" />\n <main className=\"error-card\">\n <div className=\"error-glyph\" data-kind={kind}>\n {preset.icon}\n </div>\n <p className=\"error-code\">{code}</p>\n <h1 className=\"error-title\">{title}</h1>\n <p className=\"error-desc\">{description}</p>\n {props.homeHref || props.action ? (\n <div className=\"error-actions\">\n {props.homeHref ? (\n <a className=\"error-btn error-btn-primary\" href={props.homeHref}>\n {homeIcon()}\n {props.homeLabel ?? 'Back to docs'}\n </a>\n ) : null}\n {props.action}\n </div>\n ) : null}\n </main>\n </div>\n );\n}\n","import type { ReactNode } from 'react';\n\n/**\n * Steps components — the Mintlify `<Steps>` and `<Step>`. Server-compatible.\n *\n * The spine uses the framework's border token, so it follows the site's palette\n * and the dark theme.\n *\n * @packageDocumentation\n */\n\n/**\n * An ordered list of steps.\n *\n * @public\n */\nexport function Steps({ children }: { children?: ReactNode }) {\n return (\n <div\n style={{\n borderLeft: '2px solid var(--color-fd-border)',\n paddingLeft: 20,\n margin: '16px 0',\n display: 'flex',\n flexDirection: 'column',\n gap: 16,\n }}\n >\n {children}\n </div>\n );\n}\n\n/**\n * A single step with an optional title.\n *\n * @public\n */\nexport function Step({ title, children }: { title?: string; children?: ReactNode }) {\n return (\n <div>\n {title !== undefined && (\n <div style={{ fontWeight: 700, fontSize: 15, marginBottom: 4 }}>{title}</div>\n )}\n <div>{children}</div>\n </div>\n );\n}\n","import { Accordion, AccordionGroup } from './accordion.js';\nimport { Info, Note, Tip, Warning } from './callout.js';\nimport { Card, CardGroup } from './card.js';\nimport { Step, Steps } from './steps.js';\n\n/**\n * The Mintlify-compatible MDX component map.\n *\n * Pass this to an MDX renderer (for example `next-mdx-remote`'s `compileMDX`)\n * so real Mintlify guides render unchanged. A site no longer needs to shim\n * these itself.\n *\n * @public\n */\nexport const mdxComponents = {\n Note,\n Warning,\n Info,\n Tip,\n Card,\n CardGroup,\n Accordion,\n AccordionGroup,\n Steps,\n Step,\n};\n","import type { CSSProperties } from 'react';\n\nimport type { NavItem, NavPage, Navigation } from '../core/index.js';\n\n/**\n * The navigation sidebar. Renders a {@link Navigation} tree (produced by\n * `parseNavigation`) as tabs, groups, and page links. Framework-agnostic: it\n * emits plain anchors and takes an optional `resolveHref` so a site controls\n * its own routing. Server-compatible.\n *\n * @packageDocumentation\n */\n\n/**\n * Map a navigation page to a URL. Override to control routing — the default\n * assumes one specific site shape, which is why {@link DocsSidebar} is\n * deprecated.\n *\n * @public\n */\nexport type ResolveHref = (page: NavPage) => string;\n\nconst defaultResolveHref: ResolveHref = (page) => {\n if (page.kind === 'openapi') {\n return '/reference';\n }\n if (page.file === 'introduction') {\n return '/';\n }\n return `/${page.file}`;\n};\n\n/**\n * The method palette. The three status hues are the ones\n * `styles/api-reference.css` uses for its badges, so a method reads the same\n * colour everywhere; `POST` follows the site's own accent.\n */\nconst METHOD_COLORS: Record<string, string> = {\n GET: '#16a34a',\n POST: 'var(--color-fd-primary)',\n PUT: '#d97706',\n PATCH: '#d97706',\n DELETE: '#dc2626',\n};\n\nfunction labelForDoc(file: string): string {\n const last = file.split('/').pop() ?? file;\n return last.replace(/-/g, ' ').replace(/\\b\\w/g, (c) => c.toUpperCase());\n}\n\nfunction Items({\n items,\n depth,\n resolveHref,\n}: {\n items: readonly NavItem[];\n depth: number;\n resolveHref: ResolveHref;\n}) {\n const list: CSSProperties = { listStyle: 'none', margin: 0, paddingLeft: depth === 0 ? 0 : 12 };\n const groupLabel: CSSProperties = {\n fontSize: 11,\n fontWeight: 700,\n textTransform: 'uppercase',\n letterSpacing: '0.04em',\n color: 'var(--color-fd-muted-foreground)',\n margin: '6px 0',\n };\n const link: CSSProperties = {\n display: 'flex',\n alignItems: 'center',\n gap: 8,\n padding: '5px 8px',\n borderRadius: 6,\n color: 'var(--color-fd-foreground)',\n textDecoration: 'none',\n fontSize: 14,\n };\n return (\n <ul style={list}>\n {items.map((item, index) => {\n if (item.kind === 'group') {\n return (\n <li key={`g-${String(index)}`} style={{ marginTop: 10 }}>\n <div style={groupLabel}>{item.title}</div>\n <Items items={item.items} depth={depth + 1} resolveHref={resolveHref} />\n </li>\n );\n }\n return (\n <li key={`p-${String(index)}`}>\n <a href={resolveHref(item)} style={link}>\n {item.kind === 'openapi' && (\n <span\n style={{\n fontSize: 9,\n fontWeight: 700,\n color: METHOD_COLORS[item.method] ?? 'var(--color-fd-muted-foreground)',\n minWidth: 34,\n }}\n >\n {item.method}\n </span>\n )}\n <span>\n {item.kind === 'openapi'\n ? item.apiPath.replace(/^\\/api\\//, '')\n : labelForDoc(item.file)}\n </span>\n </a>\n </li>\n );\n })}\n </ul>\n );\n}\n\n/**\n * Render the documentation sidebar.\n *\n * @deprecated Use fumadocs' `DocsLayout` with `loader({ icon: docsIcon })`,\n * which both shipped sites use. This component predates that wiring: it renders\n * plain anchors with no active state, no collapsible groups, and no search, and\n * its default `resolveHref` assumes a routing shape (`/reference`, and\n * `introduction` at the root) that no site now uses. Pass your own\n * {@link ResolveHref} if you keep it. It stays exported, and behaves exactly as\n * before, until the next major version.\n *\n * @public\n */\nexport function DocsSidebar({\n nav,\n resolveHref = defaultResolveHref,\n}: {\n nav: Navigation;\n resolveHref?: ResolveHref;\n}) {\n return (\n <nav style={{ padding: '20px 16px' }}>\n {nav.map((tab, index) => (\n <div key={`t-${String(index)}`} style={{ marginBottom: 18 }}>\n <div\n style={{\n fontSize: 13,\n fontWeight: 800,\n color: 'var(--color-fd-foreground)',\n marginBottom: 4,\n }}\n >\n {tab.title}\n </div>\n <Items items={tab.items} depth={0} resolveHref={resolveHref} />\n </div>\n ))}\n </nav>\n );\n}\n"]}
1
+ {"version":3,"sources":["../src/ui/accordion.tsx","../src/ui/api-layout.tsx","../src/ui/api-sidebar.tsx","../src/ui/auth-screen.tsx","../src/ui/callout.tsx","../src/ui/card.tsx","../src/ui/docs-icons.tsx","../src/ui/nav-links.ts","../src/ui/error-screen.tsx","../src/ui/steps.tsx","../src/ui/mdx.tsx","../src/ui/sidebar.tsx"],"names":["jsxs","jsx","Fragment"],"mappings":";;;;AAgBO,SAAS,SAAA,CAAU,EAAE,KAAA,EAAO,QAAA,EAAS,EAA4C;AACtF,EAAA,uBACE,IAAA;AAAA,IAAC,SAAA;AAAA,IAAA;AAAA,MACC,KAAA,EAAO;AAAA,QACL,MAAA,EAAQ,kCAAA;AAAA,QACR,YAAA,EAAc,CAAA;AAAA,QACd,OAAA,EAAS,WAAA;AAAA,QACT,MAAA,EAAQ;AAAA,OACV;AAAA,MAEA,QAAA,EAAA;AAAA,wBAAA,GAAA,CAAC,SAAA,EAAA,EAAQ,OAAO,EAAE,MAAA,EAAQ,WAAW,UAAA,EAAY,GAAA,IAAQ,QAAA,EAAA,KAAA,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EJ","file":"ui.js","sourcesContent":["import type { ReactNode } from 'react';\n\n/**\n * Accordion components — the Mintlify `<Accordion>` and `<AccordionGroup>`.\n * Built on the native `<details>` element, so they are interactive with zero\n * client JavaScript and render in a Server Component. The hairline uses the\n * framework's border token, so it follows the site's palette and the dark theme.\n *\n * @packageDocumentation\n */\n\n/**\n * A single collapsible section.\n *\n * @public\n */\nexport function Accordion({ title, children }: { title: string; children?: ReactNode }) {\n return (\n <details\n style={{\n border: '1px solid var(--color-fd-border)',\n borderRadius: 8,\n padding: '10px 14px',\n margin: '8px 0',\n }}\n >\n <summary style={{ cursor: 'pointer', fontWeight: 600 }}>{title}</summary>\n <div style={{ marginTop: 8 }}>{children}</div>\n </details>\n );\n}\n\n/**\n * A group of accordions.\n *\n * @public\n */\nexport function AccordionGroup({ children }: { children?: ReactNode }) {\n return <div style={{ margin: '16px 0' }}>{children}</div>;\n}\n","import { cloneElement, isValidElement, type ReactElement, type ReactNode } from 'react';\n\n/**\n * The Mintlify-style API operation layout: one two-column row for the whole\n * operation, so the code rail starts level with the endpoint title. Pass it to\n * fumadocs-openapi — the slots type is structural, so this module needs no\n * fumadocs dependency and the site keeps ownership of that package.\n *\n * @example\n * ```tsx\n * export const APIPage = createOpenAPIPage({\n * content: { renderOperationLayout: apiOperationLayout },\n * });\n * ```\n *\n * @packageDocumentation\n */\n\n/**\n * The slots fumadocs-openapi hands to `renderOperationLayout`.\n *\n * @public\n */\nexport interface ApiOperationSlots {\n readonly header: ReactNode;\n readonly description: ReactNode;\n readonly apiPlayground: ReactNode;\n readonly authSchemes: ReactNode;\n readonly parameters: ReactNode;\n readonly body: ReactNode;\n readonly responses: ReactNode;\n readonly callbacks: ReactNode;\n readonly apiExample: ReactNode;\n}\n\n/**\n * Render an API operation as title → description → playground → request details\n * on the left, with the code/response rail as the right column. Pair with\n * `@blaaiz/docs-core/styles/api-reference.css`, which anchors the rail to the\n * viewport.\n *\n * @param slots - the operation slots from fumadocs-openapi\n * @returns the two-column operation layout\n * @public\n */\nexport function apiOperationLayout(slots: ApiOperationSlots): ReactNode {\n // When the playground is our ApiTryIt (it declares `acceptsExample`), hand it\n // the code/response column so its modal can show form and sample side by side.\n let playground = slots.apiPlayground;\n if (\n isValidElement(playground) &&\n (playground.type as { acceptsExample?: boolean }).acceptsExample === true\n ) {\n playground = cloneElement(playground as ReactElement<{ example?: ReactNode }>, {\n example: slots.apiExample,\n });\n }\n\n return (\n <div className=\"flex flex-col gap-x-6 gap-y-4 @4xl:flex-row @4xl:items-start\">\n <div className=\"min-w-0 flex-1\">\n {slots.header}\n {slots.description}\n {playground}\n {slots.authSchemes}\n {slots.parameters}\n {slots.body}\n {slots.responses}\n {slots.callbacks}\n </div>\n <div className=\"@4xl:sticky @4xl:top-[calc(var(--fd-docs-row-1,2rem)+1rem)] @4xl:w-[400px]\">\n {slots.apiExample}\n </div>\n </div>\n );\n}\n","import type { ReactNode } from 'react';\n\n/**\n * Sidebar helpers for the API reference: a coloured HTTP-method badge and a\n * page-tree transformer that prefixes each API page's sidebar entry with it —\n * the Mintlify look (POST · GET · … next to the endpoint name). Server-\n * compatible; styled by `styles/api-reference.css`.\n *\n * @packageDocumentation\n */\n\n/**\n * A coloured HTTP-method pill (GET, POST, …).\n *\n * @param props - the HTTP method\n * @public\n */\nexport function MethodBadge({ method }: { method: string }) {\n const upper = method.toUpperCase();\n return (\n <span className=\"api-method-badge\" data-method={method.toLowerCase()}>\n {upper}\n </span>\n );\n}\n\n/**\n * The minimal page-tree item this transformer touches. Structural, so the\n * framework needs no fumadocs types; a site passes the result straight into\n * `loader({ pageTree: { transformers } })`.\n *\n * @public\n */\nexport interface SidebarItem {\n readonly type?: string;\n readonly url?: string;\n name?: ReactNode;\n}\n\n/**\n * A page-tree transformer with a `file` hook, generic over the tree's own item\n * type so it slots into fumadocs' `loader({ pageTree: { transformers } })`\n * without a cast: `file` returns exactly the item type it was given.\n *\n * @public\n */\nexport interface SidebarBadgeTransformer {\n file<T extends SidebarItem>(node: T): T;\n}\n\n/**\n * A page-tree transformer that prefixes every API page's sidebar entry with its\n * HTTP-method badge, matching endpoint URLs against the `methods` map the\n * generator emits (`content/api-methods.json`).\n *\n * @example\n * ```ts\n * import methods from '@/content/api-methods.json';\n * loader({ pageTree: { transformers: [apiMethodBadges(methods)] } });\n * ```\n *\n * @param methods - map of page URL to HTTP method\n * @returns a transformer with a `file` hook\n * @public\n */\nexport function apiMethodBadges(\n methods: Readonly<Record<string, string>>,\n): SidebarBadgeTransformer {\n return {\n file<T extends SidebarItem>(node: T): T {\n const method = node.url ? methods[node.url] : undefined;\n if (!method) {\n return node;\n }\n // Only `name` is rewritten; every other field is carried through, so the\n // item keeps its original type.\n return {\n ...node,\n name: (\n <span className=\"api-nav-item\">\n <MethodBadge method={method} />\n <span className=\"api-nav-text\">{node.name}</span>\n </span>\n ),\n };\n },\n };\n}\n","/**\n * The sign-in screen for a workspace-gated docs site.\n *\n * A site renders one element — `<AuthScreen config={config} .../>` — and gets\n * the whole gate: brand, the allowed-domain note, the providers its config\n * declares (email, shared secret, Google), and an inline error banner. The\n * shared-secret provider is a two-step flow — email, then secret — rendered by\n * the `step` prop. The framework owns the layout and copy; the site owns only\n * its config. Server-rendered: every form is a native POST, no client JS.\n *\n * @packageDocumentation\n */\n\nimport type { ReactNode } from 'react';\n\nimport type { DocsConfig } from '../core/config.js';\n\nimport { strokeIcon } from './icons.js';\n\n/**\n * Map a sign-in error code (carried on `?error=` after a failed attempt) to a\n * human sentence. Unknown codes get a safe generic message.\n *\n * @param code - the error code, or undefined\n * @param domains - the allowed email domains, for the domain-mismatch message\n * @returns the message to show, or null when there is no error\n * @public\n */\nexport function authErrorMessage(\n code: string | undefined,\n domains: readonly string[],\n): string | null {\n if (!code) {\n return null;\n }\n const list = domains.join(', ');\n switch (code) {\n case 'forbidden':\n case 'domain':\n return list\n ? `That email isn't on an allowed domain. Sign in with your ${list} account.`\n : `That account isn't allowed to access these docs.`;\n case 'oauth':\n case 'state':\n return `Google sign-in didn't complete. Please try again.`;\n case 'badsecret':\n return `That secret is incorrect. Please try again.`;\n case 'expired':\n return `Your session expired. Sign in again to continue.`;\n case 'config':\n return `Sign-in isn't configured for this site. Contact the site owner.`;\n default:\n return `Something went wrong signing in. Please try again.`;\n }\n}\n\n/**\n * Props for {@link AuthScreen}.\n *\n * @public\n */\nexport interface AuthScreenProps {\n /** The site configuration; drives brand, providers, and allowed domains. */\n readonly config: DocsConfig;\n /** The path to return to after sign-in (from the gate's `?from=`). */\n readonly from?: string;\n /** A sign-in error code to surface inline (from `?error=`). */\n readonly error?: string;\n /**\n * Which step of the shared-secret flow to render. `'email'` (default) shows\n * the email field; `'secret'` shows the secret field for the already-validated\n * {@link AuthScreenProps.email}. Ignored unless the secret provider is enabled.\n */\n readonly step?: 'email' | 'secret';\n /** The domain-checked email to show on the secret step (from the site's cookie). */\n readonly email?: string;\n /**\n * Whether to offer the shared-secret flow. Defaults to whether config declares\n * the secret provider; pass `false` when its env secret is absent. When on, it\n * supersedes plain email sign-in.\n */\n readonly secretEnabled?: boolean;\n /**\n * Whether to offer the Google button. Defaults to whether config declares the\n * Google provider; pass `false` to hide it when its env vars are absent.\n */\n readonly googleEnabled?: boolean;\n /** The email sign-in endpoint. Default `/api/auth/email`. */\n readonly emailAction?: string;\n /** The shared-secret sign-in endpoint (both steps post here). Default `/api/auth/secret`. */\n readonly secretAction?: string;\n /** The Google sign-in start path. Default `/api/auth/google/start`. */\n readonly googleStartPath?: string;\n /** The sign-in page path, for the \"use a different email\" link. Default `/signin`. */\n readonly signInPath?: string;\n}\n\nfunction mailIcon(): ReactNode {\n return strokeIcon('mail');\n}\n\nfunction lockIcon(): ReactNode {\n return strokeIcon('lock');\n}\n\nfunction alertIcon(): ReactNode {\n return strokeIcon('info');\n}\n\nfunction keyIcon(): ReactNode {\n return strokeIcon('key');\n}\n\nfunction userIcon(): ReactNode {\n return strokeIcon('user');\n}\n\n/** Google's multicolour \"G\" mark. */\nfunction googleIcon(): ReactNode {\n return (\n <svg viewBox=\"0 0 24 24\" aria-hidden=\"true\">\n <path\n fill=\"#4285F4\"\n d=\"M23.52 12.27c0-.82-.07-1.6-.2-2.36H12v4.46h6.47a5.53 5.53 0 0 1-2.4 3.63v3.02h3.88c2.27-2.09 3.57-5.17 3.57-8.75z\"\n />\n <path\n fill=\"#34A853\"\n d=\"M12 24c3.24 0 5.96-1.08 7.95-2.91l-3.88-3.02c-1.08.72-2.45 1.16-4.07 1.16-3.13 0-5.78-2.11-6.73-4.96H1.29v3.12A12 12 0 0 0 12 24z\"\n />\n <path\n fill=\"#FBBC05\"\n d=\"M5.27 14.27a7.2 7.2 0 0 1 0-4.54V6.61H1.29a12 12 0 0 0 0 10.78l3.98-3.12z\"\n />\n <path\n fill=\"#EA4335\"\n d=\"M12 4.75c1.77 0 3.35.61 4.6 1.8l3.44-3.44A11.5 11.5 0 0 0 12 0 12 12 0 0 0 1.29 6.61l3.98 3.12C6.22 6.86 8.87 4.75 12 4.75z\"\n />\n </svg>\n );\n}\n\n/**\n * Render the sign-in screen.\n *\n * @param props - see {@link AuthScreenProps}\n * @public\n */\nexport function AuthScreen(props: AuthScreenProps): ReactNode {\n const { config, from, error } = props;\n const auth = config.auth;\n const workspace = auth === 'public' ? null : auth;\n const domains = workspace?.allowedDomains ?? [];\n const target = from ?? '/';\n const emailAction = props.emailAction ?? '/api/auth/email';\n const secretAction = props.secretAction ?? '/api/auth/secret';\n const googleStartPath = props.googleStartPath ?? '/api/auth/google/start';\n const signInPath = props.signInPath ?? '/signin';\n\n const secretEnabled = props.secretEnabled ?? Boolean(workspace?.providers.secret);\n const emailProvider = workspace?.providers.email ?? false;\n // The secret flow supersedes plain email sign-in: offering email-only too\n // would let a reader skip the secret.\n const hasEmailFlow = secretEnabled || emailProvider;\n const showGoogle = props.googleEnabled ?? Boolean(workspace?.providers.google);\n const message = authErrorMessage(error, domains);\n const logo = config.theme.logo;\n\n // The secret step: only when the flow is enabled and we hold a validated email.\n const onSecretStep = props.step === 'secret' && secretEnabled && Boolean(props.email);\n\n const brand = (\n <div className=\"auth-brand\">\n {logo ? (\n <>\n <img className=\"auth-logo-light\" src={logo.light} alt={config.theme.name} />\n <img className=\"auth-logo-dark\" src={logo.dark} alt={config.theme.name} />\n </>\n ) : (\n <>\n <span className=\"auth-dot\" aria-hidden=\"true\" />\n {config.theme.name}\n </>\n )}\n </div>\n );\n\n const errorBanner = message ? (\n <div className=\"auth-error\" role=\"alert\">\n {alertIcon()}\n <span>{message}</span>\n </div>\n ) : null;\n\n if (onSecretStep) {\n return (\n <div className=\"auth-screen\">\n <div className=\"auth-ambient\" aria-hidden=\"true\" />\n <main className=\"auth-card\">\n {brand}\n <h1 className=\"auth-title\">Enter access secret</h1>\n <p className=\"auth-sub\">One more step — enter the shared secret to continue.</p>\n\n <div className=\"auth-identity\">\n {userIcon()}\n <span className=\"auth-identity-email\">{props.email}</span>\n <a className=\"auth-change\" href={signInPath}>\n Change\n </a>\n </div>\n\n {errorBanner}\n\n <form className=\"auth-form\" action={secretAction} method=\"post\">\n <input type=\"hidden\" name=\"from\" value={target} />\n <label className=\"auth-label\" htmlFor=\"auth-secret\">\n Access secret\n </label>\n <div className=\"auth-field\">\n {keyIcon()}\n <input\n id=\"auth-secret\"\n name=\"secret\"\n type=\"password\"\n required\n autoFocus\n autoComplete=\"off\"\n placeholder=\"Enter the access secret\"\n className=\"auth-input\"\n />\n </div>\n <button type=\"submit\" className=\"auth-submit\">\n Sign in\n </button>\n </form>\n\n <p className=\"auth-foot\">\n {lockIcon()}\n Access is limited to your workspace.\n </p>\n </main>\n </div>\n );\n }\n\n return (\n <div className=\"auth-screen\">\n <div className=\"auth-ambient\" aria-hidden=\"true\" />\n <main className=\"auth-card\">\n {brand}\n <h1 className=\"auth-title\">Sign in</h1>\n <p className=\"auth-sub\">\n {domains.length ? (\n <>\n These docs are restricted to <b>{domains.join(', ')}</b> accounts.\n </>\n ) : (\n 'These docs are restricted to your workspace.'\n )}\n </p>\n\n {errorBanner}\n\n {hasEmailFlow ? (\n <form\n className=\"auth-form\"\n action={secretEnabled ? secretAction : emailAction}\n method=\"post\"\n >\n <input type=\"hidden\" name=\"from\" value={target} />\n <label className=\"auth-label\" htmlFor=\"auth-email\">\n Work email\n </label>\n <div className=\"auth-field\">\n {mailIcon()}\n <input\n id=\"auth-email\"\n name=\"email\"\n type=\"email\"\n required\n autoComplete=\"email\"\n autoFocus\n placeholder={`you@${domains[0] ?? 'company.com'}`}\n className=\"auth-input\"\n />\n </div>\n <button type=\"submit\" className=\"auth-submit\">\n {secretEnabled ? 'Continue' : 'Continue with email'}\n </button>\n </form>\n ) : null}\n\n {hasEmailFlow && showGoogle ? <div className=\"auth-divider\">or</div> : null}\n\n {showGoogle ? (\n <a className=\"auth-google\" href={`${googleStartPath}?from=${encodeURIComponent(target)}`}>\n {googleIcon()}\n Continue with Google\n </a>\n ) : null}\n\n <p className=\"auth-foot\">\n {lockIcon()}\n Access is limited to your workspace.\n </p>\n </main>\n </div>\n );\n}\n","import type { ReactNode } from 'react';\n\nimport { type GlyphName, strokeIcon } from './icons.js';\n\n/**\n * Callout components — the Mintlify `<Note>`, `<Warning>`, `<Info>`, and `<Tip>`\n * blocks. Server-compatible: no client state, so they render in a React Server\n * Component without a `'use client'` boundary.\n *\n * The box is styled by the `.cl` classes in `@blaaiz/docs-core/styles/docs.css`,\n * which a site already imports. That is what makes a callout follow the dark\n * theme: the class set carries a light and a dark palette per tone, where the\n * inline colours these components used before could only ever be light.\n *\n * @packageDocumentation\n */\n\ntype Tone = 'note' | 'warning' | 'info' | 'tip';\n\n/** The glyph each tone shows: a circled `i`, a bulb for a tip, a triangle to warn. */\nconst TONE_GLYPHS: Record<Tone, GlyphName> = {\n note: 'info',\n info: 'info',\n tip: 'bulb',\n warning: 'alert',\n};\n\n/**\n * A tinted callout box with the tone's icon.\n *\n * @public\n */\nexport function Callout({ tone = 'note', children }: { tone?: Tone; children?: ReactNode }) {\n return (\n <div className={`cl cl-${tone}`}>\n <span className=\"cl-icon\">{strokeIcon(TONE_GLYPHS[tone], { size: 18, rounded: true })}</span>\n <div className=\"cl-body\">{children}</div>\n </div>\n );\n}\n\n/** Mintlify `<Note>`. @public */\nexport function Note({ children }: { children?: ReactNode }) {\n return <Callout tone=\"note\">{children}</Callout>;\n}\n\n/** Mintlify `<Warning>`. @public */\nexport function Warning({ children }: { children?: ReactNode }) {\n return <Callout tone=\"warning\">{children}</Callout>;\n}\n\n/** Mintlify `<Info>`. @public */\nexport function Info({ children }: { children?: ReactNode }) {\n return <Callout tone=\"info\">{children}</Callout>;\n}\n\n/** Mintlify `<Tip>`. @public */\nexport function Tip({ children }: { children?: ReactNode }) {\n return <Callout tone=\"tip\">{children}</Callout>;\n}\n","import type { CSSProperties, ReactNode } from 'react';\n\n/**\n * Card components — the Mintlify `<Card>` and `<CardGroup>`. Server-compatible.\n *\n * Colours come from the framework's `--color-fd-*` theme variables, so a card\n * follows the site's palette and the dark theme. Nothing here is a fixed hue.\n *\n * @packageDocumentation\n */\n\n/**\n * A card. When `href` is set it renders as a link.\n *\n * @public\n */\nexport function Card({\n title,\n href,\n children,\n}: {\n title?: string;\n href?: string;\n children?: ReactNode;\n}) {\n const style: CSSProperties = {\n display: 'block',\n border: '1px solid var(--color-fd-border)',\n borderRadius: 12,\n padding: '16px 18px',\n textDecoration: 'none',\n color: 'inherit',\n background: 'var(--color-fd-card)',\n };\n const body = (\n <>\n {title !== undefined && (\n <div style={{ fontWeight: 700, fontSize: 15, marginBottom: 4 }}>{title}</div>\n )}\n <div style={{ color: 'var(--color-fd-muted-foreground)', fontSize: 14 }}>{children}</div>\n </>\n );\n if (href !== undefined) {\n return (\n <a href={href} style={style}>\n {body}\n </a>\n );\n }\n return <div style={style}>{body}</div>;\n}\n\n/**\n * A responsive grid of cards. `cols` sets the column count (default 2).\n *\n * @public\n */\nexport function CardGroup({ cols = 2, children }: { cols?: number; children?: ReactNode }) {\n const style: CSSProperties = {\n display: 'grid',\n gridTemplateColumns: `repeat(${String(cols)}, minmax(0, 1fr))`,\n gap: 12,\n margin: '16px 0',\n };\n return <div style={style}>{children}</div>;\n}\n","import type { ReactNode } from 'react';\n\n/**\n * Inline-SVG icon resolver for navigation icons named in `docs.json` (Mintlify\n * uses icon names like `house`, `book`, `code`). Zero dependency: a curated set\n * of common docs-nav icons plus a graceful no-icon fallback. Pass it to\n * `loader({ icon: docsIcon })`.\n *\n * @packageDocumentation\n */\n\nimport { type GlyphName, strokeIcon } from './icons.js';\n\n/** The glyphs a docs navigation reaches for, keyed by the names authors write. */\nconst ICONS: Record<string, GlyphName> = {\n house: 'house',\n book: 'book',\n code: 'code',\n rocket: 'rocket',\n terminal: 'terminal',\n wallet: 'wallet',\n key: 'key',\n webhook: 'webhook',\n globe: 'globe',\n};\n\n// Aliases point several common spellings at one glyph.\nconst ALIASES: Record<string, string> = {\n home: 'house',\n 'book-open': 'book',\n api: 'code',\n reference: 'code',\n terminal: 'terminal',\n bank: 'wallet',\n 'credit-card': 'wallet',\n auth: 'key',\n lock: 'key',\n world: 'globe',\n};\n\n/**\n * Resolve a `docs.json` icon name to an inline SVG. Unknown names resolve to\n * nothing, so the sidebar simply shows no icon rather than a broken one.\n *\n * @param name - the icon name from `docs.json`, or undefined\n * @returns the icon element, or undefined\n * @public\n */\nexport function docsIcon(name: string | undefined): ReactNode {\n if (!name) {\n return undefined;\n }\n const key = name.toLowerCase();\n const glyph = ICONS[key] ?? ICONS[ALIASES[key] ?? ''];\n // The key matters: fumadocs renders a nav link as the array [icon, text], and\n // an unkeyed element in that array raises React's \"unique key\" warning in the\n // consuming site's console.\n return glyph === undefined\n ? undefined\n : strokeIcon(glyph, { size: 16, rounded: true, key: `docs-icon-${glyph}` });\n}\n","/**\n * Top-navigation links from `nav.json`.\n *\n * Every site renders the same top bar in two layouts — the landing's\n * `HomeLayout` and the docs' `DocsLayout` — and the mapping carries policy\n * that must not drift per site: Home points at the landing and matches it\n * exactly, a link to the docs root matches only the docs root (never\n * everything nested under it), and section links match their subtree. This\n * module owns that policy; a site's layout is one call.\n *\n * @packageDocumentation\n */\n\nimport type { ReactNode } from 'react';\n\nimport { docsIcon } from './docs-icons.js';\n\n/**\n * One entry of `content/nav.json`.\n *\n * @public\n */\nexport interface NavJsonLink {\n readonly text: string;\n readonly url: string;\n readonly icon?: string;\n}\n\n/**\n * A rendered top-navigation link, structurally assignable to a fumadocs\n * `LinkItemType`.\n *\n * @public\n */\nexport interface DocsNavLink {\n readonly text: string;\n readonly url: string;\n readonly icon: ReactNode;\n readonly active: 'url' | 'nested-url';\n /**\n * The path this link is active for. Equal to `url` for Home and the docs\n * root; the section prefix for a section link, so the link stays active on\n * every page of its section — not only under its click target. Plain\n * fumadocs link items cannot express this split; a site component that\n * compares the pathname against `match` can.\n */\n readonly match: string;\n}\n\n/**\n * Options for {@link docsNavLinks}.\n *\n * @public\n */\nexport interface DocsNavLinksOptions {\n /**\n * The Home entry prepended before the `nav.json` links, pointing at the\n * landing. Pass `false` on a site with no landing page.\n */\n readonly home?: NavJsonLink | false;\n /** The docs base URL, whose link matches exactly rather than nested. */\n readonly baseUrl?: string;\n}\n\n/**\n * Map `nav.json` entries to top-navigation links for `HomeLayout` and\n * `DocsLayout`.\n *\n * @param links - the parsed `content/nav.json`\n * @param options - the Home entry and the docs base URL\n * @returns links with icons resolved and active-matching applied\n * @public\n */\nexport function docsNavLinks(\n links: readonly NavJsonLink[],\n options: DocsNavLinksOptions = {},\n): readonly DocsNavLink[] {\n const baseUrl = options.baseUrl ?? '/docs';\n const home = options.home ?? { text: 'Home', url: '/', icon: 'house' };\n return [\n ...(home === false ? [] : [home]),\n ...links.filter((link) => home === false || link.url !== home.url),\n ].map((link) => {\n const exact = link.url === baseUrl || link.url === (home === false ? '' : home.url);\n return {\n text: link.text,\n url: link.url,\n icon: docsIcon(link.icon),\n active: exact ? ('url' as const) : ('nested-url' as const),\n match: exact ? link.url : sectionPrefix(link.url, baseUrl),\n };\n });\n}\n\n/**\n * The section a docs URL belongs to: its first path segment under `baseUrl`.\n * A URL outside `baseUrl` is its own section.\n */\nfunction sectionPrefix(url: string, baseUrl: string): string {\n if (!url.startsWith(`${baseUrl}/`)) {\n return url;\n }\n const segment = url.slice(baseUrl.length + 1).split('/')[0] ?? '';\n return segment === '' ? url : `${baseUrl}/${segment}`;\n}\n\n/**\n * Whether a link is active for the current pathname: exact links match only\n * themselves; section links match their whole section.\n *\n * @public\n */\nexport function isDocsNavLinkActive(link: DocsNavLink, pathname: string): boolean {\n if (link.active === 'url') {\n return pathname === link.match;\n }\n return pathname === link.match || pathname.startsWith(`${link.match}/`);\n}\n","/**\n * A general error screen with per-kind states.\n *\n * One component covers every full-page error a docs site shows — a missing page\n * (404), a forbidden account (403), a runtime failure (500), an offline state —\n * each with its own icon, eyebrow, and default copy. A site picks the `kind`\n * and, for runtime errors, passes a retry action; the framework owns the rest.\n * Server-compatible: the site's `error.tsx` wrapper carries the `'use client'`\n * boundary and hands in the retry button.\n *\n * @packageDocumentation\n */\n\nimport type { ReactNode } from 'react';\n\nimport { type GlyphName, strokeIcon } from './icons.js';\n\n/**\n * The error states the screen renders.\n *\n * @public\n */\nexport type ErrorKind = 'not-found' | 'forbidden' | 'server' | 'offline' | 'unknown';\n\n/**\n * The default eyebrow, title, description, and icon for a {@link ErrorKind}.\n *\n * @public\n */\nexport interface ErrorPreset {\n readonly code: string;\n readonly title: string;\n readonly description: string;\n readonly icon: ReactNode;\n}\n\n/** The screens' icons are drawn a hair lighter than the rest of the UI. */\nfunction icon(name: GlyphName): ReactNode {\n return strokeIcon(name, { strokeWidth: 1.75 });\n}\n\nconst PRESETS: Record<ErrorKind, ErrorPreset> = {\n 'not-found': {\n code: '404',\n title: 'Page not found',\n description: \"The page you're looking for doesn't exist or may have moved.\",\n icon: icon('crossCircle'),\n },\n forbidden: {\n code: '403',\n title: 'Access restricted',\n description: 'Your account is not allowed to view this page. Sign in with an allowed account.',\n icon: icon('lock'),\n },\n server: {\n code: '500',\n title: 'Something went wrong',\n description: 'An unexpected error occurred on our side. Please try again in a moment.',\n icon: icon('alert'),\n },\n offline: {\n code: 'Offline',\n title: \"You're offline\",\n description: 'Check your connection and try again.',\n icon: icon('offline'),\n },\n unknown: {\n code: 'Error',\n title: 'Something went wrong',\n description: 'An unexpected error occurred. Please try again.',\n icon: icon('info'),\n },\n};\n\n/**\n * The default preset for an error kind — its icon, eyebrow, and copy.\n *\n * @param kind - the error state\n * @returns the preset a site can render or override\n * @public\n */\nexport function errorPreset(kind: ErrorKind): ErrorPreset {\n return PRESETS[kind];\n}\n\n/**\n * Props for {@link ErrorScreen}. Everything but `kind` is optional: the kind's\n * preset fills the eyebrow, title, description, and icon unless overridden.\n *\n * @public\n */\nexport interface ErrorScreenProps {\n /** Which error state to render. Default `unknown`. */\n readonly kind?: ErrorKind;\n /** Override the eyebrow code (e.g. a specific status). */\n readonly code?: string;\n /** Override the title. */\n readonly title?: string;\n /** Override the description. */\n readonly description?: string;\n /** When set, render a primary button linking here (e.g. `/docs`). */\n readonly homeHref?: string;\n /** Label for the home button. Default \"Back to docs\". */\n readonly homeLabel?: string;\n /** An extra action rendered beside the home button (e.g. a retry button). */\n readonly action?: ReactNode;\n}\n\nfunction homeIcon(): ReactNode {\n return strokeIcon('house');\n}\n\n/**\n * Render the error screen.\n *\n * @param props - see {@link ErrorScreenProps}\n * @public\n */\nexport function ErrorScreen(props: ErrorScreenProps): ReactNode {\n const kind = props.kind ?? 'unknown';\n const preset = PRESETS[kind];\n const code = props.code ?? preset.code;\n const title = props.title ?? preset.title;\n const description = props.description ?? preset.description;\n\n return (\n <div className=\"error-screen\">\n <div className=\"auth-ambient\" aria-hidden=\"true\" />\n <main className=\"error-card\">\n <div className=\"error-glyph\" data-kind={kind}>\n {preset.icon}\n </div>\n <p className=\"error-code\">{code}</p>\n <h1 className=\"error-title\">{title}</h1>\n <p className=\"error-desc\">{description}</p>\n {props.homeHref || props.action ? (\n <div className=\"error-actions\">\n {props.homeHref ? (\n <a className=\"error-btn error-btn-primary\" href={props.homeHref}>\n {homeIcon()}\n {props.homeLabel ?? 'Back to docs'}\n </a>\n ) : null}\n {props.action}\n </div>\n ) : null}\n </main>\n </div>\n );\n}\n","import type { ReactNode } from 'react';\n\n/**\n * Steps components — the Mintlify `<Steps>` and `<Step>`. Server-compatible.\n *\n * The spine uses the framework's border token, so it follows the site's palette\n * and the dark theme.\n *\n * @packageDocumentation\n */\n\n/**\n * An ordered list of steps.\n *\n * @public\n */\nexport function Steps({ children }: { children?: ReactNode }) {\n return (\n <div\n style={{\n borderLeft: '2px solid var(--color-fd-border)',\n paddingLeft: 20,\n margin: '16px 0',\n display: 'flex',\n flexDirection: 'column',\n gap: 16,\n }}\n >\n {children}\n </div>\n );\n}\n\n/**\n * A single step with an optional title.\n *\n * @public\n */\nexport function Step({ title, children }: { title?: string; children?: ReactNode }) {\n return (\n <div>\n {title !== undefined && (\n <div style={{ fontWeight: 700, fontSize: 15, marginBottom: 4 }}>{title}</div>\n )}\n <div>{children}</div>\n </div>\n );\n}\n","import { Accordion, AccordionGroup } from './accordion.js';\nimport { Info, Note, Tip, Warning } from './callout.js';\nimport { Card, CardGroup } from './card.js';\nimport { Step, Steps } from './steps.js';\n\n/**\n * The Mintlify-compatible MDX component map.\n *\n * Pass this to an MDX renderer (for example `next-mdx-remote`'s `compileMDX`)\n * so real Mintlify guides render unchanged. A site no longer needs to shim\n * these itself.\n *\n * @public\n */\nexport const mdxComponents = {\n Note,\n Warning,\n Info,\n Tip,\n Card,\n CardGroup,\n Accordion,\n AccordionGroup,\n Steps,\n Step,\n};\n","import type { CSSProperties } from 'react';\n\nimport type { NavItem, NavPage, Navigation } from '../core/index.js';\n\n/**\n * The navigation sidebar. Renders a {@link Navigation} tree (produced by\n * `parseNavigation`) as tabs, groups, and page links. Framework-agnostic: it\n * emits plain anchors and takes an optional `resolveHref` so a site controls\n * its own routing. Server-compatible.\n *\n * @packageDocumentation\n */\n\n/**\n * Map a navigation page to a URL. Override to control routing — the default\n * assumes one specific site shape, which is why {@link DocsSidebar} is\n * deprecated.\n *\n * @public\n */\nexport type ResolveHref = (page: NavPage) => string;\n\nconst defaultResolveHref: ResolveHref = (page) => {\n if (page.kind === 'openapi') {\n return '/reference';\n }\n if (page.file === 'introduction') {\n return '/';\n }\n return `/${page.file}`;\n};\n\n/**\n * The method palette. The three status hues are the ones\n * `styles/api-reference.css` uses for its badges, so a method reads the same\n * colour everywhere; `POST` follows the site's own accent.\n */\nconst METHOD_COLORS: Record<string, string> = {\n GET: '#16a34a',\n POST: 'var(--color-fd-primary)',\n PUT: '#d97706',\n PATCH: '#d97706',\n DELETE: '#dc2626',\n};\n\nfunction labelForDoc(file: string): string {\n const last = file.split('/').pop() ?? file;\n return last.replace(/-/g, ' ').replace(/\\b\\w/g, (c) => c.toUpperCase());\n}\n\nfunction Items({\n items,\n depth,\n resolveHref,\n}: {\n items: readonly NavItem[];\n depth: number;\n resolveHref: ResolveHref;\n}) {\n const list: CSSProperties = { listStyle: 'none', margin: 0, paddingLeft: depth === 0 ? 0 : 12 };\n const groupLabel: CSSProperties = {\n fontSize: 11,\n fontWeight: 700,\n textTransform: 'uppercase',\n letterSpacing: '0.04em',\n color: 'var(--color-fd-muted-foreground)',\n margin: '6px 0',\n };\n const link: CSSProperties = {\n display: 'flex',\n alignItems: 'center',\n gap: 8,\n padding: '5px 8px',\n borderRadius: 6,\n color: 'var(--color-fd-foreground)',\n textDecoration: 'none',\n fontSize: 14,\n };\n return (\n <ul style={list}>\n {items.map((item, index) => {\n if (item.kind === 'group') {\n return (\n <li key={`g-${String(index)}`} style={{ marginTop: 10 }}>\n <div style={groupLabel}>{item.title}</div>\n <Items items={item.items} depth={depth + 1} resolveHref={resolveHref} />\n </li>\n );\n }\n return (\n <li key={`p-${String(index)}`}>\n <a href={resolveHref(item)} style={link}>\n {item.kind === 'openapi' && (\n <span\n style={{\n fontSize: 9,\n fontWeight: 700,\n color: METHOD_COLORS[item.method] ?? 'var(--color-fd-muted-foreground)',\n minWidth: 34,\n }}\n >\n {item.method}\n </span>\n )}\n <span>\n {item.kind === 'openapi'\n ? item.apiPath.replace(/^\\/api\\//, '')\n : labelForDoc(item.file)}\n </span>\n </a>\n </li>\n );\n })}\n </ul>\n );\n}\n\n/**\n * Render the documentation sidebar.\n *\n * @deprecated Use fumadocs' `DocsLayout` with `loader({ icon: docsIcon })`,\n * which both shipped sites use. This component predates that wiring: it renders\n * plain anchors with no active state, no collapsible groups, and no search, and\n * its default `resolveHref` assumes a routing shape (`/reference`, and\n * `introduction` at the root) that no site now uses. Pass your own\n * {@link ResolveHref} if you keep it. It stays exported, and behaves exactly as\n * before, until the next major version.\n *\n * @public\n */\nexport function DocsSidebar({\n nav,\n resolveHref = defaultResolveHref,\n}: {\n nav: Navigation;\n resolveHref?: ResolveHref;\n}) {\n return (\n <nav style={{ padding: '20px 16px' }}>\n {nav.map((tab, index) => (\n <div key={`t-${String(index)}`} style={{ marginBottom: 18 }}>\n <div\n style={{\n fontSize: 13,\n fontWeight: 800,\n color: 'var(--color-fd-foreground)',\n marginBottom: 4,\n }}\n >\n {tab.title}\n </div>\n <Items items={tab.items} depth={0} resolveHref={resolveHref} />\n </div>\n ))}\n </nav>\n );\n}\n"]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@blaaiz/docs-core",
3
- "version": "0.1.0",
3
+ "version": "0.2.0",
4
4
  "description": "Neutral, self-hostable documentation framework core — navigation parsing, OpenAPI merging, MDX doc components, and a hardened try-it proxy. Config and content live in each consuming site.",
5
5
  "keywords": [
6
6
  "documentation",
@@ -23,10 +23,11 @@ owns the logic; this repository owns config and content. Rules that always apply
23
23
  upstream origins the try-it playground may reach. Add an origin only when the
24
24
  site really must call it.
25
25
  - **Verify before you finish**: run the project's `typecheck` and `build`, and
26
- check the affected pages at `/docs` in the browser.
26
+ check the affected pages in the browser — the docs under `/docs`, and the
27
+ landing at `/` when the site has one.
27
28
 
28
29
  The full skill — the complete config schema, the `docs.json` shape, task recipes,
29
- and every error the framework raises with its fix — is installed for both agents:
30
+ and the most common framework errors with their fixes — is installed for both agents:
30
31
 
31
32
  - Claude Code: `.claude/skills/docs-core/SKILL.md`
32
33
  - Codex: `.agents/skills/docs-core/SKILL.md`
package/skills/SKILL.md CHANGED
@@ -42,8 +42,9 @@ its `package.json` has a `predev` / `prebuild` script calling
42
42
 
43
43
  ## docs.config.ts
44
44
 
45
- One call to `defineDocsConfig`. It returns its argument unchanged; it exists for
46
- type-checking and completion.
45
+ One call to `defineDocsConfig`. It validates the whole config and throws
46
+ `DocsConfigError` naming the exact field on a bad value; on success it returns
47
+ the config unchanged.
47
48
 
48
49
  ```ts
49
50
  import { defineDocsConfig } from '@blaaiz/docs-core';
@@ -252,6 +253,52 @@ An operation that exists in a spec but is not declared in `docs.json` gets no
252
253
  page. The navigation decides what is published. The API folder is deleted and
253
254
  rebuilt on every run, so a removed endpoint leaves no stale page.
254
255
 
256
+ ### Add, change, or remove the landing page
257
+
258
+ The site root (`app/page.tsx`) has two valid shapes, and switching between
259
+ them is a one-file change:
260
+
261
+ - **A landing page** — render the hero inside `HomeLayout` from
262
+ `fumadocs-ui/layouts/home`: the same top bar as the docs (logo, links,
263
+ search, theme toggle) with no sidebar. Hero content is plain elements
264
+ carrying the `home-*` classes from `@blaaiz/docs-core/styles/home.css`.
265
+ Clicking a link enters the sidebar shell under `/docs`. Sites scaffolded by
266
+ `create-docs-core` ship this shape.
267
+ - **No landing** — the file is a three-line `redirect('/docs')` and readers
268
+ land directly in the docs.
269
+
270
+ Do not put the landing inside `content/docs/` — a page there always renders
271
+ in the sidebar shell. For a wide page _inside_ the docs (sidebar kept, no
272
+ title row, no table of contents), set `full: true` in that page's
273
+ frontmatter instead. Mintlify's `mode: custom` frontmatter is not read by
274
+ this stack; `HomeLayout` at the root is its equivalent.
275
+
276
+ ### The top-navigation links
277
+
278
+ Both layouts build their links the same way — never map `nav.json` by hand
279
+ in a layout:
280
+
281
+ ```tsx
282
+ links={docsNavLinks(navLinks).map((link) => ({
283
+ type: 'custom' as const,
284
+ children: <TopNavLink key={link.url} link={link} />,
285
+ }))}
286
+ ```
287
+
288
+ `docsNavLinks` (from `@blaaiz/docs-core/ui`) owns the policy: it prepends
289
+ Home pointing at the landing (`home: false` on a site without one, or a
290
+ custom entry to change its text or drop its icon), resolves icons (an entry
291
+ without `icon` renders text-only), and computes each link's `match` path —
292
+ exact for Home and the docs root, the section prefix for section links, so a
293
+ section stays lit on every page of its section. `TopNavLink` is a small
294
+ client component the site owns (like `components/logo.tsx`): it calls
295
+ `isDocsNavLinkActive(link, usePathname())` and renders an anchor with the
296
+ `topnav-link` class from `styles/docs.css`.
297
+
298
+ One name means one page: Home is always the landing. Give the docs root its
299
+ own tab in `docs.json` under a different name (Overview, Get started) rather
300
+ than a second Home, so no page is reachable only by typing its URL.
301
+
255
302
  ### Change theme colours
256
303
 
257
304
  Edit `theme.colors` and `theme.darkColors` in `docs.config.ts`. Nothing else:
@@ -296,7 +343,15 @@ background.
296
343
  ```
297
344
 
298
345
  `AskAi` accepts `endpoint`, `suggestions`, `label`, and `placeholder`, and all
299
- four have defaults.
346
+ four have defaults. Write suggestions the corpus can actually answer — they
347
+ are the first thing a reader clicks.
348
+
349
+ On a site with an API reference, build the corpus with the merged OpenAPI
350
+ document so endpoints carry their fields: in `lib/ask-ai.ts`, pass
351
+ `openApiDocuments: { blaaiz: await getMergedSpec() }` to `mdxToMarkdown` (the
352
+ key must match the `document="…"` name in the generated pages). Retrieval
353
+ reads the last three user turns, so follow-ups keep their topic; answers
354
+ render Markdown tables.
300
355
 
301
356
  ### Enable copy page
302
357
 
@@ -305,6 +360,38 @@ four have defaults.
305
360
  component, guarded by `config.features?.copyPage`.
306
361
  3. Serve the Markdown: `createMarkdownRoute({ read })` in
307
362
  `app/md/[[...slug]]/route.ts`, where `read` returns a page's raw MDX.
363
+ 4. On a site with an API reference, also pass `loadOpenApiDocuments` — an async
364
+ loader returning the merged OpenAPI documents by name (usually
365
+ `{ blaaiz: await getMergedSpec() }`, matching the `document="…"` the
366
+ generated pages reference). Without it, an API page's Markdown is only its
367
+ title and `METHOD /path`; with it, parameters, body fields, enums, and
368
+ responses are rendered in. The same `openApiDocuments` option exists on
369
+ `mdxToMarkdown` and belongs in the Ask AI corpus builder for the same
370
+ reason (see the Enable Ask AI recipe).
371
+
372
+ ### Wire search
373
+
374
+ Fumadocs search is one route file — `app/api/search/route.ts` re-exporting
375
+ `createFromSource(source)` from `fumadocs-core/search/server`; the dialog comes
376
+ from `RootProvider` and needs nothing else. For a custom surface (a command
377
+ palette, a static index), the framework exports `buildSearchIndex` and
378
+ `searchIndex` from `@blaaiz/docs-core`: pure functions, BM25 scoring with a
379
+ light stemmer, safe to ship to the browser as JSON. Do not reimplement scoring.
380
+
381
+ ### Wire SEO
382
+
383
+ Three framework builders read `docs.config.ts`; each mounts as one thin file:
384
+
385
+ 1. `buildMetadata(config)` exported as `metadata` from `app/layout.tsx`, and
386
+ `buildMetadata(config, { title, description, path })` from the page's
387
+ `generateMetadata` — without the per-page call every page shares one title.
388
+ 2. `buildRobots(config)` in `app/robots.ts` — `seo.noindex: true` disallows
389
+ crawling entirely; otherwise `/signin` and `/api/` are excluded.
390
+ 3. `buildSitemap(entries, config)` in `app/sitemap.ts`, with entries from
391
+ `source.getPages()`.
392
+
393
+ `theme.favicon` flows through `buildMetadata` — never add a
394
+ `<link rel="icon">` by hand.
308
395
 
309
396
  ### Set up workspace auth with the shared secret
310
397
 
package/styles/ask-ai.css CHANGED
@@ -28,6 +28,10 @@
28
28
  bottom: 1.5rem;
29
29
  z-index: 9990;
30
30
  display: inline-flex;
31
+ /* A floating pill is always content-sized. Without this, some environments
32
+ stretch a fixed-position button past its content and the shortcut chip is
33
+ left floating mid-pill. */
34
+ width: max-content;
31
35
  align-items: center;
32
36
  gap: 9px;
33
37
  height: 42px;
@@ -561,3 +565,31 @@
561
565
  opacity: 0.4;
562
566
  cursor: default;
563
567
  }
568
+
569
+ /* Tables in answers: hairline grid on theme tokens, scrolling inside its own
570
+ wrapper so a wide props table never widens the panel. */
571
+ .askai-table-wrap {
572
+ overflow-x: auto;
573
+ margin: 10px 0;
574
+ }
575
+
576
+ .askai-table {
577
+ border-collapse: collapse;
578
+ width: 100%;
579
+ font-size: 12.5px;
580
+ line-height: 1.5;
581
+ }
582
+
583
+ .askai-table th,
584
+ .askai-table td {
585
+ text-align: left;
586
+ padding: 6px 10px;
587
+ border: 1px solid var(--color-fd-border);
588
+ vertical-align: top;
589
+ }
590
+
591
+ .askai-table th {
592
+ background: var(--color-fd-card);
593
+ font-weight: 600;
594
+ white-space: nowrap;
595
+ }
package/styles/docs.css CHANGED
@@ -245,3 +245,31 @@ body {
245
245
  .page-head > h1 {
246
246
  margin: 0;
247
247
  }
248
+
249
+ /* Top-navigation links rendered by a site's TopNavLink component from
250
+ docsNavLinks data. Matches the fumadocs navbar look on theme tokens. */
251
+ .topnav-link {
252
+ display: inline-flex;
253
+ align-items: center;
254
+ gap: 6px;
255
+ padding: 6px 10px;
256
+ border-radius: 8px;
257
+ color: var(--color-fd-muted-foreground);
258
+ font-size: 14px;
259
+ font-weight: 500;
260
+ text-decoration: none;
261
+ transition: color 0.15s ease;
262
+ }
263
+
264
+ .topnav-link:hover {
265
+ color: var(--color-fd-accent-foreground, var(--color-fd-foreground));
266
+ }
267
+
268
+ .topnav-link[data-active='true'] {
269
+ color: var(--color-fd-primary);
270
+ }
271
+
272
+ .topnav-link svg {
273
+ width: 15px;
274
+ height: 15px;
275
+ }