Skip to content

Conversation

Manfredss
Copy link
Contributor

PR types

  • 添加新特性
  • 修复 Bug
  • 性能优化
  • 文件更新(修复 中文文档反引号后缺少空格导致内联代码无法正确渲染 的问题)

描述

  • 遍历所有以 _cn.rst 结尾的文件,查找缺失空格的反引号并添加空格

测试流程

  • 在 macOS 15.5 中,使用 sphinx 重新编译渲染文档,内联代码正确显示

Copy link

paddle-bot bot commented Sep 22, 2025

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

@Manfredss
Copy link
Contributor Author

@luotao1 CI 之前没有触发,我重新提交了一个 PR,请帮忙看下~

@luotao1 luotao1 added the HappyOpenSource 快乐开源活动issue与PR label Sep 22, 2025
@luotao1 luotao1 self-assigned this Sep 22, 2025
Copy link
Collaborator

@luotao1 luotao1 left a comment

Choose a reason for hiding this comment

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

@luotao1 luotao1 merged commit 7a29904 into PaddlePaddle:develop Sep 22, 2025
1 of 2 checks passed
@sunzhongkai588
Copy link
Collaborator

@Manfredss 开发者你好,感谢你之前的贡献。这个 PR 你得 revert 一下。目前看自动 revert 应该不行了,因为合入之后还有后续的改动,得你手动 Revert 该 PR 的所有改动。

因为文档是sphinx语法,对空格、缩进都是敏感的。像这里加了空格就直接渲染和预期不符了。关于 docs 文档的批量改动,建议尽量在熟悉 sphinx 语法之后,再进行修改。

bebc034933b1f2653c8f4779140deda5 11576b713a46cf15f3b9fca87524eca4

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
contributor HappyOpenSource 快乐开源活动issue与PR
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants