/** * Stripe-inspired two-column docs layout. * * ┌────────────────┬──────────────────────────────────────────┐ * │ │ │ * │ Sidebar │ Main content (max-w-4xl) │ * │ (sticky, │ │ * │ grouped) │ │ * │ │ │ * └────────────────┴──────────────────────────────────────────┘ * * Aesthetic: paper-white surfaces, hairline borders, Hedvig display * headlines, Geist body. Sidebar entries use the same warm-beige hover * + active background as the dashboard sidebar so the docs feel like the * same instrument as the app: not a separate marketing site. */ import Link from 'next/link' import { DOCS_NAV } from '@/lib/docs/nav' import { cn } from '@/lib/utils' interface DocsLayoutProps { /** The pathname of the current page so the sidebar can highlight it. */ currentPath: string children: React.ReactNode } export function DocsLayout({ currentPath, children }: DocsLayoutProps) { return (
accounted / docs
{children}
) } function stripFragment(href: string): string { const hashIdx = href.indexOf('#') return hashIdx === -1 ? href : href.slice(0, hashIdx) }