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 ...@@ -21,7 +21,7 @@ if [ -d "$FLUTTER_PUB_CACHE" ]; then
fi fi
# Install dartdoc. # 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 # This script generates a unified doc set, and creates
# a custom index.html, placing everything into dev/docs/doc. # a custom index.html, placing everything into dev/docs/doc.
......
...@@ -115,6 +115,11 @@ Future<Null> main(List<String> arguments) async { ...@@ -115,6 +115,11 @@ Future<Null> main(List<String> arguments) async {
if (args['json']) { if (args['json']) {
dartdocBaseArgs.add('--json'); dartdocBaseArgs.add('--json');
} }
if (args['validate-links']) {
dartdocBaseArgs.add('--validate-links');
} else {
dartdocBaseArgs.add('--no-validate-links');
}
// Generate the documentation. // Generate the documentation.
final List<String> dartdocArgs = <String>[]..addAll(dartdocBaseArgs)..addAll(<String>[ final List<String> dartdocArgs = <String>[]..addAll(dartdocBaseArgs)..addAll(<String>[
'--header', 'styles.html', '--header', 'styles.html',
...@@ -179,6 +184,8 @@ ArgParser _createArgsParser() { ...@@ -179,6 +184,8 @@ ArgParser _createArgsParser() {
help: 'Run dartdoc in checked mode.'); help: 'Run dartdoc in checked mode.');
parser.addFlag('json', negatable: true, parser.addFlag('json', negatable: true,
help: 'Display json-formatted output from dartdoc and skip stdout/stderr prefixing.'); 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; 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