Memoir_content.RoutingPath resolution and routing.
Single source of truth for mapping a content file to its canonical site URL and its generated output path, and for classifying a file's content type.
Canonical site URL for a content file. Strips the content/ and pages/ wrappers and the extension, normalises separators, and canonicalises section index files (no trailing "/index", no doubled leading slash):
"content/pages/index.md" -> "/""content/pages/about/index.md" -> "/about""content/pages/blog/foo.md" -> "/blog/foo"Output file path under output_dir for a content file:
output_dir/index.htmloutput_dir/<section>/index.htmloutput_dir/<path>/index.htmlval classify : string -> Content_types.content_typeClassify a content file by the directory it lives in. Extension-less files are treated as raw assets (Content_types.content_type.Asset).
Resolve a request URL to an existing file under site_root (the generated output directory), or None if nothing matches. The serve-time inverse of path_to_output_path: same clean-URL → <path>/index.html convention, a .html fallback, and static//pages/ search subtrees.