talira

API documentation generator for Dart, behind dart doc

open sourceBSD-3-Clausefree

dartdoc is the Dart project's API documentation generator: it turns a Dart package's doc comments into static HTML, and the Dart SDK runs it as the dart doc command. It documents every public library of a package into doc/api, with search and navigation, and reads a dartdoc_options.yaml file for categories, reusable macros, external tools that filter parts of the docs, injected HTML and links to the source.

Problems it solves

  • generate HTML API documentation from my Dart package's doc comments
  • build browsable docs for a Flutter package before publishing it
  • reuse the same documentation snippet across many Dart classes

Features

  • dart doc in the Dart SDK
  • static HTML API docs with search and navigation
  • categories and sub-categories from doc comment tags
  • reusable doc macros with templates
  • external tools that filter parts of the docs
  • links from docs to the source code

Limitations

  • The package must analyze without errors before docs can be generated.1
  • The generated docs need an HTTP server for navigation and search to work.1

Alternatives

The same job

These do what dartdoc does.

  1. JSDoc API documentation generator for JavaScript from comments in the code
  2. Doxygen Code documentation. Automated. Free, open source, cross-platform.
  3. Dokka API documentation engine for Kotlin
  4. DocFX Static site generator for .NET API documentation
  5. phpDocumentor API documentation generator for PHP

Compare dartdoc with the top 3