提交 d3e27a7c 编写于 作者: C chentianyu03

modify api label to real api path

上级 05d5b00b
......@@ -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.
先完成此消息的编辑!
想要评论请 注册