Skip to content

Conversation

@NoiseFan
Copy link
Collaborator

@NoiseFan NoiseFan commented Dec 2, 2025

在提交PR之前,请确保您执行以下操作:

  • 曾阅读过翻译须知
  • 检查是否已经有PR以同样的方式解决问题,以避免创建重复。
  • 在此PR中描述正在解决的问题,或引用它解决的问题(例如:fixes #123)。

描述

resolved: #814

附加上下文

@thinkasany thinkasany requested a review from Copilot December 4, 2025 04:18
Copilot finished reviewing on behalf of thinkasany December 4, 2025 04:19
Copy link

Copilot AI left a 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.

@NoiseFan NoiseFan marked this pull request as draft December 4, 2025 16:19
@NoiseFan NoiseFan marked this pull request as ready for review December 7, 2025 10:47
@NoiseFan NoiseFan requested a review from elonehoo December 7, 2025 10:47
@NoiseFan NoiseFan linked an issue Dec 7, 2025 that may be closed by this pull request
49 tasks
@NoiseFan NoiseFan merged commit e054820 into vitest-dev:v2 Dec 7, 2025
@NoiseFan NoiseFan deleted the 2.x branch December 7, 2025 11:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2.x 发布前准备

1 participant