Skip to main content

load_docs

Function load_docs 

Source
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