File tree Expand file tree Collapse file tree 4 files changed +11
-11
lines changed Expand file tree Collapse file tree 4 files changed +11
-11
lines changed Original file line number Diff line number Diff line change 10
10
11
11
Parse an input file with parser.
12
12
13
- parseInput('src/main.js', {'parser': 'dox'}).then();
13
+ parseInput('src/main.js', {'parser': 'dox'}).then(files => {} );
14
14
15
15
16
16
@@ -33,9 +33,9 @@ Parse an input file with parser.
33
33
34
34
#### parseInputs(inputs, config)
35
35
36
- Parse array of directory globs and/or inputs , and then render the parsed data through the defined layout plugin.
36
+ Parse array of directory globs and/or files , and then render the parsed data through the defined layout plugin.
37
37
38
- console.log( parseInputs(['src/main.js'], {'parser': 'dox', 'layout': 'markdown'}));
38
+ parseInputs(['src/main.js'], {'parser': 'dox', 'layout': 'markdown'}).then(content => {} );
39
39
40
40
41
41
@@ -90,7 +90,7 @@ Load parser based on user defined choice.
90
90
Load layout plugin based on user defined choice.
91
91
92
92
loadPlugin({'layout': 'markdown'}).then(plugin => {});
93
- loadPlugin({'layout': 'templates/README.md '}).then(plugin => {});
93
+ loadPlugin({'layout': 'templates/README.hbs '}).then(plugin => {});
94
94
95
95
96
96
Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ const REPLACE_FILENAME_REGEXP = new RegExp(`${process.cwd()}/|./`);
17
17
/**
18
18
* Parse an input file with parser.
19
19
*
20
- * parseInput('src/main.js', {'parser': 'dox'}).then();
20
+ * parseInput('src/main.js', {'parser': 'dox'}).then(files => {} );
21
21
*
22
22
* @param {String } input File to parse.
23
23
* @param {Object } config Configuration object.
@@ -49,9 +49,9 @@ const parseInput = (input, config) =>
49
49
} ) ) ;
50
50
51
51
/**
52
- * Parse array of directory globs and/or inputs , and then render the parsed data through the defined layout plugin.
52
+ * Parse array of directory globs and/or files , and then render the parsed data through the defined layout plugin.
53
53
*
54
- * console.log( parseInputs(['src/main.js'], {'parser': 'dox', 'layout': 'markdown'}));
54
+ * parseInputs(['src/main.js'], {'parser': 'dox', 'layout': 'markdown'}).then(content => {} );
55
55
*
56
56
* @param {Array } inputs Array of directory globs and/or files.
57
57
* @param {Object } config Configuration object.
Original file line number Diff line number Diff line change @@ -39,7 +39,7 @@ const loadParser = config => new Promise((resolve, reject) => {
39
39
* Load layout plugin based on user defined choice.
40
40
*
41
41
* loadPlugin({'layout': 'markdown'}).then(plugin => {});
42
- * loadPlugin({'layout': 'templates/README.md '}).then(plugin => {});
42
+ * loadPlugin({'layout': 'templates/README.hbs '}).then(plugin => {});
43
43
*
44
44
* @param {Object } config Configuration object.
45
45
* @param {String } config.layout String representing the layout plugin to be loaded.
Original file line number Diff line number Diff line change 9
9
10
10
Parse an input file with parser.
11
11
12
- parseInput('src/main.js', {'parser': 'dox'}).then();
12
+ parseInput('src/main.js', {'parser': 'dox'}).then(files => {} );
13
13
14
14
15
15
@@ -32,9 +32,9 @@ Parse an input file with parser.
32
32
33
33
#### parseInputs(inputs, config)
34
34
35
- Parse array of directory globs and/or inputs , and then render the parsed data through the defined layout plugin.
35
+ Parse array of directory globs and/or files , and then render the parsed data through the defined layout plugin.
36
36
37
- console.log( parseInputs(['src/main.js'], {'parser': 'dox', 'layout': 'markdown'}));
37
+ parseInputs(['src/main.js'], {'parser': 'dox', 'layout': 'markdown'}).then(content => {} );
38
38
39
39
40
40
You can’t perform that action at this time.
0 commit comments