2

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!

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.