Hwaro::Models::VersionsConfig
[versions] — versioned documentation. Disabled (no effect on the
build) until at least one [[versions.list]] entry is declared.
Constants
Constructors
Instance methods
The version owning a content-relative path (file or directory), or nil for unversioned content. Version directories never nest (the loader rejects that), so at most one entry matches.
The single latest = true entry (the loader guarantees exactly one
when the list is non-empty).
Latest version renders at its parent's natural URL (/docs/); older
versions get a /<name>/ segment. When false every version keeps its
segment and the parent URL becomes a redirect stub to the latest.
Latest version renders at its parent's natural URL (/docs/); older
versions get a /<name>/ segment. When false every version keeps its
segment and the parent URL becomes a redirect stub to the latest.
Older versions emit <meta name="robots" content="noindex"> next to a
canonical pointing at the latest counterpart (when one exists).
Older versions emit <meta name="robots" content="noindex"> next to a
canonical pointing at the latest counterpart (when one exists).
Site-relative root URL of version (no base_path), e.g. "/docs/",
"/docs/v1/", "/ko/docs/v1/" — lang_prefix is "" or "/".
"latest" | "all": which versions taxonomy term pages collect from.
Build-time, not config: the URL of each version root section actually
in the page set, keyed by {version name, lang prefix ("" or "/")}.
Filled by Content::Versions.link! before rendering.