-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add API Documentation #5
Comments
The guy behind DocBlox made up a demo theme for pear: http://demo.docblox-project.org/pear/ It's easy to theme, we could do a pear2 version pretty easily from what I can tell. |
I'm that guy and creating a theme is rather easy (depending upon the level of customization ;)). I am available to help in creating a theme for PEAR2; let me know if you'd like me to assist with this. |
I think this feature is important enough that it should be inside PEAR2_SimpleChannelFrontend, but I'm not sure of the best way to integrate it. A couple thoughts:
@mvriel Is there an API we can use or some way to pass a .tgz file to generate docs for, or do we have to extract them first? |
I disagree that is should be in the simple channel frontend, defeats the whole point of "simple" and being a frontend for the channel server. As a plugin, sure. my 2 cents |
@helgi You're assuming docblox and API documentation can't be integrated 'simply' :-) |
It is a whole new dependency or distributed with the package, it would increase the size that much more. I feel like it's more of an optional thing to be honest. |
When bundled in the .phar it's not that big of deal, Pyrus is bundled of course. So do you think it should be completely static files generated when a release is made? I'm fine with that too, but as maintainer of a few PEAR channels, I'd love to have easily integrated API docs. |
@saltybeagle currently DocBlox does not support archives as sources (though that would be a cool addition!); there is however a programmatic API in addition to the command line task runner. I get the feeling that you consider to integrate DocBlox to generate the documentation on-the-fly; if so, I can not recommend that. Even with the speed improvements the execution still takes at least 1 or 2 seconds for a small project up to a few minutes for a larger project. (to give an impression: DocBlox takes 14 seconds to create it's own documentation from scratch and 4 seconds when parsing incrementally). Additionally, bundling might not work out well; not only due the size (which is not that big if you leave out the PDF generation binary) but also because DocBlox updates regularly (at least once a month) and I do not know how often PEAR2_SimpleChannelFrontend is being packaged. |
Update: As of version 0.12.0 DocBlox supports documenting phar archives directly |
DocBlox is already capable of parsing the contents of a tgz file using a By running the command: 'docblox -d phar:///my_archive.tgz'; since When testing it out I noticed that currently there is a bug with the On Mon, 2011-06-13 at 19:28 -0700, saltybeagle wrote:
|
It would be great to add [auto-generated] API documentation for packages. This could be done using DocBlox (https://github.com/mvriel/docblox).
The text was updated successfully, but these errors were encountered: