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
Feature: Generate API documentation #31
Comments
Do you know of a nice docblock parser? As with a hook to external API's, integrating it in here would steer away from the core functionality. |
I agree with Simon. |
We've been using this at SilverStripe for ages, it's pretty useful http://www.apigen.org/ - the SilverStripe CMS API docs at https://api.silverstripe.org are generated using this. |
APIGen seems to work, but not to my personal satisfaction. It's not always picking up the tags between the constants. |
This is really an IDE helper. I guess a seperate module would be justified for that. |
Agree with @axyr. I guess it should be separate. The only possibility would be to integrate triggering a new doc-generator. But even that's quite out of scope after trying a bunch of generators. |
In addition. A generator-module would be nice, where any module (including this one), could call DocGenerator::generate(); for example, and have the generator module figure out what/how/when/where the docs should be generated. |
I'm going to reopen this. Using apigen, this is very easily implemented with very little effort. I think it has added value, since my branch with doc-generator included only took about 6 lines of code to make it work. |
Because it is out of scope and I don't want to maintain it. Who reads generated API pages anyways. It just clutters the Google search results when searching for meaningful information about code. I still need to see an API page generated from code, that is more readable then the code itself (should be)... |
I'm actually unsure if it's really that out of scope. I'd like to see how the interest in this might be going. I'll keep the docs up to date and see where it leads to. I'll see if I can use the extend methods to make it more plug-and-play instead of direct implementation, but I do think you're being too strict here 😉 (That's why I re-opened the issue) |
An API generator can exist without this IDE annotator and vice versa. In my opinion generating API pages based on doc blocks is something different, then generating doc blocks to make it easier to work in an IDE. Sure, both have something to do with doc blocks, but that's all they have in common. So better write something separate, that can maybe merged later on then to have it removed from the idea annotator.. That it is easy to add, does not mean we should do it. |
I agree to the "easy does not mean we should" :) Maybe we need/want to add hooks, something like onAfterAnnotation? |
I've partially started working on a documentation module which relies on IDEAnnotator to generate "good" documentation. |
Would be nice to generate searchable documentation of the code in similar style to http://api.highcharts.com/highcharts or http://api.silverstripe.org/3.3/!
The text was updated successfully, but these errors were encountered: