-
Notifications
You must be signed in to change notification settings - Fork 5.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[xdoctest] reformat example code with google style No.102-104 #56124
Conversation
你的PR提交成功,感谢你对开源项目的贡献! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTMeow 🐾
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
已修改~ |
codestyle 流水线需要看一下 |
已修复~ |
dd909e8
to
70be8c8
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM ~
@sunzhongkai588 Adagrad 的中文文档里面,缺少了公共方法的描述,其他 OK ~
@SigureMo 公共方法中文应该不需要补充吧?英文是自动抽取公共方法的docstring。(话说英文这方面..这应该算bug么?可以当成任务发出来修么 🥹) |
应该只是中英文生成工具不一致的问题吧,公共方法是自动继承的么?如果是自动继承的话我记得可以配置啥 no-inherit 啥的,好像是在 gen_doc.py 里 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
是自动继承的好像。而且 gen_doc.py 大概率又要处于没人维护的状态..anyway吧先这样 |
PR types
Others
PR changes
Others
Description
修改如下文件的示例代码,使其通过
xdoctest
检查:预览:
en: http://preview-paddle-pr-56124.paddle-docs-preview.paddlepaddle.org.cn/documentation/docs/en/api/paddle/abs_en.html
zh: http://preview-paddle-pr-56124.paddle-docs-preview.paddlepaddle.org.cn/documentation/docs/zh/api/paddle/abs_cn.html
关联 PR:
@sunzhongkai588 @SigureMo @megemini