-
Notifications
You must be signed in to change notification settings - Fork 772
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
【Docathon】补充Overview文档相关API描述 #6427
Labels
HappyOpenSource
快乐开源活动issue与PR
Comments
【报名】: 18-21 |
【报名】: 27-32 |
【报名】: 1-3 |
【报名】: 22-26 |
This was referenced Apr 2, 2024
【报名】: 3、4、33-36 |
【报名】: 15-17 |
【报名】: 14 |
【报名】: 5-13 |
【报名】: 13 |
21 tasks
# for free
to join this conversation on GitHub.
Already have an account?
# to comment
一、背景
飞桨官网的 API 文档,有中文和英文两个版本,都存储于 GitHub 中,并通过技术手段转为 HTML 文件后呈现在官网。
原则上每一个中文 API 文档,都需要在对应目录下的 Overview 页面有描述,并且是一一对应的关系,但目前部分 Overview 文档中的 API 描述存在缺失。
Note
以 paddle.amp.debugging.collect_operator_stats 为例,该 API 理应在 paddle.amp 文件夹下的 Overview 页面中的 Debug 相关辅助类有对应描述,但实际是缺失的。

因此,你需要在对应 amp 文件夹下的 Overview_cn.rst 文件中增加对应描述。
二、原因分析
中文文档中 Overview 是通过
:ref:
的格式进行映射的。一般会造成其描述缺失的就是其 Overview_cn.rst 缺乏相应的":ref:
引用。以 paddle.amp.debugging.DebugMod 为例,
:ref:
引用写法如下:docs/docs/api/paddle/amp/Overview_cn.rst
Line 75 in 9620784
三、解决方法
通过在相应位置添加
" :ref:`API<相关 API 路径>` "
补充 Overview 文档中缺失的 API 描述、以 paddle.add 为例:按照
" :ref:`API<相关 API 路径>` ","API 功能"
添加描述四、任务描述
@hu-qi
@hu-qi
@austin-00
@austin-00
@austin-00
任务认领
Important
请务必严格按照格式填写,否则无法快乐开源小助手无法自动更新信息
1. Issue 回复格式:
为了自动填写报名信息,需要在 issue 下回复报名信息,如果报名格式不正确,则会在 comment 区提示报名不正确,格式如下:
2. PR 标题格式:
PR 的标题中以
[Docathon][Add Overview Doc No.xxxx]
开头即可,程序会自动提取赛题编号并更新榜单。一个 PR 也可以提交多个赛题,多个赛题间以
顿号
或横线
分隔,比如 No.24、26-28、30 赛题。3. PR 内容:
描述新增了哪些 Overview 的 API 描述、附上中文文档链接、并 @Turingg 和 @sunzhongkai588
看板信息
统计信息
The text was updated successfully, but these errors were encountered: