talira

API documentation engine for Kotlin

open sourceApache-2.0free

Dokka is JetBrains' API documentation engine for Kotlin. It reads Kotlin's KDoc comments and Java's Javadoc comments, so it handles mixed-language projects, and generates documentation as its own modern HTML, as Java's Javadoc HTML, or as GitHub Flavored or Jekyll Markdown. It runs as a Gradle or Maven plugin or from the command line, and its output and behaviour can be extended with plugins. Libraries such as kotlinx.coroutines, Ktor and OkHttp publish their API reference with it.

Problems it solves

  • generate API reference docs from my Kotlin code comments
  • publish HTML docs for my Kotlin library
  • one documentation site for a project mixing Kotlin and Java

Features

  • reads KDoc and Javadoc comments
  • HTML, Javadoc and Markdown output
  • Gradle and Maven plugins and a CLI
  • extensible with plugins

Limitations

  • Its stability level is Beta in Kotlin's component stability scale.1

Alternatives

The same job

These do what Dokka does.

  1. JSDoc API documentation generator for JavaScript from comments in the code
  2. Doxygen Code documentation. Automated. Free, open source, cross-platform.
  3. YARD A Ruby documentation tool
  4. TypeDoc Documentation generator for TypeScript projects
  5. phpDocumentor API documentation generator for PHP
  6. DocFX Static site generator for .NET API documentation

Compare Dokka with the top 3