Skip to content

[Docs] Fix Chinese punctuation and typo in API docs (dot, divide, dsplit)#7798

Merged
Echo-Nie merged 1 commit intoPaddlePaddle:developfrom
StatefulDust:fix/api-docs-punctuation-batch1-675370b688f67294
Feb 28, 2026
Merged

[Docs] Fix Chinese punctuation and typo in API docs (dot, divide, dsplit)#7798
Echo-Nie merged 1 commit intoPaddlePaddle:developfrom
StatefulDust:fix/api-docs-punctuation-batch1-675370b688f67294

Conversation

@ooooo-create
Copy link
Collaborator

修改内容

本 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.rst

  • 修复拼写错误:TenserTensor
  • 将中文句尾的英文冒号 : 改为中文冒号 :

相关规范

根据仓库文档书写规范:

中文文档中尽量避免使用英文标点符号,如逗号、句号、引号等,均应使用中文标点符号。

Generated by API Docs Checker


🔄 Synced from https://github.com/StatefulDust/paddle-docs-agent/pull/15

…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>
Copilot AI review requested due to automatic review settings February 28, 2026 14:07
@github-actions
Copy link

📚 本次 PR 文档预览链接(点击展开)
ℹ️ 预览提醒
请等待 Docs-NEW 流水线运行完成后再点击预览链接,否则可能会看到旧版本内容或遇到链接无法访问的情况。

@paddle-bot
Copy link

paddle-bot bot commented Feb 28, 2026

感谢你贡献飞桨文档,文档预览构建中,Docs-New 跑完后即可预览,预览链接:http://preview-pr-7798.paddle-docs-preview.paddlepaddle.org.cn/documentation/docs/zh/api/index_cn.html
预览工具的更多说明,请参考:飞桨文档预览工具

Copy link
Contributor

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

本 PR 针对 docs/api/paddle 下的中文 API 文档做了小幅规范化修订,主要修复中文标点与个别拼写/内联代码标记问题,使内容更符合中文文档排版与 RST 语法习惯。

Changes:

  • 将 API 文档中 别名支持: 的英文冒号统一替换为中文冒号
  • 修复 dsplit 文档中的拼写错误 TenserTensor
  • 修正 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 统一“别名支持”标点为中文冒号,并将句尾英文句号替换为中文句号

Copy link
Member

@SigureMo SigureMo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTMeow 🐾

@Echo-Nie Echo-Nie merged commit 3fbc05f into PaddlePaddle:develop Feb 28, 2026
9 checks passed
@ooooo-create ooooo-create added the HappyOpenSource 快乐开源活动issue与PR label Mar 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

HappyOpenSource 快乐开源活动issue与PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants