Add a toc entry to each autofunction

23 Views Asked by At

I would like to add a toc entry to each .. autofunction: Suppose:

.. automodule:: foo.bar
   
   .. rubric:: Functions

   .. autosummary::
   
      myfunction
      otherfunction

   .. rubric:: Details
   
.. <- toc entry "myfunction"

   .. autofunction:: myfunction

.. <- toc entry "myfunction"

   .. autofunction:: otherfunction

Note:

  • I could add headers, but that gives the same 'header' twice, which I would like to avoid.
  • Background: I am avoiding automodule that does add the toc-entries to enanble a custom layout (all while being automatically generated see here).
0

There are 0 best solutions below