logo

qmk_firmware

custom branch of QMK firmware git clone https://anongit.hacktivis.me/git/qmk_firmware.git
commit: da2e897f55a85bf6175f0d6ce9d63a7fe9b09202
parent c6a93b5a56c068d654ab2d44aec529dc5d3fac0b
Author: Joel Challis <git@zvecr.com>
Date:   Wed, 23 Apr 2025 03:10:14 +0100

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


Diffstat:

Mlib/python/qmk/cli/generate/api.py5+++++
1 file changed, 5 insertions(+), 0 deletions(-)

diff --git a/lib/python/qmk/cli/generate/api.py b/lib/python/qmk/cli/generate/api.py @@ -131,6 +131,11 @@ def generate_api(cli): if keymap_rel is None: cli.log.debug('Skipping keymap %s (not in qmk_firmware)', keymap) continue + + if (keymap_rel / 'keymap.c').exists(): + cli.log.debug('Skipping keymap %s (not pure dd keymap)', keymap) + continue + 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_rel}/keymap.json',