Improve autodoc behaviour for nested entrypoints
Clarification and motivation
If the case a contract has nested entrypoints, there are several problems:
- Table of contents does not mention those entrypoints.
- The inner entrypoints are included in the outer ones.
- Headers get too small at such deep nesting, this does not look neat.
- It is better to move inner entrypoints outside and put a reference to the section at the old position.
The latter can be done either via putting entrypoints to the definitions section (not sure if it is proper) or via attaching the extraction logic to finalizeParamCallingDoc
.
Acceptance criteria
- Mentioned proposals are implemented.
Edited by Konstantin Ivanov