Skip to content

Commit 759195d

Browse files
shigmaulivz
authored andcommitted
docs: add dest option (#1479)
1 parent ec98427 commit 759195d

File tree

3 files changed

+10
-3
lines changed

3 files changed

+10
-3
lines changed

packages/docs/docs/api/cli.md

+4-1
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,13 @@ See [port](../config/README.md#port).
1616
### -t, --temp `<temp>`
1717
See [temp](../config/README.md#temp).
1818

19-
### -c, --cache [cache]
19+
### -c, --cache `[cache]`
2020
### -no--cache
2121
See [cache](../config/README.md#cache).
2222

23+
### --dest `<dest>`
24+
See [dest](../config/README.md#dest).
25+
2326
### --debug
2427
Start development server in debug mode.
2528

packages/docs/docs/zh/api/cli.md

+5-2
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,13 @@ vuepress <command> targetDir [options]
1616
### -t, --temp `<temp>`
1717
查看 [temp](../config/README.md#temp)
1818

19-
### -c, --cache [cache]
20-
### -no--cache [cache]
19+
### -c, --cache `[cache]`
20+
### -no--cache
2121
查看 [cache](../config/README.md#cache)
2222

23+
### --dest `<dest>`
24+
查看 [dest](../config/README.md#dest)
25+
2326
### --debug
2427
以调试模式启动开发服务器。
2528

packages/vuepress/lib/registerCoreCommands.js

+1
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ module.exports = function (cli, options) {
4444
.option('-d, --dest <dest>', 'specify build output dir (default: .vuepress/dist)')
4545
.option('-t, --temp <temp>', 'set the directory of the temporary file')
4646
.option('-c, --cache [cache]', 'set the directory of cache')
47+
.option('--dest <dest>', 'the output directory for build process')
4748
.option('--no-cache', 'clean the cache before build')
4849
.option('--debug', 'build in development mode for debugging')
4950
.option('--silent', 'build static site in silent mode')

0 commit comments

Comments
 (0)