Skip to content
This repository was archived by the owner on Jun 11, 2023. It is now read-only.
/ grunt-apidoc Public archive

Grunt task to generate a RESTful API Documentation with apidoc

License

Notifications You must be signed in to change notification settings

apidoc/grunt-apidoc

Repository files navigation

grunt-apidoc

Deprecation notice

Grunt is from the past. Use a script in your package.json now to generate apidoc. This code is broken and won't get fixed.

==========================

About

Use Grunt to generate a RESTful API Documentation with apiDoc.

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 -h.

  • src: Source files directory.
  • dest: Destination directory, where the documentation will be created.
  • template: Directory with the template files.
  • options
  • includeFilters: [ ".*\\.js$" ] RegEx, which files to parse.
  • debug: false Show Debug Output.
  • log: true Show Log Output.
  • simulate: false Simulation, no files will be written.

Example options:

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

debug Show verbose information.

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

Help

Please visit the main apiDoc project page on github for help and information.

About

Grunt task to generate a RESTful API Documentation with apidoc

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 5

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy