@@ -82,18 +82,22 @@ List<DartdocOption> createGeneratorOptions(
8282 'If provided, add a rel="canonical" prefixed with provided value. '
8383 'Consider using if building many versions of the docs for public '
8484 'SEO; learn more at https://goo.gl/gktN6F.' ),
85- DartdocOptionArgOnly <String ?>('templatesDir' , null , resourceProvider,
86- optionIs: OptionKind .dir,
87- mustExist: true ,
88- hide: true ,
89- help:
90- 'Path to a directory with templates to use instead of the default '
91- 'ones. Directory must contain a file for each of the following: '
92- '404error, category, class, constant, constructor, enum, function, '
93- 'index, library, method, mixin, property, top_level_constant, '
94- 'top_level_property, typedef. Partial templates are supported; '
95- 'they must begin with an underscore, and references to them must '
96- 'omit the leading underscore (e.g. use {{>foo}} to reference the '
97- 'partial template named _foo).' ),
85+ // TODO(kallentu): Remove --templates-dir completely.
86+ DartdocOptionArgOnly <String ?>(
87+ 'templatesDir' ,
88+ null ,
89+ resourceProvider,
90+ optionIs: OptionKind .dir,
91+ mustExist: true ,
92+ hide: true ,
93+ help: '(deprecated) Path to a directory with templates to use instead of '
94+ 'the default ones. Directory must contain a file for each of the '
95+ 'following: 404error, category, class, constant, constructor, '
96+ 'enum, function, index, library, method, mixin, property, '
97+ 'top_level_constant, top_level_property, typedef. Partial '
98+ 'templates are supported; they must begin with an underscore, and '
99+ 'references to them must omit the leading underscore '
100+ '(e.g. use {{>foo}} to reference the partial template named _foo).' ,
101+ ),
98102 ];
99103}
0 commit comments