-
Notifications
You must be signed in to change notification settings - Fork 397
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
how to generate readme (rst) doc for example_module.py ? #337
Comments
@116davinder I generally don't generate them: @jillr creates them as a part of the release process (#327). @jillr or @felixfontein may be able to point you to the relevant documentation. |
@116davinder You can use https://github.com/ansible-network/collection_prep/blob/master/collection_prep/cmd/add_docs.py for generating py -> rst.
|
@tremble I can't, because I'm not really know that tool either. I think it's a tool specific to the Ansible collections team. |
thanks a lot @Akasurde for pointing out, I checked only general and aws repository for this |
…ollections#337) ec2_eni: Fix idempotency when security_groups is specified SUMMARY If security_groups attribute is specified - module always returns Changed = True. Fixes ansible-collections#255. ISSUE TYPE Bugfix Pull Request COMPONENT NAME ec2_eni ADDITIONAL INFORMATION Example: - amazon.aws.ec2_eni: name: my-eni security_groups: - my-sg subnet_id: subnet-123456 Will always return Changed = True. Reviewed-by: Jill R <None>
SUMMARY
does anyone knows how to generate documentation readme ( rst ) from ansible module.py
is there any ansible utility which generates these readme files.
I have tried
ansible-doc -t module example_module
but doesn't seem to generating same type of output.Example:
from: https://github.com/ansible-collections/community.aws/blob/main/plugins/modules/aws_acm_info.py
to: https://github.com/ansible-collections/community.aws/blob/main/docs/community.aws.aws_acm_info_module.rst
The text was updated successfully, but these errors were encountered: