未验证 提交 84869786 编写于 作者: C chentianyu03 提交者: GitHub

add api label file (#2476)

* modify alias

* update alias mapping

* add index files

* gen api label file

* gen api label file
上级 e69a2ebb
此差异已折叠。
......@@ -135,8 +135,9 @@ def get_display_api(api):
return api
def gen_en_files(root_path='paddle'):
def gen_en_files(root_path='paddle', api_label_file="api_label"):
backup_path = root_path + "_" + str(int(time.time()))
api_f = open(api_label_file, 'w')
for api in api_set:
if is_filter_api(api):
......@@ -158,6 +159,9 @@ def gen_en_files(root_path='paddle'):
gen.api = doc_file
gen.print_header_reminder()
gen.print_item()
api_f.write(doc_file + "\t" + ".. _api_{0}_{1}:\n".format("_".join(
gen.module_name.split(".")), gen.api))
api_f.close()
def clean_en_files(path="./paddle"):
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册