Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix more
qmk generate-api
fallout from userspace support
After qmk#22222 `list_keymaps(fullpath=True)` returns absolute paths which might point to the userspace directory tree; however, the implementation of `qmk generate-api` expected to get paths relative to `qmk_firmware`. The problem was partially fixed in qmk#22618 for the generated `url` value; however, the `path` value for keymaps was still incorrect (this also made the subsequent code overwrite the `keymap.json` files in the working copy instead of writing those files converted to plain JSON into the API output directory). Fix the `path` value for keymaps to contain the keymap path relative to `qmk_firmware` as it was before the userspace changes, and skip any userspace keymaps which might have been found.
- Loading branch information