Add check for zero docs of that type

Signed-off-by: Thomas A. Christensen II <25492070+MillironX@users.noreply.github.com>
This commit is contained in:
Thomas A. Christensen II 2022-01-10 17:38:32 -06:00
parent 6b0fee69b2
commit c8d642002b
Signed by: millironx
GPG key ID: 139C07724802BC5D

View file

@ -159,6 +159,7 @@ class NFDocs(Directive):
# Try to convert each definition to a node
for block_type, block_docs in docstrings.items():
if len(block_docs) > 0:
block_section = nodes.section()
block_section += nodes.title(text=block_type.capitalize())
for proc_name, proc_docs in block_docs.items():