Add capitalization for section titles

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:35:05 -06:00
parent 7b9b9948cc
commit 6b0fee69b2

View file

@ -29,7 +29,7 @@ def params_to_table(type, params):
# Create a table # Create a table
params_table = nodes.table() params_table = nodes.table()
if type: if type:
params_table += nodes.title(text=type) params_table += nodes.title(text=type.capitalize())
# Make it two columns wide # Make it two columns wide
params_tgroup = nodes.tgroup(cols=2) params_tgroup = nodes.tgroup(cols=2)
@ -160,7 +160,7 @@ class NFDocs(Directive):
# Try to convert each definition to a node # Try to convert each definition to a node
for block_type, block_docs in docstrings.items(): for block_type, block_docs in docstrings.items():
block_section = nodes.section() block_section = nodes.section()
block_section += nodes.title(text=block_type) block_section += nodes.title(text=block_type.capitalize())
for proc_name, proc_docs in block_docs.items(): for proc_name, proc_docs in block_docs.items():
proc_section = nodes.section() proc_section = nodes.section()
proc_section += nodes.title(text=proc_name) proc_section += nodes.title(text=proc_name)