Skip to content
This repository was archived by the owner on Feb 21, 2026. It is now read-only.

Latest commit

 

History

History
44 lines (30 loc) · 2.05 KB

File metadata and controls

44 lines (30 loc) · 2.05 KB

CLAUDE.md

This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository.

Commands

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 checking

Always run npm run build after changes to verify no broken links (onBrokenLinks: 'throw' in config).

Architecture

Docusaurus 3 site for the LocalGPT project. Dark mode only, no locale switching.

Content

  • docs/*.md — documentation pages, referenced by slug in sidebars.ts
  • blog/*.md — blog posts (historical records, don't modify retroactively)
  • sidebars.ts — sidebar structure; doc IDs must match filenames without .md

Custom Components

  • src/pages/index.tsx — homepage with hero (left/right split: branding + Gen card) and feature grid
  • src/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)

Key Config

  • docusaurus.config.ts — site config, navbar, footer, Prism languages (bash, toml, rust, json)
  • static/logo/ — logos and favicons
  • firebase.json — hosting config for deployment

Conventions

  • 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.