diff options
| author | Ryan <fauxpark@gmail.com> | 2025-02-01 21:19:30 +1100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-02-01 21:19:30 +1100 |
| commit | 273d8d6a1a6badb8d9b473954f16a0fbbe671987 (patch) | |
| tree | 0d2558d1d8ae2ce22c5b6702abc5315c607e2c12 /lib/python/qmk/docs.py | |
| parent | ff09b921f1c2160abe05c1fdbd38f25f64b6c7bd (diff) | |
`qmk docs`: restore `--port` and `--browser` arguments (#24623)
* `qmk docs`: restore `--port` and `--browser` arguments
* Make docs command args always a list
Diffstat (limited to 'lib/python/qmk/docs.py')
| -rw-r--r-- | lib/python/qmk/docs.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/python/qmk/docs.py b/lib/python/qmk/docs.py index 56694cf6ae..75d2d60bda 100644 --- a/lib/python/qmk/docs.py +++ b/lib/python/qmk/docs.py | |||
| @@ -17,18 +17,18 @@ BUILD_DOCS_PATH = BUILD_PATH / 'docs' | |||
| 17 | DOXYGEN_PATH = BUILD_DOCS_PATH / 'static' / 'doxygen' | 17 | DOXYGEN_PATH = BUILD_DOCS_PATH / 'static' / 'doxygen' |
| 18 | 18 | ||
| 19 | 19 | ||
| 20 | def run_docs_command(verb, cmd=None): | 20 | def run_docs_command(verb, cmd_args=None): |
| 21 | environ['PATH'] += pathsep + str(NODE_MODULES_PATH / '.bin') | 21 | environ['PATH'] += pathsep + str(NODE_MODULES_PATH / '.bin') |
| 22 | 22 | ||
| 23 | args = {'capture_output': False if cli.config.general.verbose else True, 'check': True, 'stdin': DEVNULL} | 23 | args = {'capture_output': False, 'check': True} |
| 24 | docs_env = environ.copy() | 24 | docs_env = environ.copy() |
| 25 | if cli.config.general.verbose: | 25 | if cli.config.general.verbose: |
| 26 | docs_env['DEBUG'] = 'vitepress:*,vite:*' | 26 | docs_env['DEBUG'] = 'vitepress:*,vite:*' |
| 27 | args['env'] = docs_env | 27 | args['env'] = docs_env |
| 28 | 28 | ||
| 29 | arg_list = ['yarn', verb] | 29 | arg_list = ['yarn', verb] |
| 30 | if cmd: | 30 | if cmd_args: |
| 31 | arg_list.append(cmd) | 31 | arg_list.extend(cmd_args) |
| 32 | 32 | ||
| 33 | chdir(BUILDDEFS_PATH) | 33 | chdir(BUILDDEFS_PATH) |
| 34 | cli.run(arg_list, **args) | 34 | cli.run(arg_list, **args) |
