SearchIndexGenerator

Generates a SearchIndex from the subdocument graph of a multi-document project. The generated index is intended to be serialized to JSON and used for client-side search.

Functions

Link copied to clipboard

Generates a search index from the given subdocument graph. Each subdocument becomes a SearchEntry containing its URL, metadata, and headings.