Expand description
Bridge from docgen’s document model to the docgen-bases engine: builds a
queryable Corpus of notes (frontmatter properties + file metadata + tags +
links) from the prepared docs, and re-exports the pieces the build needs.
This module owns the docgen-specific glue (reading PreparedDocs, scanning
#tags/[[wikilinks]] out of bodies); docgen-bases itself stays free of any
docgen types.
Structs§
- File
Facts - Filesystem facts a caller supplies per doc (docgen-core does no I/O). Times are
epoch-milliseconds;
Nonewhen unavailable (git checkouts don’t preserve mtime, so this is best-effort).
Functions§
- build_
corpus - Build a corpus from all prepared (page) docs.
factssupplies per-doc file metadata by docs-relative path. - note_
from_ doc - Build a
Notefrom a prepared doc plus its file facts.