Skip to content
This repository has been archived by the owner on Jun 11, 2023. It is now read-only.

Latest commit

 

History

History
60 lines (44 loc) · 1.21 KB

README.md

File metadata and controls

60 lines (44 loc) · 1.21 KB

grunt-apidoc

This plugin requires Grunt ~0.4.0

About

Generates a RESTful API Documentation with apidoc.

Generated example documentation at http://apidocjs.com/example/

Installation

  1. npm install grunt-apidoc --save-dev
  2. Add grunt.loadNpmTasks('grunt-apidoc'); to Gruntfile.js

Configuration

Add the task to your Gruntfile's grunt.initConfig:

apidoc: {
  myapp: {
    src: "app/",
    dest: "apidoc/"
  }
}

Use only one src and one dest, apidoc search in subdirs for files with apidoc-parameters.

Additional options

All apidoc options can be used within options-block, see apidoc readme for details.

Example options:

includeFilters With includeFilters you can define which files apidoc should include, default *.js.

debug Show verbose information.

apidoc: {
  mypp: {
    src: "app/",
    dest: "apidoc/",
    options: {
      debug: true,
      includeFilters: [ ".*\\.js$" ]
    }
  }
}

Changelog

  • 0.1.0 Initial release

License

Copyright (c) 2013 inveris OHG Author Peter Rottmann rottmann@inveris.de Licensed under the MIT license.