docs: Replace user setup script with ZMK CLI#3137
Conversation
This deletes the Bash and PowerShell setup scripts in favor of using ZMK CLI. The old setup scripts are broken, since the config repo template uses ZMK version 0.3, while the setup scripts use hardware metadata from the main branch. ZMK CLI doesn't have this issue, because it clones the version of ZMK listed in the config repo to get hardware metadata. Much of the "Installing ZMK" page has been rewritten to give instructions for installing ZMK CLI and using it to create and modify a config repo. The previously-hidden page on ZMK CLI has been added to the sidebar and repurposed into general documentation for the tool.
caksoylar
left a comment
There was a problem hiding this comment.
LGTM. I haven't kept up with the developments in the area but in the future we can consider using something like pyinstaller to reduce the dependencies, especially for Windows.
Also worth considering adding pointers to the CLI in the new shield guide.
Looks like pyinstaller doesn't support any form of cross-compile, but if we can get GitHub actions to run it for each OS, and if we can get it to install into a standard location that's on the PATH variable, that is worth considering. I also wonder if uv might be simpler to use. I'm not sure yet if uv can automatically manage installing Python, but if so, the Windows (11) install would be as simple as
Agreed, though I wanted to do that separately so this part could be done more quickly. |
|
Confirmed on another Windows 11 PC that never had Python installed: uv will automatically download the latest python version when you run The full install process would then be Restart terminal Restart terminal |
|
Do you want to update that? I like the |
|
I think we can go with this for now and investigate uv later. Winget is only preinstalled on Windows 11, so if we do want to switch the documentation to use it, we'll want to either have a fallback for Windows 10 or to explicitly state that you're on your own if you're still using that. We'll also want to decide if Linux and Mac instructions should use uv as well. I'm not sure what is the best way to install uv on other OSes. |
nmunnich
left a comment
There was a problem hiding this comment.
LGTM too, agree that we should go ahead with this and improve it over time as feedback comes in.
This deletes the Bash and PowerShell setup scripts in favor of using ZMK CLI. The old setup scripts are broken, since the config repo template uses ZMK version 0.3, while the setup scripts use hardware metadata from the main branch. ZMK CLI doesn't have this issue, because it clones the version of ZMK listed in the config repo to get hardware metadata. Much of the "Installing ZMK" page has been rewritten to give instructions for installing ZMK CLI and using it to create and modify a config repo. The previously-hidden page on ZMK CLI has been added to the sidebar and repurposed into general documentation for the tool.
This deletes the Bash and PowerShell setup scripts in favor of using ZMK CLI. The old setup scripts are broken, since the config repo template uses ZMK version 0.3, while the setup scripts use hardware metadata from the main branch. ZMK CLI doesn't have this issue, because it clones the version of ZMK listed in the config repo to get hardware metadata. Much of the "Installing ZMK" page has been rewritten to give instructions for installing ZMK CLI and using it to create and modify a config repo. The previously-hidden page on ZMK CLI has been added to the sidebar and repurposed into general documentation for the tool.
This deletes the Bash and PowerShell setup scripts in favor of using ZMK CLI. The old setup scripts are broken, since the config repo template uses ZMK version 0.3, while the setup scripts use hardware metadata from the main branch. ZMK CLI doesn't have this issue, because it clones the version of ZMK listed in the config repo to get hardware metadata. Much of the "Installing ZMK" page has been rewritten to give instructions for installing ZMK CLI and using it to create and modify a config repo. The previously-hidden page on ZMK CLI has been added to the sidebar and repurposed into general documentation for the tool.
This deletes the Bash and PowerShell setup scripts in favor of using ZMK CLI. The old setup scripts are broken, since the config repo template uses ZMK version 0.3, while the setup scripts use hardware metadata from the main branch. ZMK CLI doesn't have this issue, because it clones the version of ZMK listed in the config repo to get hardware metadata.
Much of the "Installing ZMK" page has been rewritten to give instructions for installing ZMK CLI and using it to create and modify a config repo. The previously-hidden page on ZMK CLI has been added to the sidebar and repurposed into general documentation for the tool.