API

docsnav::render_auto_tree(section, current_path, title) renders the whole menu; docsnav::find_root(ancestors, self_path, self_is_root) walks up from the current page/section to locate the nearest ancestor (or itself) marked extra.docs_root = true, which is where the tree starts.