Re: How to publish docs for a PECL package

From: Date: Thu, 04 Dec 2008 23:02:24 +0000
Subject: Re: How to publish docs for a PECL package
References: 1 2 3 4 5  Groups: php.pecl.dev 
Request: Send a blank email to pecl-dev+get-5962@lists.php.net to get a copy of this message
Am Wed, 3 Dec 2008 17:03:21 -0800 schrieb philip@roshambo.org (Philip Olson): > > On 3 Dec 2008, at 08:34, Elizabeth M Smith wrote: > > > Hannes Magnusson wrote: > >> On Wed, Dec 3, 2008 at 14:51, Olivier Hill <ohill@php.net> wrote: > >>> On Wed, Dec 3, 2008 at 7:43 AM, Christian Hammers > >>> <ch@lathspell.de> wrote: > >>>> Isn't it possible that the pecl archive automatically extracts > >>>> the API > >>>> specs using phpdoc, doxygen or the "proto" lines and generate > >>>> an HTML > >>>> API documentation? > >>> Yes, there is a script that extract proto lines and generates > >>> valid XML Docbook skeleton :) > >> > >> http://cvs.php.net/viewvc.cgi/phpdoc/scripts/docgen/ > >> (uses > >> reflection) > >> > >> Then "fill in the blanks" and remove not used sections > >> (role="changelog", role="unicode", role="errors"..) if > >> any. > >> Note: Do not remove the role="parameters" section, even if the > >> function doesn't take arguments. use the &no.function.parameters; > >> entity. > >> > >> See also > >> http://news.php.net/php.pecl.dev/5854 and > >> http://news.php.net/php.pecl.dev/5872 > >> > >> -Hannes > > > > Hmm, great information, this should probably be put somewhere that > > people can find it easily (wiki at least?) > > Please test the process by following this new HOWTO: > > http://wiki.php.net/doc/scratchpad/pecldocs > > It's in the scratchpad because it's still being scratched out but it > would be most excellent if someone new (and old) to the process > would follow it and ask questions in order to help improve docgen and > the HOWTOs. Feel free to edit the wiki entries too. > > And FWIW, Olivier was referring to xml_proto.php but within the last > few months the reflection based docgen was created as a replacement. docgen seems unable to get the types and names of the arguments from PECL methods. I assume that my "proto" lines inside the *.c do not get into the shared object. Is there any workaround? If so it should be documented, too. Warnings: - en/reference/idn/functions/idn-to-ascii.xml -- Parameter name not found, param1 used -- Type hint for parameter `1' not found, 'string' used bye, -christian-

« previous php.pecl.dev (#5962) next »