Moka.Docs.Core
1.4.0
dotnet add package Moka.Docs.Core --version 1.4.0
NuGet\Install-Package Moka.Docs.Core -Version 1.4.0
<PackageReference Include="Moka.Docs.Core" Version="1.4.0" />
<PackageVersion Include="Moka.Docs.Core" Version="1.4.0" />
<PackageReference Include="Moka.Docs.Core" />
paket add Moka.Docs.Core --version 1.4.0
#r "nuget: Moka.Docs.Core, 1.4.0"
#:package Moka.Docs.Core@1.4.0
#addin nuget:?package=Moka.Docs.Core&version=1.4.0
#tool nuget:?package=Moka.Docs.Core&version=1.4.0
MokaDocs
The modern documentation site generator built for .NET libraries.
Point MokaDocs at your .csproj and docs/ folder — it auto-discovers your API surface, parses XML docs, and generates a complete documentation site.
Quick Start
dotnet tool install -g mokadocs
mokadocs init
mokadocs serve
Features
- C# API Reference — Auto-generated from assemblies with full type info, XML comments, and
<inheritdoc/>support - Markdown Guides — Admonitions, tabs, code groups, task lists, footnotes, and more
- Interactive REPL — Run C# code directly in the browser (Roslyn-powered)
- Full-Text Search — Client-side instant search with
Ctrl+K/Cmd+K - 5 Color Themes — Ocean, Emerald, Violet, Amber, Rose with live switcher
- 7 Code Themes — Catppuccin, GitHub, Dracula, One Dark, Nord
- Dark/Light Mode — Auto-detects system preference
- Hot Reload — File watcher + WebSocket for instant preview
- Versioning — Multi-version docs with dropdown selector
- ASP.NET Core Integration — Embed docs directly in your web app
ASP.NET Core Integration
var builder = WebApplication.CreateBuilder(args);
builder.Services.AddMokaDocs(options =>
{
options.Title = "My API Docs";
options.Assemblies = [typeof(MyService).Assembly];
});
var app = builder.Build();
app.MapMokaDocs("/docs");
app.Run();
Configuration
site:
title: "My Library"
description: "Documentation for My Library"
content:
docs: ./docs
projects:
- path: ./src/MyLibrary/MyLibrary.csproj
theme:
options:
primaryColor: "#0ea5e9"
codeTheme: catppuccin-mocha
codeStyle: macos
plugins:
- name: mokadocs-repl
- name: mokadocs-changelog
Packages
| Package | Description |
|---|---|
Moka.Docs.Core |
Core models, configuration, and interfaces |
Moka.Docs.CLI |
Command-line tool (mokadocs) |
Moka.Docs.Engine |
Build pipeline and phase orchestration |
Moka.Docs.Parsing |
Markdown parsing with custom extensions |
Moka.Docs.CSharp |
Roslyn-based C# API analysis |
Moka.Docs.Rendering |
Scriban template engine |
Moka.Docs.Themes |
Theme system and default theme |
Moka.Docs.Plugins |
Plugin system (REPL, Blazor, OpenAPI, Changelog) |
Moka.Docs.Serve |
Dev server with hot reload |
Moka.Docs.AspNetCore |
ASP.NET Core middleware integration |
Moka.Docs.Search |
Client-side search index generation |
Moka.Docs.Versioning |
Multi-version documentation support |
Links
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | 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. |
-
net10.0
- Microsoft.Extensions.DependencyInjection.Abstractions (>= 10.0.5)
- Microsoft.Extensions.Logging.Abstractions (>= 10.0.5)
- Microsoft.FeatureManagement (>= 4.4.0)
- System.IO.Abstractions (>= 22.1.0)
- YamlDotNet (>= 16.3.0)
-
net9.0
- Microsoft.Extensions.DependencyInjection.Abstractions (>= 10.0.5)
- Microsoft.Extensions.Logging.Abstractions (>= 10.0.5)
- Microsoft.FeatureManagement (>= 4.4.0)
- System.IO.Abstractions (>= 22.1.0)
- YamlDotNet (>= 16.3.0)
NuGet packages (11)
Showing the top 5 NuGet packages that depend on Moka.Docs.Core:
| Package | Downloads |
|---|---|
|
Moka.Docs.Rendering
HTML/template rendering with Scriban for MokaDocs. |
|
|
Moka.Docs.Themes
Default themes, theme engine, and asset pipeline for MokaDocs. |
|
|
Moka.Docs.Parsing
Source parsing: XML docs, Markdown, YAML front matter for MokaDocs. |
|
|
Moka.Docs.CSharp
Roslyn-based C# project analysis and API model extraction for MokaDocs. |
|
|
Moka.Docs.Engine
Build pipeline orchestration for MokaDocs. |
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 1.4.0 | 13 | 4/9/2026 |
| 1.3.8 | 71 | 4/8/2026 |
| 1.3.7 | 74 | 4/8/2026 |
| 1.3.6 | 77 | 4/8/2026 |
| 1.3.5 | 77 | 4/8/2026 |
| 1.3.1 | 70 | 4/8/2026 |
| 1.3.0 | 76 | 4/8/2026 |
| 1.2.3 | 130 | 4/6/2026 |
| 1.2.2 | 134 | 4/6/2026 |
| 1.2.0 | 140 | 4/6/2026 |
| 1.1.2 | 164 | 4/6/2026 |
| 1.1.1 | 165 | 4/6/2026 |
| 1.1.0 | 164 | 4/6/2026 |
| 1.0.7 | 197 | 3/27/2026 |
| 1.0.6 | 192 | 3/27/2026 |
| 1.0.5 | 193 | 3/27/2026 |
| 1.0.4 | 207 | 3/27/2026 |
| 1.0.3 | 187 | 3/26/2026 |
| 1.0.2 | 191 | 3/25/2026 |
| 1.0.1 | 198 | 3/25/2026 |