ansible/docs/templates/modules_by_category.rst.j2
Matt Martz 4c4406b2df
Flatten the directory hierarchy of modules (#68966)
* Flatten the directory hierarchy of modules

* Update ignore.txt, flatten units

* Update imports

* Completely flatten the modules directory

* Update sanity ignore

* Fix some sanity test ignores

* Fix relative import

* Fix docs builds without category

* ci_complete

* Clean up docs. ci_complete

* Adjust needs/file alias

* ci_complete

* fix hardcoded ping module paths

Co-authored-by: Matt Davis <mrd@redhat.com>
2020-05-13 19:14:53 -07:00

17 lines
345 B
Django/Jinja

.. _modules_by_category:
{# avoids rST "isn't included in any toctree" errors for module index docs #}
:orphan:
Module Index
============
.. toctree:: :maxdepth: 1
{% for name in categories %}
{# strip out empty category names as a result flattening the dir structure #}
{% if name %}
list_of_@{ name }@_modules
{% endif %}
{% endfor %}