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. |
.ctor Inherited
Inherited from
objectSyntax
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
Equals Inherited Virtual
Inherited from
objectSyntax
Parameters
| Name | Type | Description |
|---|---|---|
obj | object? | - |
Returns
Type:bool
Equals Inherited
Inherited from
objectSyntax
Parameters
| Name | Type | Description |
|---|---|---|
objA | object? | - |
objB | object? | - |
Returns
Type:bool
GetHashCode Inherited Virtual
Inherited from
objectSyntax
Returns
Type:int
GetType Inherited
Inherited from
objectSyntax
Returns
Type:System.Type
MemberwiseClone Inherited
Inherited from
objectSyntax
Returns
Type:object
ReferenceEquals Inherited
Inherited from
objectSyntax
Parameters
| Name | Type | Description |
|---|---|---|
objA | object? | - |
objB | object? | - |
Returns
Type:bool
ToString Inherited Virtual
Inherited from
objectSyntax
Returns
Type:string?
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.UseMintlifyRenderer Extension
Extension method from
CloudNimble.DotNetDocs.Core.Configuration.DotNetDocsMintlify_DotNetDocsBuilderExtensionsSyntax
Parameters
| Name | Type | Description |
|---|---|---|
builder | CloudNimble.DotNetDocs.Core.Configuration.DotNetDocsBuilder | The DotNetDocs pipeline builder. |
Returns
Type:CloudNimble.DotNetDocs.Core.Configuration.DotNetDocsBuilder
The builder for chaining.
Examples
Remarks
This method registers:UseMintlifyRenderer Extension
Extension method from
CloudNimble.DotNetDocs.Core.Configuration.DotNetDocsMintlify_DotNetDocsBuilderExtensionsSyntax
Parameters
| Name | Type | Description |
|---|---|---|
builder | CloudNimble.DotNetDocs.Core.Configuration.DotNetDocsBuilder | The DotNetDocs pipeline builder. |
configureMintlify | System.Action<CloudNimble.DotNetDocs.Mintlify.MintlifyRendererOptions> | Action to configure Mintlify options. |
Returns
Type:CloudNimble.DotNetDocs.Core.Configuration.DotNetDocsBuilder
The builder for chaining.
Examples
Remarks
This method registers:UseMintlifyRenderer Extension
Extension method from
CloudNimble.DotNetDocs.Core.Configuration.DotNetDocsMintlify_DotNetDocsBuilderExtensionsSyntax
Parameters
| Name | Type | Description |
|---|---|---|
builder | CloudNimble.DotNetDocs.Core.Configuration.DotNetDocsBuilder | The DotNetDocs pipeline builder. |
Returns
Type:CloudNimble.DotNetDocs.Core.Configuration.DotNetDocsBuilder
The builder for chaining.
Type Parameters
TRenderer- The type of Mintlify renderer to add.
Examples
Remarks
The renderer must inherit from MintlifyRenderer. This method also registers:UseMintlifyRenderer Extension
Extension method from
CloudNimble.DotNetDocs.Core.Configuration.DotNetDocsMintlify_DotNetDocsBuilderExtensionsSyntax
Parameters
| Name | Type | Description |
|---|---|---|
builder | CloudNimble.DotNetDocs.Core.Configuration.DotNetDocsBuilder | The DotNetDocs pipeline builder. |
configureMintlify | System.Action<CloudNimble.DotNetDocs.Mintlify.MintlifyRendererOptions> | Action to configure Mintlify options. |
Returns
Type:CloudNimble.DotNetDocs.Core.Configuration.DotNetDocsBuilder
The builder for chaining.
Type Parameters
TRenderer- The type of Mintlify renderer to add.
Examples
Remarks
The renderer must inherit from MintlifyRenderer. This method also registers:UseYamlRenderer
Adds the YAML renderer to the pipeline.Syntax
Returns
Type:CloudNimble.DotNetDocs.Core.Configuration.DotNetDocsBuilder
The builder for chaining.