Functions
_get_markdown_engine_and_version
1
tuple[str, str | None]
▼
Determine configured markdown engine and resolve its library version.
_get_markdown_engine_and_version
1
tuple[str, str | None]
▼
def _get_markdown_engine_and_version(config: dict[str, Any]) -> tuple[str, str | None]
Parameters
| Name | Type | Description |
|---|---|---|
config |
dict[str, Any] |
Returns
tuple[str, str | None]
_get_capabilities
0
dict[str, bool]
▼
Detect runtime capabilities based on installed optional dependencies.
These ar…
_get_capabilities
0
dict[str, bool]
▼
def _get_capabilities() -> dict[str, bool]
Detect runtime capabilities based on installed optional dependencies.
These are checked once at build time and cached. Templates can use these to conditionally enable features (e.g., only emit search-index.json meta tag when lunr is installed and will generate the pre-built index).
Returns
dict[str, bool]
build_template_metadata
1
dict[str, Any]
▼
Build a curated, privacy-aware metadata dictionary for templates/JS.
Exposure …
build_template_metadata
1
dict[str, Any]
▼
def build_template_metadata(site: SiteLike) -> dict[str, Any]
Build a curated, privacy-aware metadata dictionary for templates/JS.
Exposure levels (via config['expose_metadata']):
- minimal: engine only
- standard: + theme, build timestamp, i18n basics
- extended: + rendering details (markdown/highlighter versions)
Parameters
| Name | Type | Description |
|---|---|---|
site |
SiteLike |
Returns
dict[str, Any]