summaryrefslogtreecommitdiff
path: root/docs/templates/modules_by_category.rst.j2
diff options
context:
space:
mode:
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 %}