Change keyboard json format to bring it inline with the current api (#11231)
This commit is contained in:
parent
5619b1d3db
commit
624cafbfd2
2 changed files with 8 additions and 4 deletions
|
@ -36,7 +36,7 @@ def generate_api(cli):
|
|||
keyboard_readme_src = Path('keyboards') / keyboard_name / 'readme.md'
|
||||
|
||||
keyboard_dir.mkdir(parents=True, exist_ok=True)
|
||||
keyboard_info.write_text(json.dumps(kb_all['keyboards'][keyboard_name]))
|
||||
keyboard_info.write_text(json.dumps({'last_updated': current_datetime(), 'keyboards': {keyboard_name: kb_all['keyboards'][keyboard_name]}}))
|
||||
|
||||
if keyboard_readme_src.exists():
|
||||
copyfile(keyboard_readme_src, keyboard_readme)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue