@@ -141,29 +141,28 @@ class HtmlGeneratorOptions implements HtmlOptions {
141
141
}
142
142
143
143
/// Initialize and setup the generators.
144
- Future <List <Generator >> initHtmlGenerators (
145
- DartdocGeneratorOptionContext config) async {
144
+ Future <List <Generator >> initHtmlGenerators (HtmlGeneratorContext context) async {
146
145
// TODO(jcollins-g): Rationalize based on GeneratorContext all the way down
147
146
// through the generators.
148
147
HtmlGeneratorOptions options = HtmlGeneratorOptions (
149
- relCanonicalPrefix: config .relCanonicalPrefix,
148
+ relCanonicalPrefix: context .relCanonicalPrefix,
150
149
toolVersion: dartdocVersion,
151
- faviconPath: config .favicon,
152
- prettyIndexJson: config .prettyIndexJson,
153
- templatesDir: config .templatesDir);
150
+ faviconPath: context .favicon,
151
+ prettyIndexJson: context .prettyIndexJson,
152
+ templatesDir: context .templatesDir);
154
153
155
154
return [
156
155
await HtmlGenerator .create (
157
156
options: options,
158
- headers: config .header,
159
- footers: config .footer,
160
- footerTexts: config .footerTextPaths,
157
+ headers: context .header,
158
+ footers: context .footer,
159
+ footerTexts: context .footerTextPaths,
161
160
)
162
161
];
163
162
}
164
163
165
164
/// Dartdoc options related to html generation.
166
- mixin HtmlGeneratorContext on DartdocOptionContextBase {
165
+ mixin HtmlGeneratorContext on BaseGeneratorContext {
167
166
String get favicon => optionSet['favicon' ].valueAt (context);
168
167
169
168
String get relCanonicalPrefix =>
0 commit comments