@@ -155,30 +155,28 @@ class HtmlGeneratorOptions implements HtmlOptions {
155
155
}
156
156
157
157
/// Initialize and setup the generators.
158
- Future <List <Generator >> initHtmlGenerators (
159
- DartdocGeneratorOptionContext config) async {
158
+ Future <List <Generator >> initHtmlGenerators (HtmlGeneratorContext context) async {
160
159
// TODO(jcollins-g): Rationalize based on GeneratorContext all the way down
161
160
// through the generators.
162
161
HtmlGeneratorOptions options = HtmlGeneratorOptions (
163
- relCanonicalPrefix: config .relCanonicalPrefix,
162
+ relCanonicalPrefix: context .relCanonicalPrefix,
164
163
toolVersion: dartdocVersion,
165
- faviconPath: config.favicon,
166
- prettyIndexJson: config.prettyIndexJson,
167
- templatesDir: config.templatesDir,
168
- useBaseHref: config.useBaseHref);
169
-
164
+ faviconPath: context.favicon,
165
+ prettyIndexJson: context.prettyIndexJson,
166
+ templatesDir: context.templatesDir,
167
+ useBaseHref: context.useBaseHref);
170
168
return [
171
169
await HtmlGenerator .create (
172
170
options: options,
173
- headers: config .header,
174
- footers: config .footer,
175
- footerTexts: config .footerTextPaths,
171
+ headers: context .header,
172
+ footers: context .footer,
173
+ footerTexts: context .footerTextPaths,
176
174
)
177
175
];
178
176
}
179
177
180
178
/// Dartdoc options related to html generation.
181
- mixin HtmlGeneratorContext on DartdocOptionContextBase {
179
+ mixin HtmlGeneratorContext on BaseGeneratorContext {
182
180
String get favicon => optionSet['favicon' ].valueAt (context);
183
181
184
182
String get relCanonicalPrefix =>
0 commit comments