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

Clean up documentation #821

Closed
rmb938 opened this issue Oct 21, 2015 · 7 comments
Closed

Clean up documentation #821

rmb938 opened this issue Oct 21, 2015 · 7 comments

Comments

@rmb938
Copy link
Contributor

rmb938 commented Oct 21, 2015

The current documentation seems very random and the api docs are not well organized so finding specific information is difficult.

@rmb938
Copy link
Contributor Author

rmb938 commented Oct 21, 2015

Also are the docs more focused on github or ReadTheDocs? If ReadTheDocs using sphinx could help with organization.

See http://sphinx.readthedocs.org/en/latest/

@dnephin
Copy link
Contributor

dnephin commented Oct 21, 2015

The api docs (http://docker-py.readthedocs.org/en/latest/api/) are ordered alphabetically, which seems logical to me. How would you suggest changing it?

@shin-
Copy link
Contributor

shin- commented Oct 22, 2015

In addition to what @dnephin said, there is a discussion about using Sphinx here: #454

@rmb938
Copy link
Contributor Author

rmb938 commented Oct 22, 2015

Well more of adding categories so I can click a link and only see all the api's related to images, or all the apis related to containers, ect..

The current layout just seems like a lot of information all on one page without anyway for drilling down and seeing specific apis.

So an example would be:

Someone is relatively new to docker and knows how to use commands but now wants to build things on top of the api. Looks at the docker-py RTD and sees a whole page of API docs but they are just interested in API's to do with containers. So now they have to scroll and look or CTRL+F for key words to find certain things.

There is also very few examples for things. So if someone new to python or just doesn't want to look through the api page wanting to do something i.e creating a new container, there isn't something that they can just look at and easily understand. Yes there are examples for port bindings and using volumes but those examples could be to complex for someone new to python or wanting to just get up and running very quickly.

@shin-
Copy link
Contributor

shin- commented Oct 22, 2015

Your last paragraph seems to point at some sort of quickstart guide, which could potentially be a good idea. It would probably assume the reader already knows python, though.

We could potentially separate the different API methods thematically, but that might cause confusion considering all of them still exist as methods of the same docker.Client class. Could be worked around by having a "Client index" that lists all the methods and links to the different pages, but the page hops might be irritating to some level.

@rmb938
Copy link
Contributor Author

rmb938 commented Oct 22, 2015

Yea a quickstart guide is what I was going for.

Also with sphinx at least the different API methods wouldn't need to be under different pages. I believe you just need to give it a different type of header and it will automatically group things in the left navbar. So under "Client API" there would be a container group or a images group and clicking that would scroll the page to that specific group.

@bfirsh
Copy link
Contributor

bfirsh commented Nov 28, 2016

Fixed in #1186! Also, continued "clean up documentation" discussion can continue in #836. :)

@bfirsh bfirsh closed this as completed Nov 28, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants