Skip to content

Commit 32af94b

Browse files
committed
Updated documenation.
Updated test fixtures.
1 parent 8715216 commit 32af94b

File tree

2 files changed

+70
-46
lines changed

2 files changed

+70
-46
lines changed

DOCUMENTATION.md

Lines changed: 48 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -17,17 +17,19 @@ Parse a file with custom parser.
1717

1818
##### Parameters
1919

20-
- **input** `String` File to parse.
21-
- **config** `Object` Configuration object.
22-
- **config.parser** `String` String representing the parser to be used.
20+
| Name | Type | Description | |
21+
| ---- | ---- | ----------- | -------- |
22+
| input | `String` | File to parse. |   |
23+
| config | `Object` | Configuration object. |   |
24+
| config.parser | `String` | String representing the parser to be used. |   |
2325

2426

2527

2628

2729
##### Returns
2830

2931

30-
- `Object` Promise
32+
- `Object` Promise
3133

3234

3335

@@ -42,19 +44,21 @@ Parse array of files, and then render the parsed data through the defined layout
4244

4345
##### Parameters
4446

45-
- **inputs** `Array` Array of directory globs and/or files.
46-
- **config** `Object` Configuration object.
47-
- **config.ignore** `String` Array of paths to ignore.
48-
- **config.parser** `String` String representing the parser to be used.
49-
- **config.layout** `String` String representing the layout plugin to be used.
47+
| Name | Type | Description | |
48+
| ---- | ---- | ----------- | -------- |
49+
| inputs | `Array` | Array of directory globs and/or files. |   |
50+
| config | `Object` | Configuration object. |   |
51+
| config.ignore | `String` | Array of paths to ignore. |   |
52+
| config.parser | `String` | String representing the parser to be used. |   |
53+
| config.layout | `String` | String representing the layout plugin to be used. |   |
5054

5155

5256

5357

5458
##### Returns
5559

5660

57-
- `Object` Promise
61+
- `Object` Promise
5862

5963

6064

@@ -69,19 +73,21 @@ Parse array of directory globs and/or files, and then render the parsed data thr
6973

7074
##### Parameters
7175

72-
- **inputs** `Array` Array of directory globs and/or files.
73-
- **config** `Object` Configuration object.
74-
- **config.ignore** `String` Array of paths to ignore.
75-
- **config.parser** `String` String representing the parser to be used.
76-
- **config.layout** `String` String representing the layout plugin to be used.
76+
| Name | Type | Description | |
77+
| ---- | ---- | ----------- | -------- |
78+
| inputs | `Array` | Array of directory globs and/or files. |   |
79+
| config | `Object` | Configuration object. |   |
80+
| config.ignore | `String` | Array of paths to ignore. |   |
81+
| config.parser | `String` | String representing the parser to be used. |   |
82+
| config.layout | `String` | String representing the layout plugin to be used. |   |
7783

7884

7985

8086

8187
##### Returns
8288

8389

84-
- `Object` Promise
90+
- `Object` Promise
8591

8692

8793

@@ -101,15 +107,17 @@ Find which node_modules directory to load package from.
101107

102108
##### Parameters
103109

104-
- **pkg** `String` Package name as string.
110+
| Name | Type | Description | |
111+
| ---- | ---- | ----------- | -------- |
112+
| pkg | `String` | Package name as string. |   |
105113

106114

107115

108116

109117
##### Returns
110118

111119

112-
- `Object` Promise
120+
- `Object` Promise
113121

114122

115123

@@ -124,16 +132,18 @@ Load parser based on user defined choice.
124132

125133
##### Parameters
126134

127-
- **config** `Object` Configuration object.
128-
- **config.parser** `String` String representing the parser to be loaded.
135+
| Name | Type | Description | |
136+
| ---- | ---- | ----------- | -------- |
137+
| config | `Object` | Configuration object. |   |
138+
| config.parser | `String` | String representing the parser to be loaded. |   |
129139

130140

131141

132142

133143
##### Returns
134144

135145

136-
- `Object` Promise
146+
- `Object` Promise
137147

138148

139149

@@ -150,16 +160,18 @@ Load layout plugin based on user defined choice.
150160

151161
##### Parameters
152162

153-
- **config** `Object` Configuration object.
154-
- **config.layout** `String` String representing the layout plugin to be loaded.
163+
| Name | Type | Description | |
164+
| ---- | ---- | ----------- | -------- |
165+
| config | `Object` | Configuration object. |   |
166+
| config.layout | `String` | String representing the layout plugin to be loaded. |   |
155167

156168

157169

158170

159171
##### Returns
160172

161173

162-
- `Object` Promise
174+
- `Object` Promise
163175

164176

165177

@@ -180,15 +192,17 @@ Finds package.json file from either the directory the script was called from or
180192

181193
##### Parameters
182194

183-
- **input** `String` *Optional* Directory or file.
195+
| Name | Type | Description | |
196+
| ---- | ---- | ----------- | -------- |
197+
| input | `String` | Directory or file. | *Optional* |
184198

185199

186200

187201

188202
##### Returns
189203

190204

191-
- `String` Path to package.json file.
205+
- `String` Path to package.json file.
192206

193207

194208

@@ -203,15 +217,17 @@ Format an array of directories and/or files to be ignored by globby by adding a
203217

204218
##### Parameters
205219

206-
- **paths** `Array` Array of directories and/or files.
220+
| Name | Type | Description | |
221+
| ---- | ---- | ----------- | -------- |
222+
| paths | `Array` | Array of directories and/or files. |   |
207223

208224

209225

210226

211227
##### Returns
212228

213229

214-
- `Array` Modified array of directories and/or files.
230+
- `Array` Modified array of directories and/or files.
215231

216232

217233

@@ -226,15 +242,17 @@ Sets default configuration values.
226242

227243
##### Parameters
228244

229-
- **config** `Object` Custom configuration object.
245+
| Name | Type | Description | |
246+
| ---- | ---- | ----------- | -------- |
247+
| config | `Object` | Custom configuration object. |   |
230248

231249

232250

233251

234252
##### Returns
235253

236254

237-
- `Object` Modified configuration object.
255+
- `Object` Modified configuration object.
238256

239257

240258

test/fixtures/doxdox.md

Lines changed: 22 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -16,17 +16,19 @@ Parse a file with custom parser.
1616

1717
##### Parameters
1818

19-
- **input** `String` File to parse.
20-
- **config** `Object` Configuration object.
21-
- **config.parser** `String` String representing the parser to be used.
19+
| Name | Type | Description | |
20+
| ---- | ---- | ----------- | -------- |
21+
| input | `String` | File to parse. |   |
22+
| config | `Object` | Configuration object. |   |
23+
| config.parser | `String` | String representing the parser to be used. |   |
2224

2325

2426

2527

2628
##### Returns
2729

2830

29-
- `Object` Promise
31+
- `Object` Promise
3032

3133

3234

@@ -41,19 +43,21 @@ Parse array of files, and then render the parsed data through the defined layout
4143

4244
##### Parameters
4345

44-
- **inputs** `Array` Array of directory globs and/or files.
45-
- **config** `Object` Configuration object.
46-
- **config.ignore** `String` Array of paths to ignore.
47-
- **config.parser** `String` String representing the parser to be used.
48-
- **config.layout** `String` String representing the layout plugin to be used.
46+
| Name | Type | Description | |
47+
| ---- | ---- | ----------- | -------- |
48+
| inputs | `Array` | Array of directory globs and/or files. |   |
49+
| config | `Object` | Configuration object. |   |
50+
| config.ignore | `String` | Array of paths to ignore. |   |
51+
| config.parser | `String` | String representing the parser to be used. |   |
52+
| config.layout | `String` | String representing the layout plugin to be used. |   |
4953

5054

5155

5256

5357
##### Returns
5458

5559

56-
- `Object` Promise
60+
- `Object` Promise
5761

5862

5963

@@ -68,19 +72,21 @@ Parse array of directory globs and/or files, and then render the parsed data thr
6872

6973
##### Parameters
7074

71-
- **inputs** `Array` Array of directory globs and/or files.
72-
- **config** `Object` Configuration object.
73-
- **config.ignore** `String` Array of paths to ignore.
74-
- **config.parser** `String` String representing the parser to be used.
75-
- **config.layout** `String` String representing the layout plugin to be used.
75+
| Name | Type | Description | |
76+
| ---- | ---- | ----------- | -------- |
77+
| inputs | `Array` | Array of directory globs and/or files. |   |
78+
| config | `Object` | Configuration object. |   |
79+
| config.ignore | `String` | Array of paths to ignore. |   |
80+
| config.parser | `String` | String representing the parser to be used. |   |
81+
| config.layout | `String` | String representing the layout plugin to be used. |   |
7682

7783

7884

7985

8086
##### Returns
8187

8288

83-
- `Object` Promise
89+
- `Object` Promise
8490

8591

8692

0 commit comments

Comments
 (0)