Skip to content

Conversation

@Shaun2016
Copy link
Contributor

背景:已有获取公开API的方法,依赖于人工维护的module list,当有新module下的API merge后,需要人工手动将新module加入到module list中,否则无法获取公开API,使数据存在一定滞后性

解决方案:遍历所有的module,如果module有__all__属性,且__all__的值不为空,则该module为公开module,其下的API为公开API

修改点: api/gen_doc.py

@paddle-bot-old
Copy link

Thanks for your contribution!

@dingjiaweiww dingjiaweiww merged commit a38aa37 into PaddlePaddle:develop Apr 27, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants