ThemeModel#

class documenteer.conf._toml.ThemeModel(**data)#

Bases: BaseModel

Model for theme configurations in documenteer.toml.

Parameters:

data (Any) –

Attributes Summary

model_computed_fields

A dictionary of computed field names and their corresponding ComputedFieldInfo objects.

model_config

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

model_fields

Metadata about the fields defined on the model, mapping of field names to [FieldInfo][pydantic.fields.FieldInfo].

Attributes Documentation

model_computed_fields: ClassVar[dict[str, ComputedFieldInfo]] = {}#

A dictionary of computed field names and their corresponding ComputedFieldInfo objects.

model_config: ClassVar[ConfigDict] = {}#

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

model_fields: ClassVar[dict[str, FieldInfo]] = {'header_links_before_dropdown': FieldInfo(annotation=int, required=False, default=5, description="Number of links in the header nav before showing a 'More' dropdown."), 'show_github_edit_link': FieldInfo(annotation=bool, required=False, default=True, description='Show a link to edit on GitHub if True')}#

Metadata about the fields defined on the model, mapping of field names to [FieldInfo][pydantic.fields.FieldInfo].

This replaces Model.__fields__ from Pydantic V1.