Update 'qmk generate-api' to only publish pure DD keymaps (#24782)
This commit is contained in:
		
							parent
							
								
									c6a93b5a56
								
							
						
					
					
						commit
						da2e897f55
					
				
					 1 changed files with 5 additions and 0 deletions
				
			
		| 
						 | 
				
			
			@ -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',
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue