about summary refs log tree commit diff stats
path: root/docs/gen/gen.py
diff options
context:
space:
mode:
authorYang Liu <liuyang22@iscas.ac.cn>2025-06-20 03:06:03 +0800
committerGitHub <noreply@github.com>2025-06-19 21:06:03 +0200
commit168fe679044ba87f3a2f59e79bdba85d1f390bc7 (patch)
tree1a4edf24726e8c7b3b36ca7e3efefc9ee47fe9f4 /docs/gen/gen.py
parent58f4cc352e2690e9c29ad5dc82ae7ec7df1d2d02 (diff)
downloadbox64-168fe679044ba87f3a2f59e79bdba85d1f390bc7.tar.gz
box64-168fe679044ba87f3a2f59e79bdba85d1f390bc7.zip
[DOCS] Performance as the top section in USAGE.md (#2760)
Diffstat (limited to 'docs/gen/gen.py')
-rw-r--r--docs/gen/gen.py4
1 files changed, 3 insertions, 1 deletions
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")