Skip to content

[CodeStyle] Fix missing spaces between English and Chinese in API docs#7811

Merged
Echo-Nie merged 4 commits into
PaddlePaddle:developfrom
StatefulDust:fix/cn-en-spacing-api-docs-b6cdd0b1c03384ed
Mar 2, 2026
Merged

[CodeStyle] Fix missing spaces between English and Chinese in API docs#7811
Echo-Nie merged 4 commits into
PaddlePaddle:developfrom
StatefulDust:fix/cn-en-spacing-api-docs-b6cdd0b1c03384ed

Conversation

@ooooo-create
Copy link
Copy Markdown
Collaborator

Summary

Fixed missing spaces between ASCII/English characters and Chinese characters in 3 API documentation files. This violates the documentation standard that requires a space between Chinese and English text (语法层面需要使用空格分隔).

Files Changed

  • docs/api/paddle/incubate/autograd/Overview_cn.rst

    • dtype='float32')写法dtype='float32') 写法
  • docs/api/paddle/incubate/optimizer/LBFGS_cn.rst

    • backward()计算backward() 计算
    • step(closure)更新step(closure) 更新
  • docs/api/paddle/incubate/optimizer/functional/minimize_bfgs_cn.rst

    • backward()计算backward() 计算
    • step()更新step() 更新

Standard Reference

Per the documentation guidelines in .github/copilot-instructions.md:

中英文之间(语法层面)需要使用空格分隔

A space must be added between ASCII/English characters (including closing parentheses )) and Chinese characters when they appear adjacent in text.

Generated by API Docs Checker


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

Add missing spaces between ASCII characters and Chinese characters in
three API documentation files to comply with the documentation standard
that requires a space between Chinese and English text.

- docs/api/paddle/incubate/autograd/Overview_cn.rst: 'float32')写法 -> 'float32') 写法
- docs/api/paddle/incubate/optimizer/LBFGS_cn.rst: backward()计算 -> backward() 计算, step(closure)更新 -> step(closure) 更新
- docs/api/paddle/incubate/optimizer/functional/minimize_bfgs_cn.rst: backward()计算 -> backward() 计算, step()更新 -> step() 更新

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot AI review requested due to automatic review settings March 1, 2026 00:56
@paddle-bot
Copy link
Copy Markdown

paddle-bot Bot commented Mar 1, 2026

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

@github-actions
Copy link
Copy Markdown

github-actions Bot commented Mar 1, 2026

📚 本次 PR 文档预览链接(点击展开)
ℹ️ 预览提醒
请等待 Docs-NEW 流水线运行完成后再点击预览链接,否则可能会看到旧版本内容或遇到链接无法访问的情况。
  • docs/api/paddle/incubate/autograd/Overview_cn.rst: 点击预览
  • docs/api/paddle/incubate/optimizer/LBFGS_cn.rst: 点击预览
  • docs/api/paddle/incubate/optimizer/functional/minimize_bfgs_cn.rst: 点击预览

Copy link
Copy Markdown
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.

Copilot wasn't able to review any files in this pull request.

Comment thread docs/api/paddle/incubate/autograd/Overview_cn.rst Outdated
Comment thread docs/api/paddle/incubate/optimizer/functional/minimize_bfgs_cn.rst Outdated
Comment thread docs/api/paddle/incubate/optimizer/functional/minimize_bfgs_cn.rst Outdated
ooooo-create and others added 3 commits March 1, 2026 09:16
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
….rst

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
….rst

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@Echo-Nie Echo-Nie merged commit 3391ea9 into PaddlePaddle:develop Mar 2, 2026
5 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