0.1.1 • Published 9 years ago

gapidoc v0.1.1

Weekly downloads
13
License
MIT
Repository
github
Last release
9 years ago

gulp-apidoc Build Status

Generates a RESTful web API Documentation. Documentation at apidocjs.com

Uses the apidoc library.

How It Works

/path/api/stuff.js:

/**
 * @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.
 */

Install

Install with npm

npm install --save-dev gulp-apidoc

Usage

var gulp = require('gulp'),
    apidoc = require('gulp-apidoc');

gulp.task('apidoc', function(){
          apidoc.exec({
            src: "example/",
            dest: "build/"
          });
});

With options:

var gulp = require('gulp'),
    apidoc = require('gulp-apidoc');

gulp.task('apidoc',function(){
              apidoc.exec({
	              src: "example/",
                  dest: "build/",
                  debug: true,
                  includeFilters: [ ".*\\.js$" ]
              });
});

Other options checkout.

API

apidoc(options)

options.src

Type: String

options.dest

Type: string Default: doc/

options.debug

Type: Boolean Default: false

options.log

Type: Boolean Default: true

options.includeFilters

Type: Array Default: []

0.1.1

9 years ago

0.1.0

9 years ago

0.0.9

9 years ago

0.0.8

9 years ago

0.0.7

9 years ago

0.0.6

9 years ago

0.0.5

9 years ago

0.0.4

9 years ago