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 { useRef } from "react"import { TableOfContents, useHeadings } from "@/components/ui/toc"export default function TocDemo() { const article = useRef<HTMLElement>(null) const items = useHeadings(article, "h4[id], h5[id]") return ( <div className="grid w-full max-w-xl grid-cols-[1fr_180px] gap-8"> <article ref={article} className="flex flex-col gap-4 text-sm"> <h4 id="introduction" className="text-base font-semibold">Introduction</h4> <p className="text-muted-foreground"> This guide walks through installing and configuring the library in a new project. </p> <h4 id="installation" className="text-base font-semibold">Installation</h4> <h5 id="requirements" className="font-medium">Requirements</h5> <p className="text-muted-foreground">You need Node 18 or later and a package manager.</p> <h5 id="setup" className="font-medium">Setup</h5> <p className="text-muted-foreground">Run the install command and add the config file to your root.</p> <h4 id="usage" className="text-base font-semibold">Usage</h4> <p className="text-muted-foreground">Import the components where you need them and render them in your pages.</p> </article> <aside className="sticky top-4 self-start"> <TableOfContents items={items} /> </aside> </div> )}