Skip to content

Commit

Permalink
Removed unnecessary detail folds
Browse files Browse the repository at this point in the history
  • Loading branch information
Wolfy76700 committed Mar 18, 2024
1 parent 99bb1ef commit 08bceb4
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions .utilities/generate_controller_tables.py
Original file line number Diff line number Diff line change
Expand Up @@ -111,10 +111,9 @@ def process_manufacturer(path, level=1):
list_folders.sort()
if not list_folders:
return("")
result = f"{'#'*level} {manufacturer['name']}\n\n<details>\n\n"
result = f"{'#'*level} {manufacturer['name']}\n\n"
for folder in list_folders:
result += process_controller(folder.replace("\\", "/"), level+1)
result += "</details>\n\n"
return(result)

def process_category(path, level=1):
Expand All @@ -124,10 +123,9 @@ def process_category(path, level=1):
list_folders.sort()
if not list_folders:
return("")
result = f"{'#'*level} {category['name']}\n\n*{category['desc']}*\n\n<details>\n\n"
result = f"{'#'*level} {category['name']}\n\n*{category['desc']}*\n\n"
for folder in list_folders:
result += process_manufacturer(folder.replace("\\", "/"), level+1)
result += "</details>\n\n"
return(result)

def process_all():
Expand Down

0 comments on commit 08bceb4

Please sign in to comment.