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

modify api label to real api path (#2483)

* modify alias

* update alias mapping

* add index files

* gen api label file

* gen api label file

* adapt to python3

* modify api label to real api path
上级 54de422b
......@@ -143,6 +143,7 @@ def gen_en_files(root_path='paddle', api_label_file="api_label"):
if is_filter_api(api):
continue
raw_api = api
api = get_display_api(api)
doc_file = api.split(".")[-1]
......@@ -155,7 +156,7 @@ def gen_en_files(root_path='paddle', api_label_file="api_label"):
os.mknod(f + en_suffix)
gen = EnDocGenerator()
with gen.guard(f + en_suffix):
gen.module_name = ".".join(api.split(".")[0:-1])
gen.module_name = ".".join(raw_api.split(".")[0:-1])
gen.api = doc_file
gen.print_header_reminder()
gen.print_item()
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册