betty.extensions.raspberry_mint package¶
Submodules¶
Module contents¶
Provide the Raspberry Mint theme.
- final class betty.extensions.raspberry_mint.Breakpoint¶
Bases:
EnumThe theme’s breakpoints.
- LG = 'lg'¶
- MD = 'md'¶
- SM = 'sm'¶
- XL = 'xl'¶
- XS = 'xs'¶
- XXL = 'xxl'¶
- final class betty.extensions.raspberry_mint.ColorStyle¶
Bases:
EnumThe available color styles.
- DARK = 'dark'¶
A dark style with a black background.
- DARK_SECONDARY = 'dark-secondary'¶
A dark style with a dark shade of the secondary color for the background.
- LIGHT = 'light'¶
A light style with a white background.
- LIGHT_CONTRAST = 'light-contrast'¶
A light style with a light shade of gray for the background.
- LIGHT_SECONDARY = 'light-secondary'¶
A light style with a light shade of the secondary color for the background.
- final class betty.extensions.raspberry_mint.JustifyContent¶
Bases:
EnumHow to justify content.
- AROUND = 'around'¶
- BETWEEN = 'between'¶
- CENTER = 'center'¶
- END = 'end'¶
- EVENLY = 'evenly'¶
- START = 'start'¶
- final class betty.extensions.raspberry_mint.RaspberryMint¶
Bases:
DataManufacturable[RaspberryMintData],Manufacturable,Generator,EntryPointProvider,ServiceProviderThe
raspberry-mintextensionplugin.Plugin ID
raspberry-mintClass
Configuration
Important
This extension requires Node.js.
Regions¶
Raspberry Mint provides the following regions contents may be configured for:
front-page-contentThe main content for the front page.front-page-summaryThe page summary for the front page.entity-page-contentThe page content region for entity pages.entity-page-content--{entity_type_id}The page content region for entity pages of a specific public-facing entity type, where{entity_type_id}is the entity type ID. If no content is assigned to this region for an entity type,entity-page-contentis used instead.
- __init__(*, project: Project, primary_color: str | None = None, regional_content: RegionalContentManufacturers | None = None, secondary_color: str | None = None, tertiary_color: str | None = None)¶
- new = <betty.requirement._RequirableDecorator object>¶
- classmethod new_data_cls() type[RaspberryMintData]¶
The object’s defined data class.
- regional_content()¶
The regional content.
- webpack_entry_point_cache_keys() Sequence[str]¶
Get the keys that make a Webpack build for this provider unique.
Providers that can be cached regardless may
return ().
- classmethod webpack_entry_point_directory() StrPath¶
Get the path to the directory with the entry point assets.
The directory must include at least a
package.jsonandmain.ts.
- final class betty.extensions.raspberry_mint.RaspberryMintData¶
-
Configuration for the
betty.extensions.raspberry_mint.RaspberryMintextension.- betty.extensions.raspberry_mint:RaspberryMintData
- __init__(*, primary_color: str | None = None, secondary_color: str | None = None, tertiary_color: str | None = None, regional_content: Mapping[ResolvableRegion, Iterable[ResolvablePluginManufacturer[ContentBuilderDefinition, ContentBuilder]]] | None = None)¶
- primary_color¶
The primary color.
- regional_content¶
The regional content.
- secondary_color¶
The secondary color.
- tertiary_color¶
The tertiary color.