From 86a4de1668fff18a0b46d70efd7911304f916a78 Mon Sep 17 00:00:00 2001 From: Eric Holscher Date: Thu, 29 Jun 2017 10:45:54 -0700 Subject: [PATCH] =?UTF-8?q?Don=E2=80=99t=20show=20modules=20with=20no=20co?= =?UTF-8?q?ntent.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- autoapi/templates/python/module.rst | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/autoapi/templates/python/module.rst b/autoapi/templates/python/module.rst index e9b1490..3b53929 100644 --- a/autoapi/templates/python/module.rst +++ b/autoapi/templates/python/module.rst @@ -1,8 +1,12 @@ +{% if obj.docstring or obj.children %} + {{ obj.name }} {{ "=" * obj.name|length }} .. py:module:: {{ obj.name }} +{% endif %} + {%- if obj.docstring %} .. autoapi-nested-parse::