Skip to main content

Module render

Module render 

Source
Expand description

render — data structures for the structural views, no output formatting.

Tree groups the store by layer → type → file; Outline groups one file by its ## sections. Both are pure data; dbmd-cli formats them to text or JSON. Keeping formatting out of the library lets every db.md-aware tool render these structures its own way.

Structs§

Outline
One file’s section hierarchy: the file path plus its ## sections and their sub-sections.
Tree
The store as a tree, grouped layer → type-folder → file.
TreeLayer
A layer branch of a Tree.
TreeTypeFolder
A type-folder branch of a Tree, aggregated across date-shards.

Functions§

outline
Build the Outline of a single file from its ## (and deeper) sections. Loop-fast (one file).
tree
SWEEP. Build a Tree of the whole store (layer → type-folder → file), optionally scoped to one layer and/or one type. Off the interactive loop.