mirror of
https://github.com/qmk/qmk_firmware.git
synced 2025-05-05 05:18:20 +00:00
Update 'qmk generate-api' to only publish pure DD keymaps (#24782)
This commit is contained in:
parent
c6a93b5a56
commit
da2e897f55
@ -131,6 +131,11 @@ def generate_api(cli):
|
|||||||
if keymap_rel is None:
|
if keymap_rel is None:
|
||||||
cli.log.debug('Skipping keymap %s (not in qmk_firmware)', keymap)
|
cli.log.debug('Skipping keymap %s (not in qmk_firmware)', keymap)
|
||||||
continue
|
continue
|
||||||
|
|
||||||
|
if (keymap_rel / 'keymap.c').exists():
|
||||||
|
cli.log.debug('Skipping keymap %s (not pure dd keymap)', keymap)
|
||||||
|
continue
|
||||||
|
|
||||||
kb_json['keymaps'][keymap.name] = {
|
kb_json['keymaps'][keymap.name] = {
|
||||||
# TODO: deprecate 'url' as consumer needs to know its potentially hjson
|
# TODO: deprecate 'url' as consumer needs to know its potentially hjson
|
||||||
'url': f'https://raw.githubusercontent.com/qmk/qmk_firmware/master/{keymap_rel}/keymap.json',
|
'url': f'https://raw.githubusercontent.com/qmk/qmk_firmware/master/{keymap_rel}/keymap.json',
|
||||||
|
Loading…
Reference in New Issue
Block a user