Skip to main content

Module bases

Module bases 

Source
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§

FileFacts
Filesystem facts a caller supplies per doc (docgen-core does no I/O). Times are epoch-milliseconds; None when unavailable (git checkouts don’t preserve mtime, so this is best-effort).

Functions§

build_corpus
Build a corpus from all prepared (page) docs. facts supplies per-doc file metadata by docs-relative path.
note_from_doc
Build a Note from a prepared doc plus its file facts.