我想在 sphinx 文档中自动包含函数的子函数。有什么选择?
我的代码看起来像
import numpy
def mainfunc():
""" to be documented
"""
def subfunc():
""" to be documented as well
"""
现在我设置在包含的code.rst
Code Reference
==============
.. automodule:: lqgbt_lnse
:members:
但是 sphinx 的输出只包含 main 函数。