Skip to content

models

Pyproject models.

MkDocsConfig

Bases: BaseModel

MkDocs configuration model.

Source code in src/somesy/mkdocs/models.py
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
class MkDocsConfig(BaseModel):
    """MkDocs configuration model."""

    model_config = {"use_enum_values": True}

    site_name: Annotated[
        str,
        Field(pattern=r"^[A-Za-z0-9]+([_-][A-Za-z0-9]+)*$", description="Site name"),
    ]
    site_description: Annotated[str | None, Field(description="Site description")] = (
        None
    )
    site_author: Annotated[str | None, Field(description="Site authors")] = None
    site_url: Annotated[HttpUrlStr | None, Field(description="Site homepage")] = None
    repo_url: Annotated[HttpUrlStr | None, Field(description="Package repository")] = (
        None
    )
    repo_name: Annotated[str | None, Field(description="Repository name")] = None