Files
claude-code-router/docs
musistudio 1579413f3d fix doc
2026-01-02 22:51:22 +08:00
..
2025-12-27 11:36:29 +08:00
2026-01-02 22:51:22 +08:00
2026-01-02 22:51:22 +08:00
2026-01-01 21:17:41 +08:00
2025-12-27 11:36:29 +08:00
2025-12-27 07:58:01 +08:00
2026-01-01 22:11:21 +08:00
2026-01-01 21:17:41 +08:00
2025-12-27 07:58:01 +08:00
2025-12-27 07:58:01 +08:00
2026-01-02 22:51:22 +08:00
2026-01-01 21:17:41 +08:00
2025-12-27 08:24:16 +08:00

Claude Code Router Documentation

This directory contains the documentation website built with Docusaurus.

Development

Install Dependencies

cd docs
pnpm install

Start Development Server

# From docs directory
pnpm start

# Or from root directory
pnpm dev:docs

Open http://localhost:3000 to view the documentation.

Build

# From docs directory
pnpm build

# Or from root directory
pnpm build:docs

The built files will be in the build/ directory.

Serve Built Files

# From docs directory
pnpm serve

# Or from root directory
pnpm serve:docs

Structure

docs/
├── docs/              # Markdown documentation files
│   ├── intro.md       # Introduction page
│   ├── installation.md
│   ├── config/        # Configuration docs
│   ├── advanced/      # Advanced topics
│   └── cli/           # CLI reference
├── src/               # React components and pages
│   ├── components/    # Custom React components
│   ├── pages/         # Additional pages
│   ├── css/           # Custom CSS
│   └── theme/         # Docusaurus theme customization
├── static/            # Static assets (images, etc.)
├── i18n/              # Internationalization files
├── docusaurus.config.ts  # Docusaurus configuration
└── sidebars.ts        # Documentation sidebar structure

Adding Documentation

Adding New Docs

Create a new Markdown file in the docs/ directory and add it to sidebars.ts.

Adding New Pages

Add React components to src/pages/.

Customizing Styles

Edit src/css/custom.css.

Internationalization

Documentation supports both English and Chinese.

  • English: docs/ and src/
  • Chinese: i18n/zh/docusaurus-plugin-content-docs/current/

To add Chinese translations:

  1. Create corresponding files in i18n/zh/docusaurus-plugin-content-docs/current/
  2. Translate the content

Deployment

The documentation can be deployed to:

  • GitHub Pages
  • Netlify
  • Vercel
  • Any static hosting service

See Docusaurus deployment docs for details.