From 1e6dec90041bc7c095a33ce55b212f88c1e28f38 Mon Sep 17 00:00:00 2001 From: tianshuo78520a <707759223@qq.com> Date: Thu, 13 Feb 2020 17:49:24 +0800 Subject: [PATCH] update to index.rst method(#1765) --- doc/fluid/api/gen_index.py | 1 - doc/fluid/api_cn/gen_index.py | 4 ++-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/doc/fluid/api/gen_index.py b/doc/fluid/api/gen_index.py index 27ce81e9c..d34142b39 100644 --- a/doc/fluid/api/gen_index.py +++ b/doc/fluid/api/gen_index.py @@ -13,7 +13,6 @@ API Reference .. toctree:: :maxdepth: 1 - ../flags_en.rst ../api_guides/index_en.rst fluid.rst ''') diff --git a/doc/fluid/api_cn/gen_index.py b/doc/fluid/api_cn/gen_index.py index 860866b02..35c33d0bf 100644 --- a/doc/fluid/api_cn/gen_index.py +++ b/doc/fluid/api_cn/gen_index.py @@ -13,9 +13,9 @@ API Reference :maxdepth: 1 ''') - file_object.write(' ../api_guides/index.rst'+'\n') + file_object.write(' ../api_guides/index_cn.rst'+'\n') file_object.write(' fluid_cn.rst'+'\n') for file_name in sorted(glob.glob("*.rst")): - if file_name != ('index_cn.rst' and 'fluid_cn.rst'): + if file_name != 'index.rst' and file_name != 'index_cn.rst' and file_name != 'fluid_cn.rst': file_object.write(' '+file_name + "\n") file_object.close( ) -- GitLab