Rendering Pipeline — DocumentationBuilder

From source projects to a generated documentation database.

1

Define Groups

The generator declares documentation groups and project descriptors. Each descriptor identifies a source project, its package name, version and extraction mode. Keep display names stable — they become part of the documentation URL routes.

DocumentationProjectDescriptor pageBuilder = new()
{
    DisplayName = "DMBPageBuilder",
    ProjectFilePath = "../../../../DMBPageBuilder/Source/DMBPageBuilder.csproj"
};

DocumentationGroup nugetGroup = new("NuGet")
{
    Projects = { pageBuilder, bootstrapBuilder }
};
2

Read Project Context

DocumentationBuilder loads project files, XML documentation and compile items for each descriptor. Roslyn-backed extraction produces documentation objects, namespace models and group structures from the source projects.

<!-- Enable XML docs on each documented project -->
<PropertyGroup>
  <GenerateDocumentationFile>true</GenerateDocumentationFile>
</PropertyGroup>
3

Extract &amp; Normalize Symbols

Types, members, namespaces, signatures, XML comments and keywords are extracted into documentation models. Normalized documentation is persisted into the target SQLite database and the generated sidebar provider is written.

// Extracts namespaces, types, members, comments and keywords
// Writes SQLite output + generated sidebar source
DocumentationLauncher.Run(
    "../../../../labs_idemobi_com",
    groups
);

Documentation Ready for Runtime

The generated database and sidebar provider are placed directly in the target website. DocumentationViewer reads that output at runtime — no deployment step required beyond building the website.

// After generation, the website registers the sidebar
using DocumentationBuilders.Documentation;
DocumentationSidebarProvider.Register();
Build Once, Serve Always

The generation pipeline runs at build or release time — the website serves pre-generated data with no runtime extraction overhead.

Learn how DocumentationViewer consumes the data

Learn how DocumentationViewer consumes the generated database at runtime.

DocumentationViewer