File tree Expand file tree Collapse file tree 3 files changed +10
-3
lines changed Expand file tree Collapse file tree 3 files changed +10
-3
lines changed Original file line number Diff line number Diff line change
1
+ ## unreleased
2
+ * change the ` --include-external ` flag to help disambiguate files to
3
+ include (#1236 )
4
+
1
5
## 0.9.8
2
6
* support for generic methods.
3
7
* remove deps on cli_utils and which.
Original file line number Diff line number Diff line change @@ -193,7 +193,9 @@ ArgParser _createArgsParser() {
193
193
parser.addOption ('include' ,
194
194
allowMultiple: true , help: 'library names to generate docs for' );
195
195
parser.addOption ('include-external' ,
196
- allowMultiple: true , help: 'additional (external) libraries to include' );
196
+ allowMultiple: true ,
197
+ help: 'additional (external) dart files to include, use "dir/fileName", '
198
+ 'as in lib/material.dart' );
197
199
parser.addOption ('hosted-url' ,
198
200
help:
199
201
'URL where the docs will be hosted (used to generate the sitemap).' );
Original file line number Diff line number Diff line change @@ -252,12 +252,13 @@ class DartDoc {
252
252
while (result.hasMoreWork) {
253
253
result = context.performAnalysisTask ();
254
254
}
255
-
255
+
256
256
// Use the includeExternals.
257
257
for (Source source in context.librarySources) {
258
258
LibraryElement library = context.computeLibraryElement (source);
259
259
String libraryName = Library .getLibraryName (library);
260
- if (includeExternals.contains (libraryName)) {
260
+ var fullPath = source.fullName;
261
+ if (includeExternals.any ((string) => fullPath.endsWith (string))) {
261
262
if (libraries.map (Library .getLibraryName).contains (libraryName)) {
262
263
continue ;
263
264
}
You can’t perform that action at this time.
0 commit comments