Skip to content

site_config

Shared website configuration and asset helpers.


canonical_url(path: 'str' = '') → str

Build a canonical absolute URL within the published site.


copy_deployable_assets(target_dir: 'Path') → None

Copy the website assets into a published directory root.


asset_paths() → dict[str, str]

Return relative asset paths for a page living at a site-area root.


minify_html_document(html: 'str') → str

Minify HTML while preserving inline CSS and JS semantics.


Typed access to shared site configuration.

__init__(
site_name: 'str',
site_description: 'str',
site_origin: 'str',
base_path: 'str',
custom_domain: 'str',
repository_url: 'str',
report_subpath: 'str',
docs_subpath: 'str',
brand: 'dict[str, str]'
) → None

Return the public site URL including the repository subpath.