2013-07-09 10:31:36 +02:00
|
|
|
# Create API documentation
|
|
|
|
|
|
|
|
## Prerequisites
|
|
|
|
|
|
|
|
You need phpDocumentor 2 installed on your system to create the api
|
|
|
|
documentation. Please visit [phpdoc's website](http://phpdoc.org/) for more
|
2013-07-10 13:49:54 +02:00
|
|
|
information. Additionally, the graphviz package is required to be installed.
|
2013-07-09 10:31:36 +02:00
|
|
|
|
|
|
|
## Configuration
|
|
|
|
|
|
|
|
phpDocumentator is configured with xml configuration reside in doc/phpdoc.xml.
|
|
|
|
In there you'll find the target path where the documentation is created as
|
|
|
|
html. Default location is doc/api/. Just point to index.html in this directory
|
|
|
|
with a browser.
|
|
|
|
|
|
|
|
If you generated the documentation already, you can follow [this link](apidoc/idnex.html).
|
|
|
|
|
|
|
|
## Generation
|
|
|
|
|
2013-10-23 15:10:33 +02:00
|
|
|
Change to Icinga Web 2 root directory (source tree) and run:
|
2013-07-09 10:31:36 +02:00
|
|
|
|
2013-07-09 14:43:01 +02:00
|
|
|
bin/createapidoc.sh
|
|
|
|
|
|
|
|
## Options for createapidoc.sh
|
|
|
|
|
|
|
|
--build Optional, silent build mode
|
2013-07-10 13:49:54 +02:00
|
|
|
--help Displays help message
|