Version

Welcome to Kampose

Kampose /kam-pohz/ is a cross-platform command-line documentation composer for .NET projects. It combines assembly metadata, XML documentation comments, and conceptual topics, then renders them through configurable Handlebars themes.

Overview

Kampose generates API reference for libraries, frameworks, and internal APIs. It can also combine that reference with guides and tutorials, or build a topic-only documentation site without assemblies.

Auditing can report missing or incomplete XML documentation and verify referenced URLs. Configuration controls which checks run and whether reported issues stop the build.

Key Capabilities

Getting Started

Installation

Install Kampose as a .NET Global Tool:

dotnet tool install --global kampose

To update to the latest version, run:

dotnet tool update --global kampose

Basic Usage

Follow these simple steps to generate your first API documentation with Kampose.

Step 1: Enable XML documentation generation in your project file:

<PropertyGroup>
    <GenerateDocumentationFile>true</GenerateDocumentationFile>
</PropertyGroup>

Step 2: Create a configuration file (kampose.json) in your project root:

{
    "$schema": "https://kampute.github.io/kampose/json-schemas/configuration.schema.json",
    "convention": "dotNet",
    "outputDirectory": "docs",
    "assemblies": ["bin/Release/**/*.dll"],
    "theme": "classic"
}

For more configuration options and examples, refer to the Configuration guide.

Step 3: Build your project and generate documentation:

dotnet build -c Release
kampose build

For detailed usage instructions and examples, see the Command-Line Interface guide.

Guide to This Documentation

This guide organizes Kampose's documentation into key areas to help you navigate and find the information you need efficiently.

Commands and Configuration

Integration and Automation

Writing Documentation

Customizing Output

Support and Community

Kampose is an open-source project released under the MIT License. Contributions, bug reports, and feature requests are welcome.

Acknowledgments

Kampose is built on outstanding open-source projects maintained by the .NET and broader development community:

The dedication and expertise of these project maintainers and contributors make Kampose possible. Thank you to everyone who contributes to the open-source ecosystem.