diff options
| author | Yang Liu <liuyang22@iscas.ac.cn> | 2025-10-17 19:01:37 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-10-17 13:01:37 +0200 |
| commit | 88aefd44adea974b5f6f5b393141b1e165f403c3 (patch) | |
| tree | ee8d627af35c0838fcb73d9720747e24e10e8306 /docs/gen | |
| parent | c8f6041ab0cecf777aea51303efb08cf0781b2ce (diff) | |
| download | box64-88aefd44adea974b5f6f5b393141b1e165f403c3.tar.gz box64-88aefd44adea974b5f6f5b393141b1e165f403c3.zip | |
[ENV] Added a new BOX64_ARCH option (#3076)
Diffstat (limited to 'docs/gen')
| -rw-r--r-- | docs/gen/gen.py | 4 | ||||
| -rw-r--r-- | docs/gen/usage.json | 28 |
2 files changed, 30 insertions, 2 deletions
diff --git a/docs/gen/gen.py b/docs/gen/gen.py index e17b67fc..6dd77d84 100644 --- a/docs/gen/gen.py +++ b/docs/gen/gen.py @@ -63,8 +63,8 @@ This configuration will apply the specified settings application-wide to any exe for entry in data: categories[entry["category"]].append(entry) - # Put "Performance" at the top - sorted_categories = sorted(categories.items(), key=lambda x: x[0] != "Performance") + # Put "Performance" at the top, then sort the rest alphabetically + sorted_categories = sorted(categories.items(), key=lambda x: (x[0] != "Performance", x[0])) for category, entries in sorted_categories: md_file.write(f"## {category}\n\n") for entry in entries: diff --git a/docs/gen/usage.json b/docs/gen/usage.json index 53cc74b5..f96bb1c5 100644 --- a/docs/gen/usage.json +++ b/docs/gen/usage.json @@ -36,6 +36,34 @@ ] }, { + "name": "BOX64_ARCH", + "description": "Specify the architecture in rcfiles to which the current entry applies. This option only takes effect when used inside rcfiles.", + "category": "Compatibility", + "wine": false, + "options": [ + { + "key": "`arm64`", + "description": "Only apply current entry for AArch64.", + "default": false + }, + { + "key": "`la64`", + "description": "Only apply current entry for LoongArch64.", + "default": false + }, + { + "key": "`rv64`", + "description": "Only apply current entry for RISC-V.", + "default": false + }, + { + "key": "`<empty>`", + "description": "Apply current entry for all architectures, will be replaced by more specific entries.", + "default": true + } + ] + }, + { "name": "BOX64_ARGS", "description": "Arguments to pass to the guest program, only valid if there is no existing arguments.", "category": "Arguments", |