Skip to content

Commit 75b5a14

Browse files
committed
Ship
1 parent 8375f08 commit 75b5a14

File tree

13 files changed

+1665
-8
lines changed

13 files changed

+1665
-8
lines changed

README.md

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,34 @@
33
Use [gulp](http://gulpjs.com/) with
44
[documentation](https://github.com/documentationjs/documentation)
55
to generate great documentation for your JavaScript projects.
6+
7+
| name | description |
8+
| ---- | ----------- |
9+
| `options` | output options |
10+
| `options.format` | either 'html', 'md', 'json', or 'docset' |
11+
| `options.filename` | custom filename for md or json output |
12+
13+
Returns `stream.Transform`
14+
15+
## Example
16+
17+
```js
18+
var documentation = require('documentation'),
19+
gulp = require('gulp');
20+
21+
gulp.task('documentation', function () {
22+
23+
gulp.src('./index.js')
24+
.pipe(documentation({ format: 'md' }))
25+
.pipe(gulp.dest('md-documentation'));
26+
27+
gulp.src('./index.js')
28+
.pipe(documentation({ format: 'html' }))
29+
.pipe(gulp.dest('html-documentation'));
30+
31+
gulp.src('./index.js')
32+
.pipe(documentation({ format: 'json' }))
33+
.pipe(gulp.dest('json-documentation'));
34+
35+
});
36+
```

example/gulpfile.js

Lines changed: 0 additions & 7 deletions
This file was deleted.

gulpfile.js

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
var documentation = require('./'),
2+
gulp = require('gulp');
3+
4+
gulp.task('documentation', function () {
5+
6+
gulp.src('./index.js')
7+
.pipe(documentation({ format: 'md' }))
8+
.pipe(gulp.dest('md-documentation'));
9+
10+
gulp.src('./index.js')
11+
.pipe(documentation({ format: 'html' }))
12+
.pipe(gulp.dest('html-documentation'));
13+
14+
gulp.src('./index.js')
15+
.pipe(documentation({ format: 'json' }))
16+
.pipe(gulp.dest('json-documentation'));
17+
18+
});

0 commit comments

Comments
 (0)