在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称(OpenSource Name):gberger/gulp-markdox开源软件地址(OpenSource Url):https://github.com/gberger/gulp-markdox开源编程语言(OpenSource Language):CoffeeScript 73.5%开源软件介绍(OpenSource Introduction):gulp-markdoxMarkdox is a structured documentation generator based on Dox, Markdown and EJS with support for JavaScript, CoffeeScript and Iced CoffeeScript. This plugin is a gulp wrapper for it. UsageFirst, install npm install --save-dev gulp-markdox Then, add it to your var markdox = require("gulp-markdox");
gulp.task("doc", function(){
gulp.src("./src/*.js")
.pipe(markdox())
.pipe(gulp.dest("./doc"));
}); It can take on If you want to concatenate all your generated documentation files, use var markdox = require("gulp-markdox");
gulp.task("doc", function(){
gulp.src("./src/*.js")
.pipe(markdox({ concat: "doc.md" })
.pipe(gulp.dest("./doc"));
}); Following example does the same in more fine-grained manner: var markdox = require("gulp-markdox");
gulp.task("doc", function(){
gulp.src("./src/*.js")
.pipe(markdox.parse())
.pipe(markdox.format())
.pipe(markdox.render({ concat: "doc.md" }))
.pipe(gulp.dest("./doc"));
}); APIPlease refer to markdox's documentation for further documentation of these options.x'. markdox(options)Generates markdox documentation from source code in the input. options.compilerType: Custom compiler (user in parse phase). options.encodingType: Encoding of templates and files to parse (used in parse phase). options.formatterType: Custom formatter (used in format phase). options.concatType: File name for concatenated docfile. options.templateType: Path or the custom template (used in render phase). markdox.parse(options)Input: commented source code in file Output: raw document object generated from comments assigned to markdox.format(options)Input: raw document object generated from comments assigned to Output: formatted document object assigned to markdox.render(options)Input: formatted document object assigned to Output: rendered documentation in file LicenseCopyright © 2016 Maciej Chałapuk. Released under MIT License. |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论