Switch NFDocs directive to use parameter tables instead of bullet lists

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:15:42 -06:00
parent ed37b5036a
commit 5362d16fad
Signed by: millironx
GPG key ID: 139C07724802BC5D

View file

@ -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