-
-
Notifications
You must be signed in to change notification settings - Fork 6.9k
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
Enhance api doc generator #1797
Comments
How are methods? Should we display each method in a separate page? |
Or more generally, what kind of pages will we will have? |
I thought about making it similar to the current docs, one page per class and navigation to methods and properties via anchors. btw. do we want to add support for |
I think we don't need How about putting the details for each method/property/event in a separate page? This will make it easier for users to add and read comments. |
chm is frequently requested. |
Structure is perfect in 1.1 API docs. |
We will provide an online doc viewer, which can replace chm, I think. |
what are the benefits of chm over html page like this? http://stuff.cebe.cc/yii2docs/ As far as I understood it is just packed in one file but still browseable html. |
the set of html generated by the offline template can be used offline ;) |
Yes, but:
|
The online api viewer may support searching. Since php5.4 has a built-in Web, I think as long as you have PHP installed, you should be able to view this online doc. |
Ah, you're talking about offline web-served realtime generator? |
Yes. It's on your local machine. You may view it like a local Web app. |
Should be OK then. |
Just created a
Everything except search is working. |
Chm is the best to use as Doc for many reasons such as:
|
A new version of API docs including the guide is online at http://stuff.cebe.cc/yii2docs/index.html |
Looks great! |
It looks great to me! |
This is invalid reference, I think. @cebe: can you generate a list of such errors so that we can fix them? |
Is it true that methods from traits aren't listed? |
should be listed. See here: http://stuff.cebe.cc/yii2docs/yii_db_activequery.html#methods
yep, red and yellow markers are for classes or properties that could not be found.
not sure about this, we'll have many pages. will try to make such a layout an see how it works. |
I'm just trying to follow how PHP organizes its help pages, since we all like its well commented help pages. |
Another benefit of having separated method pages is that it allows easier integration with IDE (e.g. you want to pop up a help window for a method you are using). |
Is it possible to sort methods and properties ? |
Absolutely possible and I think it should be done. |
sure, committed a change, did not notice it was not sorted yet :) |
Just in case someone has some spare time for tedious work: In yii2 dev repo (
This will output a list of reference link errors and non documented classes,methods,properties, etc... |
APIdocs now have proper markdown parsing and simple code highlighting through php highlight_string function. |
It seems it doesn't display images. |
Can you show an example link? |
fixed. should be up to date in 15min |
API doc generator is done. |
This is a follow up to #1784 and #62.
@inheritDocs
works as expectedThe text was updated successfully, but these errors were encountered: