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
+
1
4
## 0.9.3
2
5
* [ enhancement] added support for URL-based search. If a query parameter named
3
6
"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';
39
39
40
40
const String name = 'dartdoc' ;
41
41
// Update when pubspec version changes.
42
- const String version = '0.9.3' ;
42
+ const String version = '0.9.3+1 ' ;
43
43
44
44
final String defaultOutDir = p.join ('doc' , 'api' );
45
45
@@ -135,7 +135,7 @@ class DartDoc {
135
135
136
136
List <LibraryElement > _parseLibraries (
137
137
List <String > files, List <String > includeExternals) {
138
- Set <LibraryElement > libraries = new Set () ;
138
+ List <LibraryElement > libraries = [] ;
139
139
DartSdk sdk = new DirectoryBasedDartSdk (new JavaFile (sdkDir.path));
140
140
List <UriResolver > resolvers = [];
141
141
@@ -222,7 +222,11 @@ class DartDoc {
222
222
// Use the includeExternals.
223
223
for (Source source in context.librarySources) {
224
224
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
+ }
226
230
libraries.add (library);
227
231
}
228
232
}
Original file line number Diff line number Diff line change 1
1
name : dartdoc
2
2
# Also update the `version` field in lib/dartdoc.dart.
3
- version : 0.9.3
3
+ version : 0.9.3+1
4
4
author :
Dart Team <[email protected] >
5
5
description : A documentation generator for Dart.
6
6
homepage : https://github.com/dart-lang/dartdoc
Original file line number Diff line number Diff line change 4
4
< meta charset ="utf-8 ">
5
5
< meta http-equiv ="X-UA-Compatible " content ="IE=edge ">
6
6
< 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 ">
8
8
< meta name ="description " content ="test_package API docs, for the Dart programming language. ">
9
9
< title > test_package - Dart API docs</ title >
10
10
You can’t perform that action at this time.
0 commit comments