qmk docs: restore --port and --browser arguments (#24623)

* `qmk docs`: restore `--port` and `--browser` arguments

* Make docs command args always a list
This commit is contained in:
Ryan authored and GitHub committed 2025-02-01 21:19:30 +11:00
1 parent ff09b921f1
commit 273d8d6a1a
5 files changed
+23 -19

No files matched your search

+2 -4
View File
@@ -27,10 +27,8 @@ def generate_docs(cli):
return False
cli.log.info('Building vitepress docs')
run_docs_command('run', 'docs:build')
run_docs_command('run', ['docs:build'])
cli.log.info('Successfully generated docs to %s.', BUILD_DOCS_PATH)
if cli.args.serve:
if not cli.config.general.verbose:
cli.log.info('Serving docs at http://localhost:4173/ (Ctrl+C to stop)')
run_docs_command('run', 'docs:preview')
run_docs_command('run', ['docs:preview'])