summaryrefslogtreecommitdiff
path: root/docs/templates/modules_by_category.rst.j2
diff options
context:
space:
mode:
authorMatt Martz <matt@sivel.net>2020-05-13 21:14:53 -0500
committerGitHub <noreply@github.com>2020-05-13 19:14:53 -0700
commit4c4406b2df3eb23ae0015067fa8c026777cd961e (patch)
tree6b0f391891bca8c0911b6862127f5c4be4cdf997 /docs/templates/modules_by_category.rst.j2
parentc43f275c7e7f51f6506fa15e451bf48237c1bd91 (diff)
downloadansible-4c4406b2df3eb23ae0015067fa8c026777cd961e.tar.gz
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>
Diffstat (limited to 'docs/templates/modules_by_category.rst.j2')
-rw-r--r--docs/templates/modules_by_category.rst.j23
1 files changed, 3 insertions, 0 deletions
diff --git a/docs/templates/modules_by_category.rst.j2 b/docs/templates/modules_by_category.rst.j2
index 0b8f4d0d28..7763528448 100644
--- a/docs/templates/modules_by_category.rst.j2
+++ b/docs/templates/modules_by_category.rst.j2
@@ -10,5 +10,8 @@ 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 %}