summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorQMK Bot <hello@qmk.fm>2023-12-06 04:56:04 +0000
committerQMK Bot <hello@qmk.fm>2023-12-06 04:56:04 +0000
commit4e836dd6cf3a498196c6f07fd4075dc4bfec96e7 (patch)
tree02f0abaf2fb59e3c44eea8b28193db2c3934ea82 /lib
parent51ce4ae8ad80e90b51bcada363fbe8b18a54320e (diff)
parentf1043e3a92c8c0529357b5e5628cdf986ce39837 (diff)
Merge remote-tracking branch 'origin/master' into develop
Diffstat (limited to 'lib')
-rwxr-xr-xlib/python/qmk/cli/generate/api.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/python/qmk/cli/generate/api.py b/lib/python/qmk/cli/generate/api.py
index 1948b483a1..4a24f8f7fd 100755
--- a/lib/python/qmk/cli/generate/api.py
+++ b/lib/python/qmk/cli/generate/api.py
@@ -6,6 +6,7 @@ import json
from milc import cli
+import qmk.path
from qmk.datetime import current_datetime
from qmk.info import info_json
from qmk.json_schema import json_load
@@ -126,9 +127,10 @@ def generate_api(cli):
# Populate the list of JSON keymaps
for keymap in list_keymaps(keyboard_name, c=False, fullpath=True):
+ keymap_rel = qmk.path.under_qmk_firmware(keymap)
kb_json['keymaps'][keymap.name] = {
# TODO: deprecate 'url' as consumer needs to know its potentially hjson
- 'url': f'https://raw.githubusercontent.com/qmk/qmk_firmware/master/{keymap}/keymap.json',
+ 'url': f'https://raw.githubusercontent.com/qmk/qmk_firmware/master/{keymap_rel}/keymap.json',
# Instead consumer should grab from API and not repo directly
'path': (keymap / 'keymap.json').as_posix(),