Skip to content

Commit

Permalink
Update documentation generator with class descriptions
Browse files Browse the repository at this point in the history
  • Loading branch information
ideoforms committed Nov 8, 2023
1 parent 53181d0 commit 01e18ce
Show file tree
Hide file tree
Showing 2 changed files with 130 additions and 126 deletions.
6 changes: 4 additions & 2 deletions auxiliary/scripts/generate-node-python-bindings.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ def generate_all_bindings():
folder = re.sub(".*node/", "", source_file)
folder = os.path.dirname(folder)
if folder != folder_last:
output_markdown += " |\n## " + folder + "\n\n"
output_markdown += "\n## " + folder + "\n\n"
folder_last = folder
class_category = folder
class_categories[class_category] = []
Expand Down Expand Up @@ -169,7 +169,7 @@ def extract_docs(doxygen):

output_markdown_params = ", ".join(
("%s=%s" % (param["name"], param["default"])) for param in constructor_parameter_sets[0])
output_markdown += "- **%s** `(%s)`\n" % (class_name, output_markdown_params)
output_markdown += "- **%s**: %s `(%s)`\n" % (class_name, class_docs, output_markdown_params)
class_categories[class_category].append(class_name)
return output, output_markdown, class_categories

Expand All @@ -188,6 +188,8 @@ def extract_docs(doxygen):
'''.format(bindings=bindings)

if args.markdown:
print("# Node reference library")
print()
print(markdown)
elif args.table:
output_table = "| Category | Classes |\n"
Expand Down
Loading

0 comments on commit 01e18ce

Please sign in to comment.