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 1010
1111Parse an input file with parser.
1212
13- parseInput('src/main.js', {'parser': 'dox'}).then();
13+ parseInput('src/main.js', {'parser': 'dox'}).then(files => {} );
1414
1515
1616
@@ -33,9 +33,9 @@ Parse an input file with parser.
3333
3434#### parseInputs(inputs, config)
3535
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.
3737
38- console.log( parseInputs(['src/main.js'], {'parser': 'dox', 'layout': 'markdown'}));
38+ parseInputs(['src/main.js'], {'parser': 'dox', 'layout': 'markdown'}).then(content => {} );
3939
4040
4141
@@ -90,7 +90,7 @@ Load parser based on user defined choice.
9090Load layout plugin based on user defined choice.
9191
9292 loadPlugin({'layout': 'markdown'}).then(plugin => {});
93- loadPlugin({'layout': 'templates/README.md '}).then(plugin => {});
93+ loadPlugin({'layout': 'templates/README.hbs '}).then(plugin => {});
9494
9595
9696
Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ const REPLACE_FILENAME_REGEXP = new RegExp(`${process.cwd()}/|./`);
1717/**
1818 * Parse an input file with parser.
1919 *
20- * parseInput('src/main.js', {'parser': 'dox'}).then();
20+ * parseInput('src/main.js', {'parser': 'dox'}).then(files => {} );
2121 *
2222 * @param {String } input File to parse.
2323 * @param {Object } config Configuration object.
@@ -49,9 +49,9 @@ const parseInput = (input, config) =>
4949 } ) ) ;
5050
5151/**
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.
5353 *
54- * console.log( parseInputs(['src/main.js'], {'parser': 'dox', 'layout': 'markdown'}));
54+ * parseInputs(['src/main.js'], {'parser': 'dox', 'layout': 'markdown'}).then(content => {} );
5555 *
5656 * @param {Array } inputs Array of directory globs and/or files.
5757 * @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) => {
3939 * Load layout plugin based on user defined choice.
4040 *
4141 * loadPlugin({'layout': 'markdown'}).then(plugin => {});
42- * loadPlugin({'layout': 'templates/README.md '}).then(plugin => {});
42+ * loadPlugin({'layout': 'templates/README.hbs '}).then(plugin => {});
4343 *
4444 * @param {Object } config Configuration object.
4545 * @param {String } config.layout String representing the layout plugin to be loaded.
Original file line number Diff line number Diff line change 99
1010Parse an input file with parser.
1111
12- parseInput('src/main.js', {'parser': 'dox'}).then();
12+ parseInput('src/main.js', {'parser': 'dox'}).then(files => {} );
1313
1414
1515
@@ -32,9 +32,9 @@ Parse an input file with parser.
3232
3333#### parseInputs(inputs, config)
3434
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.
3636
37- console.log( parseInputs(['src/main.js'], {'parser': 'dox', 'layout': 'markdown'}));
37+ parseInputs(['src/main.js'], {'parser': 'dox', 'layout': 'markdown'}).then(content => {} );
3838
3939
4040
You can’t perform that action at this time.
0 commit comments