在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称(OpenSource Name):c0b41/gulp-apidoc开源软件地址(OpenSource Url):https://github.com/c0b41/gulp-apidoc开源编程语言(OpenSource Language):JavaScript 100.0%开源软件介绍(OpenSource Introduction):this package is no longer supported, use the webpack plugin instead gulp-apidocGenerates a RESTful web API Documentationusing the apidoc library. How It Works
/**
* @api {get} /user/:id Request User information
* @apiName GetUser
* @apiGroup User
*
* @apiParam {Number} id Users unique ID.
*
* @apiSuccess {String} firstname Firstname of the User.
* @apiSuccess {String} lastname Lastname of the User.
*/ InstallInstall with npm
Usagevar gulp = require('gulp'),
apidoc = require('gulp-apidoc');
gulp.task('apidoc', function(done){
apidoc({
src: "example/",
dest: "build/"
},done);
}); With options: var gulp = require('gulp'),
apidoc = require('gulp-apidoc');
gulp.task('apidoc',function(done){
apidoc({
src: "example/",
dest: "build/",
template: "template/",
debug: true,
includeFilters: [ ".*\\.js$" ]
},done);
}); Other options checkout. Optionsoptions.srcThe folder to scan for apidoc documentation. Type: options.destThe folder where to output the generated files. Type: options.templateCustom template to use for the output files. Type: options.configType: options.debugType: options.silentType: options.verboseType: options.simulateType: options.includeFiltersType: |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论