Skip to content
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

More professional feel for API reference #39

Open
djnugent opened this issue Sep 21, 2015 · 10 comments
Open

More professional feel for API reference #39

djnugent opened this issue Sep 21, 2015 · 10 comments

Comments

@djnugent
Copy link

Original posted here dronekit/dronekit-python#310 (comment)

The API reference page for dronekit python is hard to follow and looks very foreign to a programmer. I have stopped going there because it is easier to look at the source code then find what I am looking for on that page.

I suggest we try to match the format of current python API documentation. This will make the experience more familiar and easy to comprehend.

Here are a few python examples:
http://docs.opencv.org/modules/highgui/doc/reading_and_writing_images_and_video.html
https://docs.python.org/2/library/logging.html

Notable characteristics:
-Header/page break for every function(i.e. distinguishable dividers)
-Bold function names
-shows how the function is called in one line
-Lists and describes parameters
-Plenty of white space!
-Class name is listed in front of function name(when applicable)

Non essentials:
-Basic color scheme. Not too crazy
-Show deprecated methods

Other examples:
-Java docs has a very clean, extensible layout. I have never seen it used with python but is a great resource for an API

@hamishwillee
Copy link
Contributor

Also maybe expand out the API reference as a TOC in the sidebar.

@kaitlynhova - I agree this could be better. Do you think you could find time to improve this further?

@kaitlynhova
Copy link
Collaborator

Yes! Now that the dronekit docs have been around for a few months l think it'd be great to improve on the overall look and refine how we display our info. -- What do you think of this new look (via Johan) for desktop and mobile? -->
desktop_01
desktop_02
desktop_search_01
desktop_search_02
desktop_search_03
desktop_search_04
desktop_search_05
desktop_search_06
mobile_wip_01
mobile_wip_02
mobile_wip_03
mobile_wip_04

@djnugent
Copy link
Author

That looks nice!
I think it could use bars behind header(but that is just me)

I was commenting specifically on the API Reference page which wasn't shown in those sketches.
http://python.dronekit.io/automodule.html

@kaitlynhova
Copy link
Collaborator

ah, gotcha -- If we update the styles on the API reference page it will update how all of the docs look, which is probably a good thing at this point.

@hamishwillee
Copy link
Contributor

@kaitlynhova @djnugent Yes, this is MUCH prettier.

If we update the styles on the API reference page it will update how all of the docs look, which is probably a good thing at this point.

Yes, it is likely to be a little better, but it probably won't address most of the points Daniel made (or add the class/function structure into the sidebar). Can we have some examples of how you think it will look in the API Reference?

@hamishwillee
Copy link
Contributor

@kaitlynhova You've gone quiet on this :-) Any progress/ETA?

@kaitlynhova
Copy link
Collaborator

@hamishwillee : sorry for the delay! My time has been spoken for in order to get Blackbox out the door. I'll ask and see if I can get this going on Dronekit and get back to y'all.

@hamishwillee
Copy link
Contributor

Thanks @kaitlynhova - that'll teach you to have other priorities :-)

@kaitlynhova
Copy link
Collaborator

Hey y'all --- I don't have time to knock this out right now because of other priorities (Blackbox), but I'd really like to keep this issue open for the future. These are all good ideas, but I wish that I had more time right now.

@hamishwillee
Copy link
Contributor

@kaitlynhova Understood. Hope you have time to look at this again sometime soon. I'll keep nagging on a regular basis.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants