在使用sphinx和’autodoc’的按类排序显示的答案中?它说明了如何使用autosummary和来为每个类一页生成类的文档
autosummary_generate=True。
该机制也适用于功能。使用这样的东西:
EoN API documentation=====================.. currentmodule:: EoN.. autosummary:: :toctree: functions my_function1 my_function2 my_function3 ...
您必须在
autosummary指令中枚举每个函数,但是相应的*.rst文件会自动生成(在
functions子目录中)。



