@@ -9,7 +9,6 @@ import 'dart:io' show Directory, File;
99import 'dart:isolate' ;
1010
1111import 'package:dartdoc/dartdoc.dart' ;
12- import 'package:dartdoc/src/empty_generator.dart' ;
1312import 'package:dartdoc/src/generator.dart' ;
1413import 'package:dartdoc/src/html/html_generator_instance.dart' ;
1514import 'package:dartdoc/src/html/template_data.dart' ;
@@ -132,12 +131,8 @@ class HtmlGeneratorOptions implements HtmlOptions {
132131 : this .toolVersion = toolVersion ?? 'unknown' ;
133132}
134133
135- Future <List <Generator >> initEmptyGenerators (DartdocOptionContext config) async {
136- return [EmptyGenerator ()];
137- }
138-
139134/// Initialize and setup the generators.
140- Future <List < Generator >> initGenerators (GeneratorContext config) async {
135+ Future <HtmlGenerator > createHtmlGenerator (GeneratorContext config) async {
141136 // TODO(jcollins-g): Rationalize based on GeneratorContext all the way down
142137 // through the generators.
143138 HtmlGeneratorOptions options = new HtmlGeneratorOptions (
@@ -147,14 +142,12 @@ Future<List<Generator>> initGenerators(GeneratorContext config) async {
147142 faviconPath: config.favicon,
148143 prettyIndexJson: config.prettyIndexJson);
149144
150- return [
151- await HtmlGenerator .create (
152- options: options,
153- headers: config.header,
154- footers: config.footer,
155- footerTexts: config.footerTextPaths,
156- )
157- ];
145+ return await HtmlGenerator .create (
146+ options: options,
147+ headers: config.header,
148+ footers: config.footer,
149+ footerTexts: config.footerTextPaths,
150+ );
158151}
159152
160153Uri _sdkFooterCopyrightUri;
0 commit comments