layout.Section

layout.Section(**data)

A section of content on the reference index page.

Attributes

kind : Literal['section']
title : Optional[str]

Title of the section on the index.

subtitle : Optional[str]

Subtitle of the section on the index. Note that either title or subtitle, but not both, may be set.

desc : Optional[str]

Description of the section on the index.

package : Union[str, None, MISSING]

If specified, all object lookups will be relative to this path.

contents : Union[ContentList, Literal['auto']]

Individual objects (e.g. functions, classes, methods) being documented. May also be the string “auto”, to document every public submodule found in the package. Note that an omitted (or empty) contents field is not the same as “auto”: a section with a title but no contents acts as a heading for the sections that follow it.