Hwaro::Content::Menus
Constants
SCHEME_URL_RE = /\A[a-z][a-z0-9+\-.]*:/i
True for absolute scheme URLs (http:, mailto:, tel:, …) and
protocol-relative //host. A bare scheme like mailto: used to be
treated as an internal path and rewritten to /mailto:…/.
Class methods
build(config : Models::Config, pages : Array(Models::Page), sections : Array(Models::Section)) : Hash(String, Hash(String, Array(Entry)))
Builds the full set of menu trees for every language the site
declares (the default language plus every [languages.*] key).
Deterministic by construction: config entries keep their file
declaration order, front-matter registrations are folded in
path-sorted order, and assemble_tree sorts every level by
{weight, name, identifier}.