feat(cli): add doc command for VitePress documentation#172
Conversation
doc command for VitePress documentation
a3031f0 to
c0706b3
Compare
There was a problem hiding this comment.
Pull Request Overview
This PR adds a new doc command to the CLI for building and serving documentation using VitePress, following the established pattern of other CLI commands.
- Added VitePress integration with TypeScript resolver and Rust command handler
- Created documentation command infrastructure with build/dev mode support
- Added test coverage and help message updates for the new doc functionality
Reviewed Changes
Copilot reviewed 16 out of 18 changed files in this pull request and generated 2 comments.
Show a summary per file
| File | Description |
|---|---|
| pnpm-workspace.yaml | Reorders dependencies in catalog |
| packages/cli/src/doc.ts | New VitePress resolver implementation |
| packages/cli/src/bin.ts | Integrates doc resolver into CLI binding |
| packages/cli/package.json | Adds VitePress as dependency |
| packages/cli/binding/src/lib.rs | Adds Rust FFI bindings for doc command |
| crates/vite_task/src/lib.rs | Adds doc command to CLI structure and argument parsing |
| crates/vite_task/src/doc.rs | New doc command implementation module |
| crates/vite_error/src/lib.rs | Adds DocFailed error variant |
| Various test files | Updates CLI help text and adds doc command tests |
Files not reviewed (1)
- pnpm-lock.yaml: Language not supported
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
c0706b3 to
6d50162
Compare
|
cursor review |
|
@codex review |
There was a problem hiding this comment.
Codex Review: Here are some suggestions.
About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you open a pull request for review, mark a draft as ready, or comment "@codex review". If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex fix this CI failure" or "@codex address that feedback".
There was a problem hiding this comment.
Pull Request Overview
Copilot reviewed 16 out of 18 changed files in this pull request and generated 2 comments.
Files not reviewed (1)
- pnpm-lock.yaml: Language not supported
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
13ee90b to
61a1455
Compare
Merge activity
|
61a1455 to
903c927
Compare
There was a problem hiding this comment.
Pull Request Overview
Copilot reviewed 15 out of 17 changed files in this pull request and generated 3 comments.
Files not reviewed (1)
- pnpm-lock.yaml: Language not supported
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
903c927 to
991d11a
Compare
4a12f74 to
a6a2966
Compare
1d6e4b2 to
400129a
Compare
a6a2966 to
f7473d0
Compare
400129a to
0db0d37
Compare

TL;DR
Added a new
doccommand to the CLI for building and serving documentation with VitePress.What changed?
DocFailederror type to handle documentation command failuresdoc.rsmodule in thevite_taskcrate to handle documentation tasksHow to test?
vite docto start the documentation server in development modevite doc buildto build the documentation for productionWhy make this change?
This change adds first-class support for documentation workflows using VitePress, making it easier for users to develop and build documentation for their projects. The implementation follows the same pattern as other commands like
testandlib, providing a consistent developer experience across all project tasks.