CHAPTER 9

image

Generating Dart Code Documentation

At the time of writing this book we are in the newest 1.7 Dart stable version. In this chapter we want to show the tools available to generate code documentation in Dart. We’re going to talk about docgen (Documentation Generator). We’ll cover docgen tool and its options, and we’ll use it to generate the documentation of a simple library.

docgen

This tool came to replace the previous Dart documentation generator tool, called dartdoc, and this new tool changes completely the process of documentation generation. Dartdoc generated HTML static documentation files from the Dart files you selected, however ...

Get Web Programming with Dart now with the O’Reilly learning platform.

O’Reilly members experience live online training, plus books, videos, and digital content from nearly 200 publishers.