Plugin for easy API documentation
Compatible con DokuWiki
No hay compatibilidad sobre la información dada!
La extensión no ha sido actualizada en al menos 2 años. Puede que ya no tenga soporte o no sea mantenida y tenga problemas de compatibilidad.
Simply unpack the .tgz file into the lib/plugins directory of your DokuWiki. Didn't like the plugin? Just delete the apidoc folder from the lib/plugins and it's all undone.
See the plugin in action here, in the API Documentation (new) section..
To document a simple sample class:
<apidoc> CLASS|TestKlass|/classes/test.php|[[http://www.stilit.se]] test|This is just a class for testing the APIDoc DokuWiki plugin.| FIELD|VAL|const VAL = 0x001;|A constant just for testing| METHOD|constructor|public function __construct()|Test|test METHOD|get|get( $name ) {test;}|A string containting the requested value or null if not available|Returns the requested field from the testclass| PARAMETER|$name|String||The name of the field to get| PARAMETER|$atest|Integer||A test for sorting| METHOD|atest|public function atest()|A test for sorting "strings here" or "strings there"|Test just| FIELD|XTAL|const XTAL[test] = 0x002|A test for sorting| FIELD|TEST|const TEST = 0x004|A test| </apidoc>
The syntax of the parsed data is a keyword, followed by a set of parameters separated by the | character.
The following keywords and parameters are currently supported.
OBSERVE The CLASS keyword can occur only once, and must be the first keyword in the dataset.
The PARAMETER keyword is used to document a parameter associated with a method. This keyword needs to be superceded by a METHOD keyword or an error will be raised. All parameters will be associated with the last previously defined method.
No configuration needed.
None at the moment
Todo: * Add a Throws parameter to the METHOD keyword