mokadocs 1.4.0
There is a newer version of this package available.
See the version list below for details.
See the version list below for details.
dotnet tool install --global mokadocs --version 1.4.0
This package contains a .NET tool you can call from the shell/command line.
dotnet new tool-manifest
dotnet tool install --local mokadocs --version 1.4.0
This package contains a .NET tool you can call from the shell/command line.
#tool dotnet:?package=mokadocs&version=1.4.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
nuke :add-package mokadocs --version 1.4.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
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. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
This package has no dependencies.
| Version | Downloads | Last Updated |
|---|---|---|
| 1.4.1 | 116 | 4/10/2026 |
| 1.4.0 | 101 | 4/9/2026 |
| 1.3.8 | 96 | 4/8/2026 |
| 1.3.7 | 97 | 4/8/2026 |
| 1.3.6 | 90 | 4/8/2026 |
| 1.3.5 | 96 | 4/8/2026 |
| 1.3.1 | 92 | 4/8/2026 |
| 1.3.0 | 91 | 4/8/2026 |
| 1.2.3 | 103 | 4/6/2026 |
| 1.2.2 | 97 | 4/6/2026 |
| 1.2.0 | 104 | 4/6/2026 |
| 1.1.2 | 103 | 4/6/2026 |
| 1.1.1 | 101 | 4/6/2026 |
| 1.1.0 | 102 | 4/6/2026 |
| 1.0.7 | 136 | 3/27/2026 |
| 1.0.6 | 94 | 3/27/2026 |
| 1.0.5 | 99 | 3/27/2026 |
| 1.0.4 | 106 | 3/27/2026 |
| 1.0.3 | 97 | 3/26/2026 |
| 1.0.2 | 93 | 3/25/2026 |
Loading failed