mirror of
https://github.com/flutter/flutter.git
synced 2025-06-03 00:51:18 +00:00
Bump dartdoc to 0.32.3 and tighten doc quality checker (#63111)
This commit is contained in:
parent
b7a1a397b2
commit
e49a57660d
@ -37,7 +37,7 @@ function script_location() {
|
||||
|
||||
function generate_docs() {
|
||||
# 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
|
||||
# a custom index.html, placing everything into dev/docs/doc.
|
||||
|
@ -85,14 +85,9 @@ void checkForUnresolvedDirectives(String htmlOutputPath) {
|
||||
|
||||
int _scanFile(File file) {
|
||||
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));
|
||||
|
||||
// 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) {
|
||||
stderr.writeln('Found unresolved dartdoc directives in ${file.path}:');
|
||||
for (final String match in matches) {
|
||||
|
Loading…
Reference in New Issue
Block a user