@@ -9,6 +9,7 @@ import 'dart:io' show Directory, File;
99import 'dart:isolate' ;
1010
1111import 'package:dartdoc/dartdoc.dart' ;
12+ import 'package:dartdoc/src/empty_generator.dart' ;
1213import 'package:dartdoc/src/generator.dart' ;
1314import 'package:dartdoc/src/html/html_generator_instance.dart' ;
1415import 'package:dartdoc/src/html/template_data.dart' ;
@@ -131,8 +132,12 @@ class HtmlGeneratorOptions implements HtmlOptions {
131132 : this .toolVersion = toolVersion ?? 'unknown' ;
132133}
133134
135+ Future <List <Generator >> initEmptyGenerators (DartdocOptionContext config) async {
136+ return [EmptyGenerator ()];
137+ }
138+
134139/// Initialize and setup the generators.
135- Future <HtmlGenerator > createHtmlGenerator (GeneratorContext config) async {
140+ Future <List < Generator >> initGenerators (GeneratorContext config) async {
136141 // TODO(jcollins-g): Rationalize based on GeneratorContext all the way down
137142 // through the generators.
138143 HtmlGeneratorOptions options = new HtmlGeneratorOptions (
@@ -142,12 +147,14 @@ Future<HtmlGenerator> createHtmlGenerator(GeneratorContext config) async {
142147 faviconPath: config.favicon,
143148 prettyIndexJson: config.prettyIndexJson);
144149
145- return await HtmlGenerator .create (
146- options: options,
147- headers: config.header,
148- footers: config.footer,
149- footerTexts: config.footerTextPaths,
150- );
150+ return [
151+ await HtmlGenerator .create (
152+ options: options,
153+ headers: config.header,
154+ footers: config.footer,
155+ footerTexts: config.footerTextPaths,
156+ )
157+ ];
151158}
152159
153160Uri _sdkFooterCopyrightUri;
0 commit comments