Skip to content

Commit d29e1b1

Browse files
committed
docs: tweak outdate
1 parent df3b636 commit d29e1b1

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

packages/docs/docs/plugin/option-api.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -434,7 +434,7 @@ Then, VuePress will automatically inject these components behind the layout comp
434434
</div>
435435
```
436436

437-
## registerCommand
437+
## extendCli
438438

439439
- Type: `function`
440440
- Default: `undefined`
@@ -443,7 +443,7 @@ Register a extra command to enhance the CLI of vuepress. The function will be ca
443443

444444
```js
445445
module.exports = {
446-
registerCommand (cli) {
446+
extendCli (cli) {
447447
cli
448448
.command('info [targetDir]', '')
449449
.option('--debug', 'display info in debug mode')

packages/docs/docs/zh/plugin/option-api.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -436,7 +436,7 @@ VuePress 将会自动将这些组件注入到布局组件的隔壁:
436436
</div>
437437
```
438438

439-
## registerCommand
439+
## extendCli
440440

441441
- 类型: `function`
442442
- 默认值: `undefined`
@@ -445,7 +445,7 @@ VuePress 将会自动将这些组件注入到布局组件的隔壁:
445445

446446
```js
447447
module.exports = {
448-
registerCommand (cli) {
448+
extendCli (cli) {
449449
cli
450450
.command('info [targetDir]', '')
451451
.option('--debug', 'display info in debug mode')

0 commit comments

Comments
 (0)