Add table of contents to autodoc
Clarification and motivation
Look at an example of our automatically generated documentation: https://gitlab.com/morley-framework/morley/-/blob/abb80730e4d14f4c1055875b4e9dbe3b648c58e3/autodoc/ManagedLedger.md
It has quite a lot of stuff and navigation there is hard. AFAIK there is no way to make md automatically generate ToC, but since autodoc is generated automatically, we can generate ToC ourselves and thus ensure that it's up-to-date.
Acceptance criteria
It's possible to put a table of contents into automatically generated documentation. Generator must ensure that ToC is up-to-date. It should contain, at the very least, all top-level sections (such as Storage
, Entrypoints
) and for each entrypoint there should be an entry in the ToC.