File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -5,18 +5,20 @@ var path = require('path');
5
5
/**
6
6
* Formats documentation as HTML.
7
7
*
8
- * @param {Array<Object> } comments parsed comments
8
+ * @param {Array<Object> } comments Parsed comments.
9
9
* @param {Object } options Options that can customize the output
10
10
* @param {string } [options.theme='documentation-theme-default'] Name of a module used for an HTML theme.
11
- * @param {Function } callback called with array of results as vinyl-fs objects
12
- * @returns {undefined } calls callback
11
+ * @param {Function } callback Called with array of results as vinyl-fs objects.
12
+ * @returns {undefined } Calls callback.
13
13
* @name html
14
14
*/
15
15
module . exports = function makeHTML ( comments , options , callback ) {
16
16
options = options || { } ;
17
- var theme = require ( 'documentation-theme-default' ) ;
17
+ var theme ;
18
18
if ( options . theme ) {
19
19
theme = require ( path . resolve ( process . cwd ( ) , options . theme ) ) ;
20
+ } else {
21
+ theme = require ( 'documentation-theme-default' ) ;
20
22
}
21
23
theme ( comments , options , callback ) ;
22
24
} ;
You can’t perform that action at this time.
0 commit comments