- Notifications
You must be signed in to change notification settings - Fork14
Use gulp with documentation to generate great documentation for your JavaScript projects.
License
NotificationsYou must be signed in to change notification settings
documentationjs/gulp-documentation
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
Usegulp withdocumentationto generate great documentation for your JavaScript projects.
$ npm install --save-dev gulp-documentation
Documentation stream intended for use within the gulp system.
Parameters
format
string? format - one of 'html', 'md', or 'json' (optional, defaultmd
)options
Object documentation options - the same as given todocumentationoptions.filename
string custom filename for md or json output
formatterOptions
Object output options - same as given to documentationformatterOptions.name
Object if format is HTML, specifies the name of the project
Examples
vargulpDocumentation=require('gulp-documentation');vargulp=require('gulp');// Out of the box, you can generate JSON, HTML, and Markdown documentationgulp.task('documentation-readme-example',function(){// Generating README documentationreturngulp.src('./index.js').pipe(gulpDocumentation('md')).pipe(gulp.dest('md-documentation'));});// Generating a pretty HTML documentation sitegulp.task('documentation-html-example',function(){returngulp.src('./index.js').pipe(gulpDocumentation('html')).pipe(gulp.dest('html-documentation'));});// Generating raw JSON documentation outputgulp.task('documentation-json-example',function(){returngulp.src('./index.js').pipe(gulpDocumentation('json')).pipe(gulp.dest('json-documentation'));});// Generate documentation for multiple files using normal glob syntax.// Note that this generates one documentation output, so that it can// easily cross-reference and use types.gulp.task('documentation-multiple-files',function(){returngulp.src('./src/*.js').pipe(gulpDocumentation('md')).pipe(gulp.dest('md-documentation'));});// If you're using HTML documentation, you can specify additional 'name'// and 'version' optionsgulp.task('documentation-html-options',function(){returngulp.src('./src/*.js').pipe(gulpDocumentation('html',{},{name:'My Project',version:'1.0.0'})).pipe(gulp.dest('html-documentation'));});// Document non-JavaScript files with JSDoc comments using polyglot: truegulp.task('documentation-for-cplusplus',function(){returngulp.src('./src/*.cpp').pipe(gulpDocumentation('html',{polyglot:true},{name:'My Project',version:'1.0.0'})).pipe(gulp.dest('html-documentation'));});
Returnsstream.Transform
About
Use gulp with documentation to generate great documentation for your JavaScript projects.
Resources
License
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Packages0
No packages published
Uh oh!
There was an error while loading.Please reload this page.
Contributors8
Uh oh!
There was an error while loading.Please reload this page.