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 { Plate, PlateContent, usePlateEditor } from 'platejs/react';import { TocKit } from '@/components/editor/plugins/toc-kit';const initialValue = [ { type: 'h1', children: [{ text: 'Getting Started' }] }, { type: 'p', children: [{ text: 'Install the package and follow the steps below to set up your project.' }] }, { type: 'h2', children: [{ text: 'Installation' }] }, { type: 'p', children: [{ text: 'Run the install command in your terminal.' }] }, { type: 'h2', children: [{ text: 'Configuration' }] }, { type: 'p', children: [{ text: 'Create a config file in the root of your project.' }] }, { type: 'h3', children: [{ text: 'Environment variables' }] }, { type: 'p', children: [{ text: 'Add your keys to the .env file.' }] },];export default function TocDemo() { const editor = usePlateEditor({ plugins: [...TocKit], value: initialValue, }); return ( <div className="w-full max-w-lg"> <Plate editor={editor}> <PlateContent className="min-h-40 outline-none" /> </Plate> </div> );}