From f7744f94633a6c257a8ed7f9f6ee0986f9014bc5 Mon Sep 17 00:00:00 2001 From: "Thomas A. Christensen II" <25492070+MillironX@users.noreply.github.com> Date: Mon, 10 Jan 2022 17:16:04 -0600 Subject: [PATCH] Remove parameter bullet list generating function Signed-off-by: Thomas A. Christensen II <25492070+MillironX@users.noreply.github.com> --- nfdocs-parser.py | 19 ------------------- 1 file changed, 19 deletions(-) diff --git a/nfdocs-parser.py b/nfdocs-parser.py index 7a6098e..6bbe240 100755 --- a/nfdocs-parser.py +++ b/nfdocs-parser.py @@ -25,25 +25,6 @@ def definition_type(signature): # Return the results return def_name, def_type -def params_to_list(params): - if "tuple" in params.keys(): - tuple_item = nodes.list_item() - if "name" in params.keys(): - tuple_item += nodes.paragraph(text=params["name"]) - tuple_item += nodes.paragraph(text="Tuple:") - tuple_list = nodes.bullet_list() - for io in params["tuple"]: - tuple_list += params_to_list(io) - tuple_item += tuple_list - return tuple_item - else: - io_item = nodes.list_item() - if "name" in params.keys(): - io_item += nodes.paragraph(text=params["name"]) - io_item += nodes.paragraph(text=f"Type: {params['type']}") - io_item += nodes.paragraph(text=params["description"]) - return io_item - def params_to_table(type, params): # Create a table params_table = nodes.table()