diff --git a/.github/workflows/merge-actions.yaml b/.github/workflows/merge-actions.yaml index 90d7fee..89fef72 100644 --- a/.github/workflows/merge-actions.yaml +++ b/.github/workflows/merge-actions.yaml @@ -2,7 +2,6 @@ on: push: branches: - main - - docs jobs: generate_doc: name: Generate the documentation from the JSON Schemas diff --git a/.utilities/generate_controller_tables.py b/.utilities/generate_controller_tables.py index 10d37b7..943a37c 100644 --- a/.utilities/generate_controller_tables.py +++ b/.utilities/generate_controller_tables.py @@ -67,7 +67,13 @@ def process_controller(path, level = 1): with open(f"{path}/config.json", "rt", encoding="utf-8") as json_file: controller = json.loads(json_file.read()) image_url = f"https://raw.githubusercontent.com/Wolfy76700/ControllerDatabase/main/{path}/image.png" - result = f"{'#'*level} {controller['name']}\n\n![{controller['name']}]({image_url})\n\n" + result = f"{'#'*level} {controller['name']}\n" + result += f""" + +{controller['name']} + + +""" if controller.get("source"): result += f"*More information: {controller.get('source')}*\n\n" result += f"""{'#'*(level+1)} Functions @@ -88,7 +94,9 @@ def process_controller(path, level = 1): for variant in controller.get("variants"): result += f"""{'#'*(level+2)} {variant['name']} -![{variant['name']}](https://raw.githubusercontent.com/Wolfy76700/ControllerDatabase/main/{path}/{variant['image']}) + +{variant['name']} + """ result += f"\n\n" @@ -103,10 +111,9 @@ def process_manufacturer(path, level=1): list_folders.sort() if not list_folders: return("") - result = f"{'#'*level} {manufacturer['name']}\n\n
\n\n" + result = f"{'#'*level} {manufacturer['name']}\n\n" for folder in list_folders: result += process_controller(folder.replace("\\", "/"), level+1) - result += "
\n\n" return(result) def process_category(path, level=1): @@ -116,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
\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 += "
\n\n" return(result) def process_all(): diff --git a/leverless/keybox/fusion/image.png b/leverless/keybox/fusion/image.png index fcc66f8..0da9c6e 100644 Binary files a/leverless/keybox/fusion/image.png and b/leverless/keybox/fusion/image.png differ diff --git a/leverless/keybox/fusion/mirror.png b/leverless/keybox/fusion/mirror.png index 4aa808a..fab5608 100644 Binary files a/leverless/keybox/fusion/mirror.png and b/leverless/keybox/fusion/mirror.png differ