Files
claude-code-router/docs/README.md
musistudio 160594a8d6 init doc
2025-12-27 07:58:01 +08:00

105 lines
2.2 KiB
Markdown

# Claude Code Router Documentation
This directory contains the documentation website built with [Docusaurus](https://docusaurus.io/).
## Development
### Install Dependencies
```bash
cd docs
pnpm install
```
### Start Development Server
```bash
# From docs directory
pnpm start
# Or from root directory
pnpm dev:docs
```
Open [http://localhost:3000](http://localhost:3000) to view the documentation.
## Build
```bash
# From docs directory
pnpm build
# Or from root directory
pnpm build:docs
```
The built files will be in the `build/` directory.
## Serve Built Files
```bash
# 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](https://docusaurus.io/docs/deployment) for details.