From 6b0fee69b215806239b90a221bd9f3123bbaded5 Mon Sep 17 00:00:00 2001 From: "Thomas A. Christensen II" <25492070+MillironX@users.noreply.github.com> Date: Mon, 10 Jan 2022 17:35:05 -0600 Subject: [PATCH] Add capitalization for section titles Signed-off-by: Thomas A. Christensen II <25492070+MillironX@users.noreply.github.com> --- nfdocs-parser.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nfdocs-parser.py b/nfdocs-parser.py index 9b92b0d..12d7e9d 100755 --- a/nfdocs-parser.py +++ b/nfdocs-parser.py @@ -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)