betty.project.extension.cotton_candy package¶
Submodules¶
- betty.project.extension.cotton_candy.config module
CottonCandyConfigurationCottonCandyConfiguration.DEFAULT_LINK_ACTIVE_COLORCottonCandyConfiguration.DEFAULT_LINK_INACTIVE_COLORCottonCandyConfiguration.DEFAULT_PRIMARY_ACTIVE_COLORCottonCandyConfiguration.DEFAULT_PRIMARY_INACTIVE_COLORCottonCandyConfiguration.__init__()CottonCandyConfiguration.dump()CottonCandyConfiguration.featured_entitiesCottonCandyConfiguration.link_active_colorCottonCandyConfiguration.link_inactive_colorCottonCandyConfiguration.load()CottonCandyConfiguration.primary_active_colorCottonCandyConfiguration.primary_inactive_color
Module contents¶
Provide the Cotton Candy theme.
- final class betty.project.extension.cotton_candy.CottonCandy[source]¶
Bases:
ShorthandPluginBase,Theme,CssProvider,ConfigurableExtension[CottonCandyConfiguration],Jinja2Provider,EntryPointProviderThe Cotton Candy theme.
- __init__(project: Project, public_css_paths: Sequence[str], *, configuration: CottonCandyConfiguration)[source]¶
This is private. It MUST NOT be used anywhere outside its containing scope.
- classmethod assets_directory_path() Path[source]¶
Return the path on disk where the extension’s assets are located.
This may be anywhere in your Python package.
- classmethod comes_after() set[PluginIdentifier[Extension]][source]¶
Get the plugins that this plugin comes after.
The returned plugins come before this plugin.
- property filters: Mapping[str, Callable[[...], Any]]¶
Jinja2 filters provided by this extension.
Keys are filter names, and values are the filters themselves.
- classmethod new_default_configuration() CottonCandyConfiguration[source]¶
Create this extension’s default configuration.
- async classmethod new_for_project(project: Project) Self[source]¶
Create a new instance using the given project.
- property public_css_paths: Sequence[str]¶
The public URL paths to the CSS files to include in each HTML page.
- register_event_handlers(registry: EventHandlerRegistry) None[source]¶
Register event handlers with the project.