mirror of
https://github.com/MillironX/nfdocs-parser.git
synced 2024-11-21 16:46:05 +00:00
Add capitalization for section titles
Signed-off-by: Thomas A. Christensen II <25492070+MillironX@users.noreply.github.com>
This commit is contained in:
parent
7b9b9948cc
commit
6b0fee69b2
1 changed files with 2 additions and 2 deletions
|
@ -29,7 +29,7 @@ def params_to_table(type, params):
|
|||
# Create a table
|
||||
params_table = nodes.table()
|
||||
if type:
|
||||
params_table += nodes.title(text=type)
|
||||
params_table += nodes.title(text=type.capitalize())
|
||||
|
||||
# Make it two columns wide
|
||||
params_tgroup = nodes.tgroup(cols=2)
|
||||
|
@ -160,7 +160,7 @@ class NFDocs(Directive):
|
|||
# Try to convert each definition to a node
|
||||
for block_type, block_docs in docstrings.items():
|
||||
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():
|
||||
proc_section = nodes.section()
|
||||
proc_section += nodes.title(text=proc_name)
|
||||
|
|
Loading…
Reference in a new issue