betty.project.extension.demo package

Submodules

Module contents

Provide demonstration site functionality.

final class betty.project.extension.demo.Demo[source]

Bases: ShorthandPluginBase, NavigationLinkProvider, Extension

Provide demonstration site functionality.

classmethod depends_on() set[PluginIdentifier[Extension]][source]

The plugins this one depends on.

register_event_handlers(registry: EventHandlerRegistry) None[source]

Register event handlers with the project.

The secondary navigation links.

async betty.project.extension.demo.generate_with_cleanup(project: Project) None[source]

Generate a demonstration site, and clean up the project directory on any errors.

This is internal. It MAY be used anywhere in Betty’s source code, but MUST NOT be used by third-party code.