Open
Description
Since #422 has been merged , the function documentation contains the rst_prolog
option text.
The rst_prolog
option is automatically inserted at the beginning of each source file read.
I currently use it to globally limit the toc tree depth.
With the changes in #422, the documentation of the individual functions is written to temporary rst files and then evaluated, as far as I understand it. This ensures that sphinx inserts the rst_prolog value and sphinx-autodoc-typehints
seems to interpret this value not as an rst directive but as a string.
# Set maximum depth for the right sidebar content overview
rst_prolog = ":tocdepth: 3"