Sphinx, using automodule to find submodules

前端 未结 2 786
青春惊慌失措
青春惊慌失措 2021-02-02 08:16

When using sphinx\'s automodule (https://www.sphinx-doc.org/en/master/usage/extensions/autodoc.html),

I simply write in a .rst file:

.. automodule:: my_m         


        
2条回答
  •  鱼传尺愫
    2021-02-02 08:51

    It seems to me that using the :imported-members: option (non-direct link, do use search) should now be possible, if __init__.py imports those submodules.

    However, I'm personally not able to make this work (yet).

    EDIT: Possibly a known bug.

提交回复
热议问题