1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

Asorted docs fixed (#36672)

This PR includes:
- A fix to untemplated {{ plugin_type }} in docs
- Remove the additional info on how to edit module docs (see #36667)
- Add missing delimiter
This commit is contained in:
Dag Wieers 2018-02-24 14:06:12 +01:00 committed by GitHub
parent ba370b178d
commit 3016bc7351
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 5 additions and 5 deletions

View file

@ -22,7 +22,7 @@
</script> </script>
<p> <p>
Copyright © 2017 Red Hat, Inc. Copyright © 2018 Red Hat, Inc.
<br> <br>
{%- if last_updated %} {%- if last_updated %}
@ -30,6 +30,6 @@
{%- endif %} {%- endif %}
</p> </p>
<p> <p>
Ansible docs are generated from <a href="https://github.com/ansible/ansible">GitHub sources</a> using <a href="http://sphinx-doc.org/">Sphinx</a> using a theme provided by <a href="http://readthedocs.org">Read the Docs</a>. {% if pagename.endswith("_module") %}Module documentation is not edited directly, but is generated from the source code for the modules. To submit an update to module docs, edit the 'DOCUMENTATION' metadata in the <a href="https://github.com/ansible/ansible/tree/devel/lib/ansible/modules">modules directory</a> of the <a href="https://github.com/ansible/ansible/">core source code repository</a>. {% endif %} Ansible docs are generated from <a href="https://github.com/ansible/ansible">GitHub sources</a> using <a href="http://sphinx-doc.org/">Sphinx</a> using a theme provided by <a href="http://readthedocs.org">Read the Docs</a>.
</p> </p>
</footer> </footer>

View file

@ -25,7 +25,7 @@
.. toctree:: :maxdepth: 1 .. toctree:: :maxdepth: 1
{% for module in info['_modules'] | sort %} {% for module in info['_modules'] | sort %}
:ref:`@{ module }@`{% if module_info[module]['deprecated'] %} **(D)**{% endif%} @{ module_info[module]['doc']['short_description'] }@ :ref:`@{ module }@`{% if module_info[module]['deprecated'] %} **(D)**{% endif%} -- @{ module_info[module]['doc']['short_description'] }@
{% endfor %} {% endfor %}
{% endfor %} {% endfor %}

View file

@ -211,7 +211,7 @@ Examples
Return Values Return Values
------------- -------------
Common return values are documented :ref:`here <common_return_values>`, the following are the fields unique to this {{plugin_type}}: Common return values are documented :ref:`here <common_return_values>`, the following are the fields unique to this @{ plugin_type }@:
.. raw:: html .. raw:: html
@ -287,7 +287,7 @@ Author
~~~~~~ ~~~~~~
{% for author_name in author %} {% for author_name in author %}
* @{ author_name }@ * @{ author_name }@
{% endfor %} {% endfor %}