[Docs] Fix Chinese punctuation and typo in API docs (dot, divide, dsplit)#7798
Merged
Echo-Nie merged 1 commit intoPaddlePaddle:developfrom Feb 28, 2026
Conversation
…lit) - dot_cn.rst: Replace English colon with Chinese colon in alias note; fix single backtick to double backticks for Tensor code span - divide_cn.rst: Replace English colon with Chinese colon in alias note; replace English period with Chinese period at end of Chinese sentence - dsplit_cn.rst: Fix typo 'Tenser' -> 'Tensor'; replace trailing English colon with Chinese colon in Chinese sentence Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
|
感谢你贡献飞桨文档,文档预览构建中,Docs-New 跑完后即可预览,预览链接:http://preview-pr-7798.paddle-docs-preview.paddlepaddle.org.cn/documentation/docs/zh/api/index_cn.html |
Contributor
There was a problem hiding this comment.
Pull request overview
本 PR 针对 docs/api/paddle 下的中文 API 文档做了小幅规范化修订,主要修复中文标点与个别拼写/内联代码标记问题,使内容更符合中文文档排版与 RST 语法习惯。
Changes:
- 将 API 文档中
别名支持:的英文冒号统一替换为中文冒号: - 修复
dsplit文档中的拼写错误Tenser→Tensor - 修正 RST 内联代码标记,将
Tensor的单反引号形式改为更合适的双反引号内联字面量形式
Reviewed changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
| docs/api/paddle/dsplit_cn.rst | 修复示例描述中的拼写与句尾标点(中文冒号) |
| docs/api/paddle/dot_cn.rst | 统一“别名支持”标点为中文冒号,并修正 Tensor 的 RST 内联标记 |
| docs/api/paddle/divide_cn.rst | 统一“别名支持”标点为中文冒号,并将句尾英文句号替换为中文句号 |
SigureMo
approved these changes
Feb 28, 2026
Echo-Nie
approved these changes
Feb 28, 2026
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.
修改内容
本 PR 修复了
docs/api/paddle目录下 3 个 API 文档文件中的标点符号和拼写问题,确保符合文档规范中"中文文档应使用中文标点符号"的要求。修改的文件
docs/api/paddle/dot_cn.rst别名支持:中的英文冒号:改为中文冒号:`Tensor`(单反引号)改为``Tensor``(双反引号),符合 RST 代码片段语法docs/api/paddle/divide_cn.rst别名支持:中的英文冒号:改为中文冒号:.改为中文句号。(`Tensor 介绍`_ .→`Tensor 介绍`_ 。)docs/api/paddle/dsplit_cn.rstTenser→Tensor:改为中文冒号:相关规范
根据仓库文档书写规范: