From 5362d16fad2f6e550e6e6ff31c6a4db01af278c8 Mon Sep 17 00:00:00 2001 From: "Thomas A. Christensen II" <25492070+MillironX@users.noreply.github.com> Date: Mon, 10 Jan 2022 17:15:42 -0600 Subject: [PATCH] Switch NFDocs directive to use parameter tables instead of bullet lists Signed-off-by: Thomas A. Christensen II <25492070+MillironX@users.noreply.github.com> --- nfdocs-parser.py | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/nfdocs-parser.py b/nfdocs-parser.py index 3400cac..7a6098e 100755 --- a/nfdocs-parser.py +++ b/nfdocs-parser.py @@ -185,14 +185,8 @@ class NFDocs(Directive): io_methods = ["input", "output"] for met in io_methods: if met in proc_docs.keys(): - io_section = nodes.section() - io_section += nodes.title(text=met) - io_list = nodes.bullet_list() - for io in proc_docs[met]: - io_list += params_to_list(io) - io_section += io_list - proc_section += io_section - self.state_machine.document.note_implicit_target(io_section) + io_table = params_to_table(met, proc_docs[met]) + proc_section += io_table self.state_machine.document.note_implicit_target(proc_section) block_section += proc_section