Skip to content

Ignore rst_prolog option for function documentation #425

Open
@g3n35i5

Description

@g3n35i5

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"

Selection_20240208_01

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions