Unverified Commit e49a5766 authored by Michael Goderbauer's avatar Michael Goderbauer Committed by GitHub

Bump dartdoc to 0.32.3 and tighten doc quality checker (#63111)

parent b7a1a397
...@@ -37,7 +37,7 @@ function script_location() { ...@@ -37,7 +37,7 @@ function script_location() {
function generate_docs() { function generate_docs() {
# Install and activate dartdoc. # Install and activate dartdoc.
"$PUB" global activate dartdoc 0.32.1 "$PUB" global activate dartdoc 0.32.3
# 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.
......
...@@ -85,14 +85,9 @@ void checkForUnresolvedDirectives(String htmlOutputPath) { ...@@ -85,14 +85,9 @@ void checkForUnresolvedDirectives(String htmlOutputPath) {
int _scanFile(File file) { int _scanFile(File file) {
assert(path.extension(file.path) == 'html'); assert(path.extension(file.path) == 'html');
Iterable<String> matches = _pattern.allMatches(file.readAsStringSync()) final Iterable<String> matches = _pattern.allMatches(file.readAsStringSync())
.map((RegExpMatch m ) => m.group(0)); .map((RegExpMatch m ) => m.group(0));
// TODO(goderbauer): Remove this exception when https://github.com/dart-lang/dartdoc/issues/1945 is fixed.
matches = matches
.where((String m) => m != '{@inject-html}')
.where((String m) => m != '{@end-inject-html}');
if (matches.isNotEmpty) { if (matches.isNotEmpty) {
stderr.writeln('Found unresolved dartdoc directives in ${file.path}:'); stderr.writeln('Found unresolved dartdoc directives in ${file.path}:');
for (final String match in matches) { for (final String match in matches) {
......
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