Skip to content

Commit dd3868f

Browse files
author
Ilya Radchenko
committed
bring back extend
1 parent 03b26c4 commit dd3868f

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

lib/output/html.js

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
var File = require('vinyl'),
44
vfs = require('vinyl-fs'),
5+
extend = require('extend'),
56
concat = require('concat-stream'),
67
Handlebars = require('handlebars'),
78
walk = require('../walk'),
@@ -39,15 +40,16 @@ function highlight(comment) {
3940
* Formats documentation as HTML.
4041
*
4142
* @param {Array<Object>} comments parsed comments
42-
* @param {Object} options Options that can customize the output
43-
* @param {string} [options.theme] Name of a module used for an HTML theme.
43+
* @param {Object} opts Options that can customize the output
44+
* @param {string} [opts.theme] Name of a module used for an HTML theme.
4445
* @param {Function} callback called with array of results as vinyl-fs objects
4546
* @returns {undefined} calls callback
4647
* @name html
4748
*/
48-
module.exports = function makeHTML(comments, options, callback) {
49+
module.exports = function makeHTML(comments, opts, callback) {
4950
comments = walk(comments, highlight);
5051

52+
var options = extend({}, opts);
5153
var themeModule = resolveTheme(options.theme);
5254
var pageTemplate = getTemplate(Handlebars, themeModule, 'index.hbs');
5355

0 commit comments

Comments
 (0)