Architecture — DocumentationBuilder

A build-time documentation extraction layer based on project context.

1. Project Context Layer

DMBDocumentationBuilder is the generation layer of the documentation system. It reads .NET project context, extracts structured API information and writes the data needed by DocumentationViewer at runtime. DocumentationBuilder should run before the website serves documentation — it owns extraction, normalization, database generation and sidebar source creation.

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

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

2. Extraction Layer

Uses Roslyn-oriented models to extract namespaces, types, members, signatures, XML comments and keywords from the target projects. Extracted objects are normalized into documentation models before being persisted. Each documented project must have GenerateDocumentationFile enabled for full XML comment extraction.

Project XML documentation
<PropertyGroup>
  <!-- Enable XML docs on every documented project -->
  <GenerateDocumentationFile>true</GenerateDocumentationFile>
</PropertyGroup>

3. Output Layer

Writes a SQLite documentation database and generated sidebar sources directly into the target website folder. DocumentationViewer reads this output at runtime — no deployment step required beyond building the website. The PreBuilding project in this repository is the reference generation pipeline.

Generation entry point
// One call writes the database + sidebar provider
DocumentationLauncher.Run(
    "../../../../labs_idemobi_com",
    groups
);
Tech Stack
Backend: .NET 10 / Roslyn
Output: SQLite documentation database
Architecture: Build-time generation pipeline
Integration: Pre-build / release step

See it in action

Learn how the generation pipeline moves from source projects to a documentation database.

Rendering Pipeline