Contributing to the docs
Thank you for improving Commander documentation.
Repos
| Repo | Role |
|---|---|
| Commander | Product, CLI, SDK, tests |
| commander-docs | This VitePress site |
Local docs dev
bash
git clone https://github.com/PStarH/commander-docs.git
cd commander-docs
npm install
npm run dev # http://localhost:5173/commander-docs/
npm run check # content guards
npm run buildContent rules
- Metrics:
25 providers·5 topologies·18 built-in tools·6700+ tests - CLI from source:
npx tsx packages/core/src/cliEntry.ts … - CLI after build:
commander … - Vue internal links: always
withBase()(GH Pages base/commander-docs/) - themeConfig.logo:
/logo.svgonly — never hardcode/commander-docs/ - Localhost URLs in install docs are fine; CI allows them as dead-link exceptions
i18n
- English is the source of truth under
/guide,/architecture,/api - Chinese entry path:
/zh/(Quick Start, Why, FAQ, cookbook samples) - When you change EN quick-start commands, update
zh/guide/getting-started.mdif applicable
PR checklist
- [ ]
npm run checkpasses - [ ]
npm run buildpasses - [ ] No new
cli.ts/ wrong provider counts / 17-tools strings - [ ] Screenshots or demos use accurate product claims
Security
Do not open public issues for vulnerabilities. See Security.
Product code contributions
Use the main Commander repository for runtime, tools, and providers. Docs-only changes belong here.