m2d#1693
Merged
Merged
Conversation
Merge pull request #1664 from vitejs/main
docs(guide): fix spacing and punctuation
docs(api-environment): fix reversed meaning
docs(guide): fix typo
docs(guide): fix translation in api-javascript.md
docs(guide): fix punctuation, typo and improve wording in api-plugin.md
docs(guide): fix spacing, punctuation and translate comment
docs(guide): fix spacing, punctuation, wording and update translate
docs(guide): fix spacing, punctuation and correct wording
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Contributor
There was a problem hiding this comment.
Pull request overview
该 PR 主要对中文文档内容进行了排版与措辞校对,提升 Markdown 渲染一致性与中文标点/空格规范性,属于文档质量维护类改动。
Changes:
- 修复多处段落/列表缩进与中英文间距(如链接前后空格、内联代码间距)以改善渲染一致性
- 校正文案用词与中文标点(如“遗落→丢弃”、补全句号、冒号全角化等)
- 将部分标题/注释进行中文化与规范化(如 SSR 小节标题)
Reviewed changes
Copilot reviewed 12 out of 16 changed files in this pull request and generated 1 comment.
Show a summary per file
| File | Description |
|---|---|
| guide/using-plugins.md | 修正段落缩进与标点,避免被误解析为代码块/提升可读性 |
| guide/troubleshooting.md | 更正用词并优化句式,提升表达准确性 |
| guide/static-deploy.md | 规范链接前后空格,统一排版 |
| guide/ssr.md | 规范段落内联代码空格,并将小节标题中文化且补充锚点 |
| guide/index.md | 修正错别字(模板)并统一标点/空格 |
| guide/env-and-mode.md | 统一列表项排版与中文标点(如顿号/空格) |
| guide/dep-pre-bundling.md | 统一中文标点与中英文空格(HTTP/冒号等) |
| guide/build.md | 统一链接写法与标点/空格,改善排版一致性 |
| guide/backend-integration.md | 统一中文标点(顿号)与逗号空格规范 |
| guide/assets.md | 统一内联代码与中文之间的空格 |
| guide/api-plugin.md | 统一中文冒号与句式,改善可读性 |
| guide/api-javascript.md | 优化定义描述句式,减少歧义 |
| guide/api-environment.md | 统一列表与段落排版(含内联代码/空格规范) |
| guide/api-environment-runtimes.md | 将英文注释翻译为中文并保持语义一致 |
| guide/api-environment-plugins.md | 统一链接前后空格与排版 |
| guide/api-environment-frameworks.md | 统一链接前后空格与排版 |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
| 如果没有明确说明,环境将继承已配置的顶级配置选项(例如,新的 `server` 和 `edge` 环境将继承 `build.sourcemap: false` 选项)。少数顶级选项(如 `optimizeDeps`)仅适用于 `client` 环境,因为它们在默认应用于服务器环境时效果不佳。这些选项在 [配置参考](/config/) 中带有 <NonInheritBadge /> 标记。也可以通过 `environments.client` 明确配置 `client` 环境,但我们建议使用顶级选项进行配置,以便在添加新环境时客户端配置保持不变。 | ||
|
|
||
| `EnvironmentOptions` 接口公开所有每个环境选项。有些环境选项适用于 `build` 和 `dev`,如 `resolve`。还有 `DevEnvironmentOptions` 和 `BuildEnvironmentOptions` 用于开发和构建特定选项(如 `dev.warmup` 或 `build.outDir`)。一些选项(例如`optimizeDeps`)仅适用于 dev,但为了向后兼容,它保留为顶层而不是嵌套在`dev`中。 | ||
| `EnvironmentOptions` 接口公开所有每个环境选项。有些环境选项适用于 `build` 和 `dev`,如 `resolve`。还有 `DevEnvironmentOptions` 和 `BuildEnvironmentOptions` 用于开发和构建特定选项(如 `dev.warmup` 或 `build.outDir`)。一些选项(例如 `optimizeDeps`)仅适用于 dev,但为了向后兼容,它保留为顶层而不是嵌套在`dev`中。 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.