From 8e957aae82c5421c30966a58510206b88f8a3a9e Mon Sep 17 00:00:00 2001 From: niclas Date: Wed, 7 Feb 2024 10:36:01 +0100 Subject: [PATCH] Chg [generator] cleanup --- tools/mkdocs/generator.py | 35 ----------------------------------- 1 file changed, 35 deletions(-) diff --git a/tools/mkdocs/generator.py b/tools/mkdocs/generator.py index 81e3f36..7deeba8 100644 --- a/tools/mkdocs/generator.py +++ b/tools/mkdocs/generator.py @@ -341,41 +341,6 @@ def create_index(galaxies): index_output += f'- [{galaxie.name}](./{galaxie.json_file_name}/index.md)\n' index_output += CONTRIBUTING return index_output - -# def create_galaxies(galaxies, cluster_dict): -# galaxy_output = {} -# for galaxie in galaxies: -# galaxy_output[galaxie.json_file_name] = galaxie.create_entry(cluster_dict) -# return galaxy_output - -# def create_xy_chart(title, width, height, x_axis, y_axis, bar): -# output = "" -# output += f'```mermaid\n' -# output += f'---\n' -# output += f'config:\n' -# output += f' xyChart:\n' -# output += f' width: {width}\n' -# output += f' height: {height}\n' -# output += f'---\n' -# output += f'xychart-beta\n' -# output += f' title "{title}"\n' -# output += f' x-axis [{x_axis}]\n' -# output += f' y-axis "{y_axis}"\n' -# output += f' bar {bar}\n' -# output += f'```\n' -# output += f'\n' -# return output - -# def create_pie_chart(title, cakepieces): -# output = "" -# output += f'```mermaid\n' -# output += f'pie showData\n' -# output += f' title {title}\n' -# for cakepiece in cakepieces: -# output += f' "{cakepiece[0]}" : {cakepiece[1]}\n' -# output += f'```\n' -# output += f'\n' -# return output def get_top_x(dict, x, big_to_small=True): sorted_dict = sorted(dict.items(), key=operator.itemgetter(1), reverse=big_to_small)[:x]