- Home
- /
- Documentation
- /
- DMBDocumentationBuilder
- /
- Architecture
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.
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.
<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.
// One call writes the database + sidebar provider
DocumentationLauncher.Run(
"../../../../labs_idemobi_com",
groups
);Tech Stack
See it in action
Learn how the generation pipeline moves from source projects to a documentation database.
Rendering Pipeline