[CodeStyle] Fix missing spaces between English and Chinese in API docs#7811
Merged
Echo-Nie merged 4 commits intoMar 2, 2026
Conversation
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>
|
感谢你贡献飞桨文档,文档预览构建中,Docs-New 跑完后即可预览,预览链接:http://preview-pr-7811.paddle-docs-preview.paddlepaddle.org.cn/documentation/docs/zh/api/index_cn.html |
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>
ghost
approved these changes
Mar 1, 2026
SigureMo
approved these changes
Mar 1, 2026
Echo-Nie
approved these changes
Mar 2, 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.
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.rstdtype='float32')写法→dtype='float32') 写法docs/api/paddle/incubate/optimizer/LBFGS_cn.rstbackward()计算→backward() 计算step(closure)更新→step(closure) 更新docs/api/paddle/incubate/optimizer/functional/minimize_bfgs_cn.rstbackward()计算→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.