Skip to content

Commit 9fd2d62

Browse files
author
Ilya Radchenko
committed
Don't pass default to resolveTheme
1 parent fb9fcfb commit 9fd2d62

File tree

1 file changed

+3
-8
lines changed

1 file changed

+3
-8
lines changed

lib/output/html.js

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -46,17 +46,12 @@ function highlight(comment) {
4646
* @returns {undefined} calls callback
4747
* @name html
4848
*/
49-
module.exports = function makeHTML(comments, opts, callback) {
50-
49+
module.exports = function makeHTML(comments, options, callback) {
5150
comments = walk(comments, highlight);
5251

53-
var options = extend({}, {
54-
theme: 'documentation-theme-default'
55-
}, opts);
56-
5752
var themeModule = resolveTheme(options.theme);
58-
5953
var pageTemplate = getTemplate(Handlebars, themeModule, 'index.hbs');
54+
6055
Handlebars.registerPartial('section',
6156
getTemplate(Handlebars, themeModule, 'section.hbs'));
6257

@@ -75,7 +70,7 @@ module.exports = function makeHTML(comments, opts, callback) {
7570
path: 'index.html',
7671
contents: new Buffer(pageTemplate({
7772
docs: comments,
78-
options: opts
73+
options: options
7974
}), 'utf8')
8075
})));
8176
}));

0 commit comments

Comments
 (0)