Definition
Assembly: CloudNimble.DotNetDocs.Core.dll Namespace: CloudNimble.DotNetDocs.Core.Configuration Inheritance: System.ObjectSyntax
Summary
Builder for configuring the DotNetDocs documentation pipeline.Remarks
Provides a fluent API for registering renderers, enrichers, transformers, and configuring the documentation pipeline context.Constructors
.ctor
Initializes a new instance of the DotNetDocsBuilder class.Syntax
Parameters
| Name | Type | Description | 
|---|---|---|
services | Microsoft.Extensions.DependencyInjection.IServiceCollection | The service collection to configure. | 
Exceptions
| Exception | Description | 
|---|---|
ArgumentNullException | Thrown when services is null. | 
Methods
AddEnricher
Adds a custom enricher to the pipeline.Syntax
Returns
Type:CloudNimble.DotNetDocs.Core.Configuration.DotNetDocsBuilder
The builder for chaining.
Type Parameters
TEnricher- The type of enricher to add.
Examples
Remarks
Enrichers add conceptual content to documentation entities.AddRenderer
Adds a custom renderer to the pipeline.Syntax
Returns
Type:CloudNimble.DotNetDocs.Core.Configuration.DotNetDocsBuilder
The builder for chaining.
Type Parameters
TRenderer- The type of renderer to add.
Examples
Remarks
Renderers generate output in specific formats (e.g., Markdown, JSON, YAML).AddTransformer
Adds a custom transformer to the pipeline.Syntax
Returns
Type:CloudNimble.DotNetDocs.Core.Configuration.DotNetDocsBuilder
The builder for chaining.
Type Parameters
TTransformer- The type of transformer to add.
Examples
Remarks
Transformers modify the documentation model before rendering.ConfigureContext
Configures the ProjectContext for the pipeline.Syntax
Parameters
| Name | Type | Description | 
|---|---|---|
configure | System.Action<CloudNimble.DotNetDocs.Core.ProjectContext> | Action to configure the ProjectContext. | 
Returns
Type:CloudNimble.DotNetDocs.Core.Configuration.DotNetDocsBuilder
The builder for chaining.
Examples
UseJsonRenderer
Adds the JSON renderer to the pipeline.Syntax
Parameters
| Name | Type | Description | 
|---|---|---|
configure | System.Action<CloudNimble.DotNetDocs.Core.Renderers.JsonRendererOptions>? | Optional action to configure JsonRendererOptions. | 
Returns
Type:CloudNimble.DotNetDocs.Core.Configuration.DotNetDocsBuilder
The builder for chaining.
Examples
UseMarkdownRenderer
Adds the Markdown renderer to the pipeline.Syntax
Returns
Type:CloudNimble.DotNetDocs.Core.Configuration.DotNetDocsBuilder
The builder for chaining.
Examples
Remarks
Also registers MarkdownXmlTransformer to process XML documentation tags.UseYamlRenderer
Adds the YAML renderer to the pipeline.Syntax
Returns
Type:CloudNimble.DotNetDocs.Core.Configuration.DotNetDocsBuilder
The builder for chaining.