Skip to content

Commit e9d575d

Browse files
committed
Updated documentation.
1 parent fe8ef42 commit e9d575d

File tree

4 files changed

+11
-11
lines changed

4 files changed

+11
-11
lines changed

DOCUMENTATION.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
Parse 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.
9090
Load 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

lib/doxdox.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff 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.

lib/loaders.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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.

test/fixtures/doxdox.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010
Parse 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

0 commit comments

Comments
 (0)