- Home
- /
- Documentation
- /
- DMBDocumentationViewer
- /
- Rendering Pipeline
Rendering Pipeline — DocumentationViewer
From generated documentation data to routed pages and MCP tools.
Receive Request
The pipeline starts when a user opens a documentation route, or when an MCP client calls one of the registered documentation tools. MVC routes identify the documentation group, package, namespace or object requested.
// Documentation route examples
// /Documentation/Index
// /Documentation/ShowGroup?groupName=NuGet
// /Documentation/ShowNamespace?packageId=DMBPageBuilder&namespaceName=DMBPageBuilder
// /Documentation/ShowObject?objectId=42Query Documentation Data
The viewer reads generated SQLite documentation data and project context. Route values identify documentation scope. Generated database rows become viewer page models that are passed to Razor views.
// Controller queries the generated SQLite database
var namespaceData = _documentationService
.GetNamespace(packageId, namespaceName);
var viewModel = new NamespaceViewModel(namespaceData);Build Navigation & Render Page
The registered sidebar provider supplies the documentation navigation for the current context. Sidebar provider output becomes BootstrapBuilder navigation sections. Razor, BootstrapBuilder and PageBuilder produce the final documentation page.
// The sidebar provider is registered at startup
// It maps documentation structure into navigation items
DocumentationSidebarProvider.Register();Expose MCP Tools
MCP tools provide documentation lookup capabilities through the configured endpoint. Connected agents can query API summaries, method signatures, namespace structures and cross-package relationships.
// MCP tools are registered by DocumentationViewerConfiguration
// Endpoint mapped by UseApp(app)
// Tools: GetNamespace, GetObject, SearchDocumentation …AI-Ready Documentation
MCP tools make the documentation database queryable by AI agents — no scraping, no guessing, just structured API context on demand.
Browse the API Reference
See the pipeline in action by navigating the live documentation.
API Reference