Update 'qmk generate-api' to only publish pure DD keymaps (#24782)

This commit is contained in:
Joel Challis 2025-04-23 03:10:14 +01:00 committed by GitHub
parent c6a93b5a56
commit da2e897f55
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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',