pub fn build_tree(docs: &[Doc]) -> Vec<TreeNode>Expand description
Build a name-sorted sidebar tree from documents, keyed off their slugs.
A folder’s index.md becomes the folder’s note (the folder links to it)
rather than a separate index child entry.