themes: add a new design option, `disable_external_link_icons`

This commit is contained in:
Sina Atalay 2024-04-15 18:05:14 +03:00
parent 1c57df70f5
commit ad943601b6
1 changed files with 14 additions and 6 deletions

View File

@ -209,11 +209,19 @@ class ThemeOptions(pydantic.BaseModel):
), ),
examples=["Black", "7fffd4", "rgb(0,79,144)", "hsl(270, 60%, 70%)"], examples=["Black", "7fffd4", "rgb(0,79,144)", "hsl(270, 60%, 70%)"],
) )
disable_external_link_icons: bool = pydantic.Field(
default=False,
title="Disable External Link Icons",
description=(
"If this option is set to true, then the external link icons will not be"
" shown next to the links. The default value is false."
),
)
disable_page_numbering: bool = pydantic.Field( disable_page_numbering: bool = pydantic.Field(
default=False, default=False,
title="Disable Page Numbering", title="Disable Page Numbering",
description=( description=(
"If this option is set to true, then the page numbering will be disabled." "If this option is set to true, then the page numbering will not be shown."
" The default value is false." " The default value is false."
), ),
) )
@ -227,12 +235,12 @@ class ThemeOptions(pydantic.BaseModel):
" NAME - Page PAGE_NUMBER of TOTAL_PAGES." " NAME - Page PAGE_NUMBER of TOTAL_PAGES."
), ),
) )
show_last_updated_date: bool = pydantic.Field( disable_last_updated_date: bool = pydantic.Field(
default=True, default=False,
title="Show Last Updated Date", title="Disable Last Updated Date",
description=( description=(
"If this option is set to true, then the last updated date will be shown" "If this option is set to true, then the last updated date will not be"
" in the header. The default value is true." " shown in the header. The default value is false."
), ),
) )
last_updated_date_style: str = pydantic.Field( last_updated_date_style: str = pydantic.Field(