Re: the future
| From: | Greg Beaver | Date: | Mon, 28 Jul 2003 15:22:41 +0000 |
| Subject: | Re: the future | ||
| References: | 1 2 | Groups: | php.pear.doc |
| Request: | Send a blank email to pear-doc+get-1133@lists.php.net to get a copy of this message | ||
Alexander Merz wrote:
According to Martin, we have no resources currently to build up an own infrastructure for transforming docbook into something readable.It would be helpful to the list to know that I've realized that for version 2.0 of phpDocumentor, the fledgling "tutorial" spec, which transforms docbook into html, can be adapted into a doc transformation tool with a lot of work. phpDocumentor is changing from just an API-doc generation tool into a manual-generation tool. Some changes planned for 2.0 that could immediately affect the peardoc effort: - all the {@tag } BS used in 1.0 tutorials will be replaced with the proper solution: an xml namespace extension of existing docbook. We will still support {@tag value} in parsing, it will be converted into <phpdocumentor:tag attr1="value" />. The inline {@id} tag will be scrapped, we will just read in the ID directly and modify it if needed. - docbook parsing will be upgraded to have validation (as I learn docbook, this becomes easier, plus Norman Walsh's docbook reference is excellent). There are some validation bugs in the current peardoc generation system, where it doesn't conform to the standard (<void /> should be used for function arguments in a function has no arguments, instead of an empty <paramdef>) - caching of parsed information and complex build dependency information will be saved, so that when a new project is added, only affected files need be re-built. (This, in combination with livedocs will mean that docs need only be re-built on the upload of a release) - it will be possible to reverse-engineer generated docbook and link it to API, which means translations can be linked to documentation elements simply by taking generated files and modifying the text in them. - grouping of elements on any level will be possible, so a class can group template methods together, or group other elements of this nature. Classes and packages can also be grouped in this way (categories, and groups of categories). - api tags (@tag) will be much more flexible, and extendable (this is being worked out), as in @throws can be extended for PEAR to @throws:pear, and this will tell the tag parser to extract information in a specific format such as to assume the @throws argument is a constant, and that the documentation for this constant should be output in a throws table. Also, because the manual can be generated from scratch, and even in chunks, even local users on slow machines with low memory can test their documentation prior to upload and make sure it is good. Another possibility which may be attractive is that a side benefit of phpDocumentor's pluginnable parser will be the possibility to parse API in-code documentation in another format and spit out phpDocumentor-style documentation, or even more enticing, if someone writes docs in docbook for your package, you can parse them, and spit out source code with approximately the same docs. This is obviously a complex idea, and will require some time to evaluate the practical problems involved. We are definitely planning the ability to generate PHP source files with different documentation formats, as this will benefit users who wish to switch from other good doc systems such as doxygen. Very little of the above is set in stone, but it certainly seems pertinent to bring these ideas up in the context of this discussion :) Greg