8000 GitHub - mducharme/grunt-phpdocumentor: Runs the PHPDocumentor documentation generator tool.
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

mducharme/grunt-phpdocumentor

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

grunt-phpdocumentor

Runs the PHPDocumentor documentation generator tool.

This build include phpDocumentor version 2.0.0a12, other versions can be specified by the bin option

This plugin runs the command : phpdoc -d dir -t target.

Getting Started

This plugin requires Grunt ~0.4.1

If you haven't used Grunt before, be sure to check out the Getting Started guide, as it explains how to create a Gruntfile as well as install and use Grunt plugins. Once you're familiar with that process, you may install this plugin with this command:

npm install grunt-phpdocumentor --save-dev

One the plugin has been installed, it may be enabled inside your Gruntfile with this line of JavaScript:

grunt.loadNpmTasks('grunt-phpdocumentor');

The "phpdocumentor" task

Overview

In your project's Gruntfile, add a section named phpdocumentor to the data object passed into grunt.initConfig().

grunt.initConfig({
  phpdocumentor: {
    dist: {
        bin: 'bin/phpdoc',
        directory : './',
        target : 'docs'
    }                
  },
})

Options

options.bin( optional )

Type: String Default value: phpdoc

Path to the phpdoc executable, by default it will use the one that come with task. It is located on the bin folder.

options.directory( optional )

Type: String Default value: ./

Comma-separated list of directories to (recursively) parse (multiple values allowed). It will default to the folder where Gruntfile is located.

options.target( optional )

Type: String Default value: docs

Path where to store the generated output. It will default to a folder named 'docs'

Usage Examples

grunt phpdocumentor

Release History

0.3.0 - Including phpDocumentor version 2.0.0a12 on the bin, giving default to all options

About

Runs the PHPDocumentor documentation generator tool.

Resources

License

Stars

Watchers

Forks

Releases

No releases published
336C

Packages

No packages published

Languages

  • JavaScript 96.3%
  • Shell 3.7%
0