Pipeline
- Docsusage, props, keywords
- Demosrc/demo.tsx
- Buildshadcn add → vite
- Capturelight, dark, motion
- IndexBM25 + vectors
Public log. Prompts, raw model errors and costs stay on the admin side.
Log
Demo source
src/demo.tsx · from an earlier run
import { TableOfContents } from "@/components/ui/table-of-contents"const sections = [ { id: "introduction", label: "Introduction" }, { id: "installation", label: "Installation" }, { id: "usage", label: "Usage" },]export default function TableOfContentsDemo() { return ( <div className="flex w-full max-w-lg gap-8"> <TableOfContents sections={sections} className="w-40 shrink-0" /> <div className="grid gap-6"> <section id="introduction" className="grid gap-2"> <p className="font-semibold">Introduction</p> <p className="text-muted-foreground text-sm"> A short overview of what this component does and when to use it. </p> </section> <section id="installation" className="grid gap-2"> <p className="font-semibold">Installation</p> <p className="text-muted-foreground text-sm"> Add the component to your project with the shadcn CLI. </p> </section> <section id="usage" className="grid gap-2"> <p className="font-semibold">Usage</p> <p className="text-muted-foreground text-sm"> Pass your section list and render the anchors it links to. </p> </section> </div> </div> )}