-
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
[Docathon] Fix en api_label #57711
[Docathon] Fix en api_label #57711
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.
LGTM,就是有个小问题想讨论一下 @SigureMo @ooooo-create
@@ -237,7 +237,7 @@ def googlenet(pretrained=False, **kwargs): | |||
Args: | |||
pretrained (bool, optional): Whether to load pre-trained weights. If True, returns a model pre-trained | |||
on ImageNet. Default: False. | |||
**kwargs (optional): Additional keyword arguments. For details, please refer to :ref:`GoogLeNet <api_paddle_vision_GoogLeNet>`. | |||
**kwargs (optional): Additional keyword arguments. For details, please refer to :ref:`GoogLeNet <api_paddle_vision_models_GoogLeNet>`. |
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.
发现了一个问题,ref <api_label> 的时候,api_label是大小写不敏感的?比如 googlenet
这边引用 GoogLeNet
,但最后官网生成的引用链接是 .../vision/models/googlenet_en.html#api-paddle-vision-models-googlenet
而不是 .../vision/models/GoogLeNet_en.html
@SigureMo
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.
这样的话,可能需要对重名的其中一个进行修改了
英文 label 生成见:
这个比较类似文件大小写不敏感系统导致的重名问题,可以尝试一个类似的解决方案
中文可能需要同样的解决方案
或许和中文文件名一样使用 _upper
后缀即可,这样甚至中文那边逻辑不需要对 _upper
特判了
* fix en api_label * fix summary
* fix en api_label * fix summary
* fix en api_label * fix summary
PR types
Others
PR changes
Others
Description
修复英文文档中 ref 引用的api_label
- :ref:`[^a],例如 #57704
- 含有标签的引用
Related links:
#57363
@sunzhongkai588 @SigureMo