Definition
Assembly: CloudNimble.DotNetDocs.Mintlify.dll Namespace: Microsoft.Extensions.DependencyInjection Inheritance: System.ObjectSyntax
Summary
Extension methods for registering Mintlify documentation services with dependency injection.Methods
AddMintlifyRenderer
Adds the Mintlify renderer to the service collection.Syntax
Parameters
Name | Type | Description |
---|---|---|
services | Microsoft.Extensions.DependencyInjection.IServiceCollection | The service collection. |
Returns
Type:Microsoft.Extensions.DependencyInjection.IServiceCollection
The service collection for chaining.
Examples
Remarks
Registers MintlifyRenderer as Scoped implementation of IDocRenderer. Also registers MarkdownXmlTransformer to process XML documentation tags.AddMintlifyRenderer
Adds a custom Mintlify renderer implementation to the service collection.Syntax
Parameters
Name | Type | Description |
---|---|---|
services | Microsoft.Extensions.DependencyInjection.IServiceCollection | The service collection. |
Returns
Type:Microsoft.Extensions.DependencyInjection.IServiceCollection
The service collection for chaining.
Type Parameters
TRenderer
- The type of Mintlify renderer to add.
Examples
Remarks
Registers the custom renderer as Scoped implementation of IDocRenderer. The renderer must inherit from MintlifyRenderer. Also registers MarkdownXmlTransformer to process XML documentation tags.AddMintlifyServices
Adds Mintlify documentation services including the renderer and DocsJsonManager.Syntax
Parameters
Name | Type | Description |
---|---|---|
services | Microsoft.Extensions.DependencyInjection.IServiceCollection | The service collection. |
Returns
Type:Microsoft.Extensions.DependencyInjection.IServiceCollection
The service collection for chaining.
Examples
Remarks
This method registers:AddMintlifyServices
Adds Mintlify documentation services with configuration options.Syntax
Parameters
Name | Type | Description |
---|---|---|
services | Microsoft.Extensions.DependencyInjection.IServiceCollection | The service collection. |
configureMintlify | System.Action<CloudNimble.DotNetDocs.Mintlify.MintlifyRendererOptions> | Action to configure Mintlify options. |
Returns
Type:Microsoft.Extensions.DependencyInjection.IServiceCollection
The service collection for chaining.