-
Notifications
You must be signed in to change notification settings - Fork 23.8k
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
docker modules: improve documentation of list options #62179
docker modules: improve documentation of list options #62179
Conversation
The test
|
18c8e0b
to
c362e8e
Compare
I split up the PR into two commits, one which should work right now, and the other in devel...felixfontein:docker-use-elements-docs-return which needs additional core support. |
c362e8e
to
508f768
Compare
ready_for_review Especially the changes to |
@@ -47,6 +47,7 @@ | |||
- List of Compose file names relative to I(project_src). Overrides C(docker-compose.yml) or C(docker-compose.yaml). | |||
- Files are loaded and merged in the order given. | |||
type: list | |||
elements: path |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice, haven't heard of it :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It has only been around since #59244, i.e. it is available only for 2.9 and devel.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
cool, thanks, will know!
@@ -692,6 +712,7 @@ | |||
description: | |||
- Mount a tmpfs directory | |||
type: list | |||
elements: str |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There are some points which could be improved too while you are here :), e.g.
- some descriptions end with dots, some not
- in
comparisons
's parameter there are big bunches of texts, could be split - some sentences of descriptions are in quotes (without need)
- too long sentences happen
- seealso section could be added (at list with general links to the docker documentation, and other related docker modules)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These are things that can also be backported to stable-2.8, so I'd rather do that in another PR.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
shipit
@Andersson007 also thanks for reviewing this one! |
thank you for improving the documentation! |
(cherry picked from commit a59b9d4)
SUMMARY
Since #59244 was merged, list options can be documented better. This PR adds the new feature to all docker modules.
I've also added this for return data, even though it's not supported yet.
ISSUE TYPE
COMPONENT NAME
docker_compose
docker_container
docker_host_info
docker_image
docker_image_info
docker_network
docker_node
docker_node_info
docker_prune
docker_stack
docker_swarm
docker_swarm_info
docker_swarm_service