pub fn load_docs(
assets: &Assets,
root: &str,
) -> Result<(Index, HashMap<String, String>)>Expand description
Walk <root>/ for .md files + an optional _index.yaml.
Returns the parsed Index and a path -> body map.
root is the asset-relative directory holding the doc tree
(commonly "docs"). A trailing / is tolerated.
ยงErrors
DocsError::RootMissingwhen no.mdpages and no_index.yamlare reachable underroot.DocsError::IndexMalformedfromparse_index.DocsError::Assetswhen an asset read fails.