- Home
- /
- Documentation
- /
- DMBDocumentationBuilder
- /
- Getting Started
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.
dotnet add package DMBDocumentationBuilder2. Enable XML Documentation
For rich API pages, each documented project should generate XML documentation files. Add this to every project you want to document.
<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.
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.
DocumentationLauncher.Run(
"../../../../labs_idemobi_com",
groups
);Key Classes
Understand how it works under the hood?
Understand how DocumentationBuilder extracts and normalizes project API data.
Architecture