doc function

Future<void> doc(
  1. IShell shell, {
  2. String output = 'doc',
  3. String format = 'html',
})

Generates HTML documentation for the Dart Project into the specified output directory in the given format

format can be either md or html

since 0.0.1

Implementation

Future<void> doc(
  IShell shell, {
  String output = 'doc',
  String format = 'html',
}) async {
  await _whenDartProject('Doc', shell, () async {
    _log.info('Building Documentation...');
    shell.requireCommand('dartdoc');
    await shell.run('dartdoc --output $output --format $format');
  });
}