Unverified Commit 66e3f9d8 authored by jcollins-g's avatar jcollins-g Committed by GitHub

Upgrade dartdoc to 0.17.0 (#14929)

parent 29d59e3c
......@@ -21,7 +21,7 @@ if [ -d "$FLUTTER_PUB_CACHE" ]; then
fi
# Install dartdoc.
bin/cache/dart-sdk/bin/pub global activate dartdoc 0.16.0
bin/cache/dart-sdk/bin/pub global activate dartdoc 0.17.0
# This script generates a unified doc set, and creates
# a custom index.html, placing everything into dev/docs/doc.
......
......@@ -115,6 +115,11 @@ Future<Null> main(List<String> arguments) async {
if (args['json']) {
dartdocBaseArgs.add('--json');
}
if (args['validate-links']) {
dartdocBaseArgs.add('--validate-links');
} else {
dartdocBaseArgs.add('--no-validate-links');
}
// Generate the documentation.
final List<String> dartdocArgs = <String>[]..addAll(dartdocBaseArgs)..addAll(<String>[
'--header', 'styles.html',
......@@ -179,6 +184,8 @@ ArgParser _createArgsParser() {
help: 'Run dartdoc in checked mode.');
parser.addFlag('json', negatable: true,
help: 'Display json-formatted output from dartdoc and skip stdout/stderr prefixing.');
parser.addFlag('validate-links', negatable: true,
help: 'Display warnings for broken links generated by dartdoc (slow)');
return parser;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment