A documentation generator for Dart. This tool creates static HTML files generated from Dart source code.

Build Status Build status Coverage Status

Installing dartdoc

Run pub global activate dartdoc to install dartdoc.

Running dartdoc

Run dartdoc from the root directory of package. By default, the documentation is geterated to the doc/api/ directory.


What about docgen / dartdocgen / dartdoc-viewer?

This tool intends to replace our existing set of API documentation tools. We'll take the best ideas and implementations from our existing doc tools and fold them into dartdoc.

Can I help?

Yes! Start by using the tool and filing issues and requests. If you want to contribute, check out the issue tracker and see if there's an issue that you're passionate about. If you want to add a new feature that's not yet in the issue tracker, start by opening an issue. Thanks!

Generating documentation for Dart SDK

If you want to generatr documentation for the SDK, run dartdoc with the following command line arguments:

  • --dart-sdk /pathTo/dart-sdk (optional)
  • --sdk-docs

Issues and bugs

Please file reports on the GitHub Issue Tracker.


You can view our license here.


A library containing an abstract documentation generator.
Attempts to make it possible to load resources, independent of how the Dart app is run. [...]