Skip to main content

doc_dir

Function doc_dir 

Source
pub fn doc_dir(path: &str) -> &str
Expand description

The directory of a repo path: everything up to and including the last / ("a/b/" for a/b/c.md, "" at the root). The reference’s path.replace(/[^/]*$/, "").