autodoc for ansible playbook
Project description
sphinxcontrib-ansibleautodoc
================================================
`sphinxcontrib-ansibleautodoc` is an sphinx extension which can search task in ansible playbook and generate document.
install
----------------
::
pip install sphinxcontrib-ansibleautodoc
and add `'sphinxcontrib.ansibleautodoc'` in extensions in your conf.py.
::
extensions = [
'sphinxcontrib.ansibleautodoc',
]
How to use
------------------------
Currently there is one directive called `ansibleautotask`.
ansibleautotask
````````````````````````````````````
::
.. ansibleautotask:: second task
:playbook: ../ansible/web.yml
The contents of this directive is an ansible task name. If task does not have a name, directive can not find.
`playbook` option is for specify initial ansible playbook. ansibleautodoc scan the playbook and read include and roles as followes. So you need only one playbook file.
Output Example
--------------------
.. image:: images/screenshot-1.png
:scale: 50 %
Related
----------
Ansible
https://ansible.com
License
-------------
2-clause BSD License
================================================
`sphinxcontrib-ansibleautodoc` is an sphinx extension which can search task in ansible playbook and generate document.
install
----------------
::
pip install sphinxcontrib-ansibleautodoc
and add `'sphinxcontrib.ansibleautodoc'` in extensions in your conf.py.
::
extensions = [
'sphinxcontrib.ansibleautodoc',
]
How to use
------------------------
Currently there is one directive called `ansibleautotask`.
ansibleautotask
````````````````````````````````````
::
.. ansibleautotask:: second task
:playbook: ../ansible/web.yml
The contents of this directive is an ansible task name. If task does not have a name, directive can not find.
`playbook` option is for specify initial ansible playbook. ansibleautodoc scan the playbook and read include and roles as followes. So you need only one playbook file.
Output Example
--------------------
.. image:: images/screenshot-1.png
:scale: 50 %
Related
----------
Ansible
https://ansible.com
License
-------------
2-clause BSD License
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file sphinxcontrib_ansibleautodoc-0.0.5.tar.gz
.
File metadata
- Download URL: sphinxcontrib_ansibleautodoc-0.0.5.tar.gz
- Upload date:
- Size: 5.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
73b4032f7a64ec0ac2ba8d85175aa4d78534272260fa4162f2aa1e8d3262d5f4
|
|
MD5 |
e95a1fe68ee7655a2550ae1b57b4bb3c
|
|
BLAKE2b-256 |
9854e17e01dee0627f215378f44c8f502db63ff784022372bfec4a8242495fb6
|