-
-
Notifications
You must be signed in to change notification settings - Fork 90
!docs: building 2.x document #815
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
This PR updates the Chinese documentation for Vitest 2.x, including comprehensive translation updates, adding heading anchors for better navigation, restructuring the navigation sidebar, and setting up git hooks for code quality.
Key Changes:
- Added heading anchors (
{#anchor-name}) throughout all documentation pages for improved linking - Updated Chinese translations across multiple guide files
- Configured lint-staged and simple-git-hooks for automated linting
- Restructured VitePress navigation to separate "Guide" and "API" sections
Reviewed changes
Copilot reviewed 35 out of 37 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
| package.json | Added git hooks (simple-git-hooks, lint-staged) and updated ESLint configuration version |
| guide/*.md | Added heading anchors and improved Chinese translations throughout guide documentation |
| api/*.md | Updated API documentation with consistent Chinese translations and heading anchors |
| config/index.md | Fixed external documentation links to use relative paths |
| .vitepress/config.ts | Restructured sidebar navigation and separated Guide/API sections |
| eslint.config.js | Added exclusions for markdown files and snapshot examples |
| .vitepress/scripts/*.ts | Fixed import ordering to follow style guidelines |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
在提交PR之前,请确保您执行以下操作:
fixes #123)。描述
resolved: #814
附加上下文