1
0
Fork 0

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 2025-02-01 21:19:30 +11:00 committed by GitHub
parent ff09b921f1
commit 273d8d6a1a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 23 additions and 19 deletions

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'])