@@ -19,7 +19,7 @@ import 'package:analyzer/src/generated/source_io.dart';
19
19
20
20
import 'generator.dart' ;
21
21
import 'resource_loader.dart' as loader;
22
- import 'src/html_generator.dart' ;
22
+ import 'src/html_generator.dart' show dartdocVersion, HtmlGenerator ;
23
23
import 'src/io_utils.dart' ;
24
24
import 'src/model.dart' ;
25
25
import 'src/model_utils.dart' ;
@@ -37,6 +37,7 @@ final String defaultOutDir = 'doc${Platform.pathSeparator}api';
37
37
/// Initialize and setup the generators.
38
38
List <Generator > initGenerators (
39
39
String url, String headerFilePath, String footerFilePath) {
40
+ dartdocVersion = version;
40
41
return [
41
42
new HtmlGenerator (url, header: headerFilePath, footer: footerFilePath)
42
43
];
@@ -57,8 +58,15 @@ class DartDoc {
57
58
58
59
Stopwatch _stopwatch;
59
60
60
- DartDoc (this .rootDir, this .excludes, this .sdkDir, this .generators,
61
- this .outputDir, this .packageRootDir, this .packageMeta, this .urlMappings,
61
+ DartDoc (
62
+ this .rootDir,
63
+ this .excludes,
64
+ this .sdkDir,
65
+ this .generators,
66
+ this .outputDir,
67
+ this .packageRootDir,
68
+ this .packageMeta,
69
+ this .urlMappings,
62
70
this .includes);
63
71
64
72
/// Generate DartDoc documentation.
@@ -178,8 +186,8 @@ class DartDoc {
178
186
}).where ((_Error error) => error.isError).toList ()..sort ();
179
187
180
188
double seconds = _stopwatch.elapsedMilliseconds / 1000.0 ;
181
- print (
182
- "Parsed ${ libraries . length } " " file${libraries .length == 1 ? '' : 's' } in "
189
+ print ("Parsed ${ libraries . length } "
190
+ "file${libraries .length == 1 ? '' : 's' } in "
183
191
"${seconds .toStringAsFixed (1 )} seconds.\n " );
184
192
185
193
if (errors.isNotEmpty) {
0 commit comments