Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
F
Front-End
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
abdullh.alsoleman
Front-End
Commits
37fafeec
Commit
37fafeec
authored
Apr 21, 2017
by
jcollins-g
Committed by
GitHub
Apr 21, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Dartdoc bot sanity flexibility (#9496)
* Have sanity check pass on old and new versions of flutter
parent
7a57d371
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
1 deletion
+18
-1
dartdoc.dart
dev/tools/dartdoc.dart
+18
-1
No files found.
dev/tools/dartdoc.dart
View file @
37fafeec
...
...
@@ -111,15 +111,32 @@ void createFooter(String footerPath) {
}
void
sanityCheckDocs
(
)
{
final
List
<
String
>
canaries
=
<
String
>[
// TODO(jcollins-g): remove old_sdk_canaries for dartdoc >= 0.10.0
final
List
<
String
>
oldSdkCanaries
=
<
String
>[
'
$kDocRoot
/api/dart.io/File-class.html'
,
'
$kDocRoot
/api/dart.ui/Canvas-class.html'
,
'
$kDocRoot
/api/dart.ui/Canvas/drawRect.html'
,
];
final
List
<
String
>
newSdkCanaries
=
<
String
>[
'
$kDocRoot
/api/dart-io/File-class.html'
,
'
$kDocRoot
/api/dart-ui/Canvas-class.html'
,
'
$kDocRoot
/api/dart-ui/Canvas/drawRect.html'
,
];
final
List
<
String
>
canaries
=
<
String
>[
'
$kDocRoot
/api/flutter_test/WidgetTester/pumpWidget.html'
,
'
$kDocRoot
/api/material/Material-class.html'
,
'
$kDocRoot
/api/material/Tooltip-class.html'
,
'
$kDocRoot
/api/widgets/Widget-class.html'
,
];
bool
oldMissing
=
false
;
for
(
String
canary
in
oldSdkCanaries
)
{
if
(!
new
File
(
canary
).
existsSync
())
{
oldMissing
=
true
;
break
;
}
}
if
(
oldMissing
)
canaries
.
addAll
(
newSdkCanaries
);
for
(
String
canary
in
canaries
)
{
if
(!
new
File
(
canary
).
existsSync
())
throw
new
Exception
(
'Missing "
$canary
", which probably means the documentation failed to build correctly.'
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment