File tree Expand file tree Collapse file tree 4 files changed +12
-5
lines changed Expand file tree Collapse file tree 4 files changed +12
-5
lines changed Original file line number Diff line number Diff line change 1+ ## 0.9.3+1
2+ * [ bug] fix an issue with including duplicated libraries
3+
14## 0.9.3
25* [ enhancement] added support for URL-based search. If a query parameter named
36 "search" is passed, the page navigates to the first search result for its
Original file line number Diff line number Diff line change @@ -39,7 +39,7 @@ export 'src/package_meta.dart';
3939
4040const String name = 'dartdoc' ;
4141// Update when pubspec version changes.
42- const String version = '0.9.3' ;
42+ const String version = '0.9.3+1 ' ;
4343
4444final String defaultOutDir = p.join ('doc' , 'api' );
4545
@@ -135,7 +135,7 @@ class DartDoc {
135135
136136 List <LibraryElement > _parseLibraries (
137137 List <String > files, List <String > includeExternals) {
138- Set <LibraryElement > libraries = new Set () ;
138+ List <LibraryElement > libraries = [] ;
139139 DartSdk sdk = new DirectoryBasedDartSdk (new JavaFile (sdkDir.path));
140140 List <UriResolver > resolvers = [];
141141
@@ -222,7 +222,11 @@ class DartDoc {
222222 // Use the includeExternals.
223223 for (Source source in context.librarySources) {
224224 LibraryElement library = context.computeLibraryElement (source);
225- if (includeExternals.contains (Library .getLibraryName (library))) {
225+ String libraryName = Library .getLibraryName (library);
226+ if (includeExternals.contains (libraryName)) {
227+ if (libraries.map (Library .getLibraryName).contains (libraryName)) {
228+ continue ;
229+ }
226230 libraries.add (library);
227231 }
228232 }
Original file line number Diff line number Diff line change 11name : dartdoc
22# Also update the `version` field in lib/dartdoc.dart.
3- version : 0.9.3
3+ version : 0.9.3+1
44author :
Dart Team <[email protected] > 55description : A documentation generator for Dart.
66homepage : https://github.com/dart-lang/dartdoc
Original file line number Diff line number Diff line change 44 < meta charset ="utf-8 ">
55 < meta http-equiv ="X-UA-Compatible " content ="IE=edge ">
66 < meta name ="viewport " content ="width=device-width, initial-scale=1 ">
7- < meta name ="generator " content ="made with love by dartdoc 0.9.3 ">
7+ < meta name ="generator " content ="made with love by dartdoc 0.9.3+1 ">
88 < meta name ="description " content ="test_package API docs, for the Dart programming language. ">
99 < title > test_package - Dart API docs</ title >
1010
You can’t perform that action at this time.
0 commit comments