Mintlify.Core
1.5.4
dotnet add package Mintlify.Core --version 1.5.4
NuGet\Install-Package Mintlify.Core -Version 1.5.4
<PackageReference Include="Mintlify.Core" Version="1.5.4" />
<PackageVersion Include="Mintlify.Core" Version="1.5.4" />
<PackageReference Include="Mintlify.Core" />
paket add Mintlify.Core --version 1.5.4
#r "nuget: Mintlify.Core, 1.5.4"
#:package Mintlify.Core@1.5.4
#addin nuget:?package=Mintlify.Core&version=1.5.4
#tool nuget:?package=Mintlify.Core&version=1.5.4
Mintlify.Core
Mintlify.Core is a comprehensive .NET library for working with Mintlify documentation configuration files (docs.json). This package provides robust loading,
validation, manipulation, and generation capabilities for Mintlify documentation projects.
Brought to you by:
<a href="https://dotnetdocs.com"> <img src="https://raw.githubusercontent.com/CloudNimble/DotNetDocs/refs/heads/dev/src/CloudNimble.DotNetDocs.Docs/images/logos/dotnetdocs.light.svg" alt="DotNetDocs Logo" width="450" /> </a>
Features
- Complete Configuration Management: Load, validate, save, and manipulate
docs.jsonfiles - Intelligent Navigation Merging: Merge multiple documentation configurations with smart deduplication
- Directory-Based Navigation Generation: Automatically build navigation from folder structures
- URL Management: Apply prefixes and transformations to navigation URLs
- Type-Safe Models: Strongly-typed classes for all Mintlify configuration options
- Comprehensive Validation: Built-in validation with detailed error reporting
- Multiple Target Frameworks: Supports .NET 8+, .NET 9+, .NET 10+, and .NET Standard 2.0
Installation
Install via NuGet Package Manager:
dotnet add package Mintlify.Core
Or via Package Manager Console:
Install-Package Mintlify.Core
Quick Start
Loading and Working with docs.json
using Mintlify.Core;
// Load from file path
var manager = new DocsJsonManager("path/to/docs.json");
manager.Load();
// Or load from string content
var manager2 = new DocsJsonManager();
manager2.Load(jsonString);
// Access configuration
if (manager.IsLoaded)
{
Console.WriteLine($"Site name: {manager.Configuration.Name}");
Console.WriteLine($"Theme: {manager.Configuration.Theme}");
}
// Check for errors
if (manager.ConfigurationErrors.Any())
{
foreach (var error in manager.ConfigurationErrors)
{
Console.WriteLine($"{error.ErrorNumber}: {error.ErrorText}");
}
}
Creating Default Configuration
// Create a new documentation configuration
var config = DocsJsonManager.CreateDefault("My Documentation", "mint");
var manager = new DocsJsonManager();
manager.Configuration = config;
manager.Save("docs.json");
Merging Configurations
var mainManager = new DocsJsonManager("main-docs.json");
mainManager.Load();
var additionalManager = new DocsJsonManager("additional-docs.json");
additionalManager.Load();
// Merge configurations with intelligent navigation combining
mainManager.Merge(additionalManager.Configuration);
// Or merge only navigation (skip base properties)
mainManager.Merge(additionalManager.Configuration, combineBaseProperties: false);
Auto-Generating Navigation from Directory Structure
var manager = new DocsJsonManager();
manager.Configuration = DocsJsonManager.CreateDefault("My Docs");
// Scan directory and build navigation automatically
manager.PopulateNavigationFromPath("./docs", new[] { ".md", ".mdx" });
// Apply URL prefix to all navigation items
manager.ApplyUrlPrefix("/v2");
manager.Save("docs.json");
Key Features
Configuration Management
Load, validate, save, and manipulate docs.json files with intelligent error reporting.
Navigation Merging
Merge multiple documentation configurations with smart deduplication - perfect for multi-project solutions.
Directory-Based Generation
Automatically build navigation from your folder structure.
URL Transformation
Apply prefixes and transformations to navigation URLs for versioning or multi-tenancy.
Requirements
- .NET 8.0+ (for modern C# features and performance)
- .NET 9.0+ (fully supported)
- .NET 10.0+ (fully supported)
- .NET Standard 2.0 (for broader compatibility)
Dependencies
- System.Text.Json (for JSON serialization)
- System.CodeDom (for error reporting)
See Also
- Full Documentation - Complete guides and examples
- DotNetDocs CLI - Get up and running fast with our easy CLI
- DotNetDocs.Sdk - MSBuild SDK for .docsproj projects
- DotNetDocs.Core - Core documentation engine
- DotNetDocs.Mintlify - Enhanced Mintlify.com support
License
MIT License - see LICENSE for details.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net5.0 was computed. net5.0-windows was computed. net6.0 was computed. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 is compatible. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 is compatible. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
| .NET Core | netcoreapp2.0 was computed. netcoreapp2.1 was computed. netcoreapp2.2 was computed. netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
| .NET Standard | netstandard2.0 is compatible. netstandard2.1 was computed. |
| .NET Framework | net461 was computed. net462 was computed. net463 was computed. net47 was computed. net471 was computed. net472 was computed. net48 was computed. net481 was computed. |
| MonoAndroid | monoandroid was computed. |
| MonoMac | monomac was computed. |
| MonoTouch | monotouch was computed. |
| Tizen | tizen40 was computed. tizen60 was computed. |
| Xamarin.iOS | xamarinios was computed. |
| Xamarin.Mac | xamarinmac was computed. |
| Xamarin.TVOS | xamarintvos was computed. |
| Xamarin.WatchOS | xamarinwatchos was computed. |
-
.NETStandard 2.0
- EasyAF.Core (>= 4.0.1)
- System.CodeDom (>= 10.0.5)
-
net10.0
- EasyAF.Core (>= 4.0.1)
- System.CodeDom (>= 10.0.5)
-
net8.0
- EasyAF.Core (>= 4.0.1)
- System.CodeDom (>= 9.0.14)
-
net9.0
- EasyAF.Core (>= 4.0.1)
- System.CodeDom (>= 9.0.14)
NuGet packages (1)
Showing the top 1 NuGet packages that depend on Mintlify.Core:
| Package | Downloads |
|---|---|
|
DotNetDocs.Mintlify
Extensions for DotNetDocs that transform your .NET XML Doc Comments into beautiful Mintlify websites with smart navigation, context-aware icons, and rich MDX features. |
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 1.5.4 | 130 | 4/5/2026 |
| 1.5.3 | 122 | 3/23/2026 |
| 1.5.2 | 122 | 3/23/2026 |
| 1.5.1 | 120 | 3/23/2026 |
| 1.5.1-preview.4 | 61 | 3/23/2026 |
| 1.5.1-preview.3 | 59 | 3/23/2026 |
| 1.5.1-preview.2 | 64 | 3/15/2026 |
| 1.5.1-preview.1 | 69 | 3/15/2026 |
| 1.5.0 | 130 | 3/11/2026 |
| 1.5.0-preview.2 | 64 | 3/11/2026 |
| 1.5.0-preview.1 | 71 | 3/10/2026 |
| 1.4.1 | 128 | 2/28/2026 |
| 1.4.1-preview.2 | 64 | 2/28/2026 |
| 1.4.1-preview.1 | 68 | 2/28/2026 |
| 1.4.0 | 130 | 2/28/2026 |
| 1.3.1-preview.1 | 73 | 2/27/2026 |
| 1.3.0 | 146 | 1/16/2026 |
| 1.3.0-preview.2 | 72 | 1/16/2026 |
| 1.2.1-preview.1 | 71 | 1/12/2026 |
| 1.2.0 | 232 | 12/19/2025 |