diff options
| author | Yang Liu <liuyang22@iscas.ac.cn> | 2025-06-20 03:06:03 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-06-19 21:06:03 +0200 |
| commit | 168fe679044ba87f3a2f59e79bdba85d1f390bc7 (patch) | |
| tree | 1a4edf24726e8c7b3b36ca7e3efefc9ee47fe9f4 /docs/gen/gen.py | |
| parent | 58f4cc352e2690e9c29ad5dc82ae7ec7df1d2d02 (diff) | |
| download | box64-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.py | 4 |
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") |