Expand description
Navigation index — either parsed from _index.yaml under the
doc-tree root or synthesised from a recursive .md file scan.
§YAML shape
title: My Tool Documentation
sections:
- title: Getting started
pages:
- { path: intro.md, title: Introduction }
- { path: install.md, title: Install }
- title: Reference
pages:
- { path: config.md, title: Configuration reference }§Fallback scan
When no _index.yaml exists under the root, the index is derived
by:
- Walking the tree for
.mdfiles (skipping_index.yaml). - For each page, parsing the first
# Headingline as its title; pages with no heading use their filename as a fallback. - Grouping by top-level directory into sections; pages directly under the root go into an “Overview” section.
Structs§
- Index
- Parsed document index.
- Index
Entry - One navigable page.
- Index
Section - A named group of pages, shown as an expandable heading in the browser’s left pane.
Functions§
- parse_
index - Parse an
_index.yamlbody. Paths containing..or absolute components are rejected. - scan_
index - Synthesise an index from a list of
(relative_path, body)pairs. Pairs should be paths under the doc-tree root.