The modern documentation site generator built for .NET libraries.
A modern documentation toolkit built for .NET developers
Auto-generate API docs from your .NET assemblies with full type information and XML doc comments.
Ship with a polished default theme or build your own with Scriban templates and CSS variables.
Client-side full-text search with zero external dependencies. Works offline and loads instantly.
Automatic light and dark mode with system preference detection and manual toggle support.
Maintain docs for multiple versions side by side. Readers can switch between releases seamlessly.
Extend the build pipeline with custom plugins for content transforms, assets, and more.
Get a docs site running in under a minute
# mokadocs.yaml
title: My Project
description: Docs for my .NET library
theme: default
nav:
- label: Getting Started
path: docs/getting-started.md
- label: API Reference
path: api/
Install the MokaDocs CLI as a .NET global tool:
dotnet tool install -g mokadocs
Create a new documentation project in your library's directory:
mokadocs init
Launch the dev server with hot reload:
mokadocs serve
| Package | Description |
|---|---|
Moka.Docs.Core |
Core models, configuration, and interfaces |
Moka.Docs.CLI |
Command-line interface (mokadocs tool) |
Moka.Docs.Engine |
Build pipeline and phase orchestration |
Moka.Docs.Parsing |
Markdown parsing with custom extensions |
Moka.Docs.Rendering |
Scriban template engine integration |
Moka.Docs.CSharp |
Roslyn-based C# API analysis |
Moka.Docs.Themes |
Theme management and default theme |
Moka.Docs.Plugins |
Plugin system and built-in plugins |
Moka.Docs.Search |
Client-side search index generation |
Moka.Docs.Serve |
Dev server with hot reload and REPL |
Moka.Docs.Versioning |
Multi-version documentation support |
Moka.Docs.AspNetCore |
ASP.NET Core integration middleware |