When using the following with the autosummary extension of sphinx,
Module
======
Section
-------
Foo
.. autosummary::
:toctree:
~mypkg.Bar
I naturally get the following hierarchy:
Module
└── Bar
Is it possible to get
Module
└── Section
└── Bar
without creating a new file and nested folder? I would like to keep the content on the same page. And ideally, the "Section" link from the toctree would point to the "Section" section of the page.
I tried playing with the toctree argument but to no avail.
Thanks in advance!