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
.
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');
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'
}
},
})
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.
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.
Type: String
Default value: docs
Path where to store the generated output. It will default to a folder named 'docs'
grunt phpdocumentor
0.3.0 - Including phpDocumentor version 2.0.0a12
on the bin, giving default to all options