Skip to content

[Docs] Fix typo and RST inline code formatting in API docs#7799

Merged
SigureMo merged 1 commit intoPaddlePaddle:developfrom
StatefulDust:fix/api-docs-formatting-issues-20260228-171ee96f21540a32
Feb 28, 2026
Merged

[Docs] Fix typo and RST inline code formatting in API docs#7799
SigureMo merged 1 commit intoPaddlePaddle:developfrom
StatefulDust:fix/api-docs-formatting-issues-20260228-171ee96f21540a32

Conversation

@ooooo-create
Copy link
Collaborator

Changes

This PR fixes documentation standard violations found in 3 API doc files:

1. docs/api/paddle/dstack_cn.rst

  • Fixed typo: 两个个形状两个形状 (duplicate character)
  • Fixed missing spaces around [1, 3] shape notation: 形状为[1, 3]的形状为 [1, 3] 的

2. docs/api/paddle/incubate/segment_max_cn.rst

  • Fixed inline code formatting: single backtick `data` → double backtick ``data`` (RST standard)
  • Added missing spaces between Chinese text and inline code markers

3. docs/api/paddle/incubate/segment_mean_cn.rst

  • Same fix as segment_max_cn.rst: single backtick → double backtick for inline code
  • Added missing spaces between Chinese text and inline code markers

Standards Applied

Per the repository's documentation standards (.github/copilot-instructions.md):

  • RST files must use double backticks (``) for inline code, not single backticks
  • Chinese and English/code content must be separated by spaces

Generated by API Docs Checker


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

- Fix typo '两个个' -> '两个' in dstack_cn.rst
- Fix missing space around '[1, 3]' in dstack_cn.rst
- Fix single backtick to double backtick for inline code in segment_max_cn.rst
- Fix single backtick to double backtick for inline code in segment_mean_cn.rst
- Add missing spaces between Chinese text and inline code markers

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@github-actions
Copy link

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

@paddle-bot
Copy link

paddle-bot bot commented Feb 28, 2026

感谢你贡献飞桨文档,文档预览构建中,Docs-New 跑完后即可预览,预览链接:http://preview-pr-7799.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 针对 PaddlePaddle 中文 API 文档(Sphinx/RST)做规范化修正,主要是修复错别字与行内“代码样式”/中英混排空格问题,以提升文档一致性与可读性。

Changes:

  • 修复 dstack 文档中的重复字与形状描述缺失空格问题。
  • segment_mean / segment_max 参数说明中的行内引用从单反引号调整为 RST 字面量写法(双反引号),并补齐与中文之间的空格。

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.

File Description
docs/api/paddle/dstack_cn.rst 修复“两个个形状”笔误,并规范形状描述的空格排版
docs/api/paddle/incubate/segment_max_cn.rst 规范 segment_ids 参数行内字面量标记与中英/代码间空格
docs/api/paddle/incubate/segment_mean_cn.rst 规范 segment_ids 参数行内字面量标记与中英/代码间空格

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 🐾

@SigureMo SigureMo merged commit c5a0369 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