1.6 KiB
1.6 KiB
CLAUDE.md
This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository.
Commands
pnpm dev # Start dev server with HMR
pnpm build # Production build (outputs to dist/)
pnpm preview # Preview the production build locally
pnpm lint # ESLint (flat config)
pnpm format # Prettier — format all files
Architecture
- Rspress static site (like VitePress but Rust-based toolchain). Documentation site generated from MDX/markdown files.
- Content root:
docs/— all documentation pages live here. Configured asrootinrspress.config.ts. - Navigation:
docs/_nav.jsondefines the top-level nav. Sidebar ordering is controlled by_meta.jsonfiles within subdirectories. - Custom theme:
theme/index.tsxre-exports everything from@rspress/core/theme-originaland importsindex.css. To customize any default theme component, import it and export it back — this is the standard Rspress theme override mechanism. - CSS:
theme/index.cssoverrides CSS custom properties (--rp-c-brand,--rp-c-brand-dark,--rp-c-brand-tint) to set brand colors. - MDX: Content pages use
.mdxwhen embedding React components,.mdfor plain Markdown. MDX type-checking is enabled viatsconfig.jsonmdx.checkMdx. - pnpm is the package manager (see
pnpm-lock.yaml).
Rules
- Do not run
git pushafter committing unless the user explicitly asks for it. CI/CD pipelines are triggered on push, so the user will batch up work and push manually when everything is complete.