提交 1b487281 编写于 作者: T tink2123

add script file

上级 a12a9e7e
......@@ -57,11 +57,11 @@ class DocGenerator(object):
raise ValueError("Cannot find submodule {0}".format(submodule_name))
self.print_section(submodule_name)
for item in submodule.__all__:
for item in sorted(submodule.__all__,key=str.lower):
self.print_item(item)
def print_current_module(self):
for item in self.module.__all__:
for item in sorted(self.module.__all__,key=str.lower):
self.print_item(item)
def print_section(self, name):
......
import os.path, time
import exceptions
import glob
import os
if __name__ == '__main__':
file_object = open('reorder.rst', 'w')
file_object.write('''=============
API Reference
=============
.. toctree::
:maxdepth: 1
''')
file_object.write(' api_guides/index.rst'+'\n')
file_object.write(' fluid.rst'+'\n')
for file_name in sorted(glob.glob("*.rst")):
if file_name != ('index_en.rst' and 'fluid.rst'):
file_object.write(' '+file_name + "\n")
file_object.close( )
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册