pub fn resolve_theme(
platform_id: &str,
content: &Content,
global_config: &Config,
profile_default_theme: Option<&str>,
registry: &ThemeRegistry,
fallback: &Theme,
) -> ThemeExpand description
Resolve theme using 5-level resolution chain (similar to RFC-0005’s published resolution):
meta.toml[platforms.X].theme— per-content platform-specificmeta.toml.theme— per-content defaulttypub.toml[platforms.X].theme— global platform-specifictypub.toml.theme— global default- Profile
default_theme— hardcoded in profiles.toml
Falls back to the provided fallback theme if no match at any layer.