Getting Started — DocumentationBuilder

Generate the documentation database consumed by DocumentationViewer.

1. Install the NuGet Package

DMBDocumentationBuilder is a build-time tool. Add it to your generator or pre-build project — not the website itself.

Install DMBDocumentationBuilder
dotnet add package DMBDocumentationBuilder

2. Enable XML Documentation

For rich API pages, each documented project should generate XML documentation files. Add this to every project you want to document.

Project file (.csproj)
<PropertyGroup>
  <GenerateDocumentationFile>true</GenerateDocumentationFile>
</PropertyGroup>

3. Define Project Descriptors

Create documentation descriptors for the projects to extract. Keep display names stable because they become part of the generated documentation structure and URL routes.

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

4. Run the Launcher

Run the documentation launcher against the target website. The launcher extracts API metadata and writes the SQLite database and sidebar provider into the website.

Generator entry point
DocumentationLauncher.Run(
    "../../../../labs_idemobi_com",
    groups
);
Key Classes
DocumentationLauncher.Run(...)
DocumentationProjectDescriptor
DocumentationGroup
GenerateDocumentationFile
PreBuilding project

Understand how it works under the hood?

Understand how DocumentationBuilder extracts and normalizes project API data.

Architecture