Skip to content

Commit 5c62d23

Browse files
committed
Simplify, remove extend
1 parent 1270823 commit 5c62d23

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

lib/output/html.js

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

33
var File = require('vinyl'),
44
vfs = require('vinyl-fs'),
5-
extend = require('extend'),
65
concat = require('concat-stream'),
76
Handlebars = require('handlebars'),
87
walk = require('../walk'),
@@ -40,19 +39,20 @@ function highlight(comment) {
4039
* Formats documentation as HTML.
4140
*
4241
* @param {Array<Object>} comments parsed comments
43-
* @param {Object} opts Options that can customize the output
44-
* @param {string} [opts.theme] Name of a module used for an HTML theme.
42+
* @param {Object} options Options that can customize the output
43+
* @param {string} [options.theme] Name of a module used for an HTML theme.
4544
* @param {Function} callback called with array of results as vinyl-fs objects
4645
* @returns {undefined} calls callback
4746
* @name html
4847
*/
49-
module.exports = function makeHTML(comments, opts, callback) {
48+
module.exports = function makeHTML(comments, options, callback) {
5049
comments = walk(comments, highlight);
5150

52-
var options = extend({}, opts);
51+
options = options || {};
52+
5353
var themeModule = resolveTheme(options.theme);
5454
var pageTemplate = getTemplate(Handlebars, themeModule, 'index.hbs');
55-
55+
5656
Handlebars.registerPartial('section',
5757
getTemplate(Handlebars, themeModule, 'section.hbs'));
5858

lib/resolve_theme.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ var path = require('path'),
1212
*/
1313
function resolveTheme(theme) {
1414
var basedir = theme ? process.cwd() : __dirname;
15-
15+
1616
theme = theme || 'documentation-theme-default';
1717

1818
try {

0 commit comments

Comments
 (0)