From 168fe679044ba87f3a2f59e79bdba85d1f390bc7 Mon Sep 17 00:00:00 2001 From: Yang Liu Date: Fri, 20 Jun 2025 03:06:03 +0800 Subject: [DOCS] Performance as the top section in USAGE.md (#2760) --- docs/gen/gen.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'docs/gen/gen.py') diff --git a/docs/gen/gen.py b/docs/gen/gen.py index ee20999b..e17b67fc 100644 --- a/docs/gen/gen.py +++ b/docs/gen/gen.py @@ -63,7 +63,9 @@ This configuration will apply the specified settings application-wide to any exe for entry in data: categories[entry["category"]].append(entry) - for category, entries in categories.items(): + # Put "Performance" at the top + sorted_categories = sorted(categories.items(), key=lambda x: x[0] != "Performance") + for category, entries in sorted_categories: md_file.write(f"## {category}\n\n") for entry in entries: md_file.write(f"### {entry['name']}\n\n{entry['description']}{' Availble in WowBox64.' if entry['wine'] else ''}\n\n") -- cgit 1.4.1