This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository.
npm run start # Dev server with hot reload (localhost:3000)
npm run build # Production build (catches broken links)
npm run serve # Serve the production build locally
npm run typecheck # TypeScript type checkingAlways run npm run build after changes to verify no broken links (onBrokenLinks: 'throw' in config).
Docusaurus 3 site for the LocalGPT project. Dark mode only, no locale switching.
docs/*.md— documentation pages, referenced by slug insidebars.tsblog/*.md— blog posts (historical records, don't modify retroactively)sidebars.ts— sidebar structure; doc IDs must match filenames without.md
src/pages/index.tsx— homepage with hero (left/right split: branding + Gen card) and feature gridsrc/pages/index.module.css— homepage styles (hero layout, Gen card, install command)src/components/HomepageFeatures/index.tsx— feature grid below the hero (6 cards in 3-column layout)src/css/custom.css— global styles, Infima overrides, navbar icon SVGs (YouTube, X, GitHub)
docusaurus.config.ts— site config, navbar, footer, Prism languages (bash, toml, rust, json)static/logo/— logos and faviconsfirebase.json— hosting config for deployment
- The primary color is
#25c2a0(teal green), used in Infima vars and component styles. - LocalGPT Gen vision: immersive explorable worlds (geometry + materials + lighting + camera). Don't describe Gen as only "3D scene generation." Don't mention audio/music until those features launch.
- Doc pages that reference LocalGPT CLI commands should link to the corresponding docs page when one exists (e.g.,
[gen](/docs/gen)). - When documenting CLI features, verify against the Rust source at
../localgpt/— the docs have historically lagged behind the code.