File tree Expand file tree Collapse file tree 1 file changed +10
-1
lines changed
pkg/pub_integration/lib/script Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -210,7 +210,16 @@ class PublishingScript {
210210 if (! pageHtml.contains ('made with love by dartdoc' )) {
211211 throw Exception ('Documentation page is not the output of dartdoc.' );
212212 }
213- if (! pageHtml.contains ('<a href="retry/retry-library.html">' )) {
213+ final retryLinks = [
214+ // generated by dartdoc 8.3
215+ '<a href="retry">retry</a>' ,
216+ // maybe a future dartdoc will generate this
217+ // see https://github.com/dart-lang/dartdoc/issues/3936
218+ '<a href="retry/">retry</a>' ,
219+ // generated by dartdoc 8.1
220+ '<a href="retry/retry-library.html">retry</a>' ,
221+ ];
222+ if (! retryLinks.any (pageHtml.contains)) {
214223 throw Exception ('Documentation page does not contain main library.' );
215224 }
216225 }
You can’t perform that action at this time.
0 commit comments