Skip to content

jtuulos/gulp-markdox

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

gulp-markdox

NPM version Build Status

markdox plugin for gulp

Markdox is a documentation generator based on Dox and Markdown with support for JavaScript, CoffeeScript and IcedCoffeeScript.

This plugin is a gulp wrapper for it.

Usage

First, install gulp-markdox as a development dependency:

npm install --save-dev gulp-markdox

Then, add it to your gulpfile.js:

var markdox = require("gulp-markdox");

gulp.task("doc", function(){
  gulp.src("./src/*.js")
    .pipe(markdox())
    .pipe(gulp.dest("./doc"));
});

It can take on .coffee and .iced files, too.

If you want to concatenate all your generated documentation files, use gulp-concat:

var markdox = require("gulp-markdox");
var concat = require("gulp-concat");

gulp.task("doc", function(){
  gulp.src("./src/*.js")
    .pipe(markdox())
    .pipe(concat("doc.md"))
    .pipe(gulp.dest("./doc"));
});

API

Please refer to markdox's documentation for further documentation of these options.x'

markdox(options)

options.template

Type: String

Path or the custom template

options.encoding

Type: String Default: utf-8

Encoding of templates and files to parse

options.formatter

Type: Function

Custom formatter

options.compiler

Type: Function

Custom compiler

License

MIT License

Releases

No releases published

Packages

No packages published

Languages

  • CoffeeScript 66.3%
  • JavaScript 33.7%