Skip to content

docs: add dest option #1479

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Mar 26, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion packages/docs/docs/api/cli.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,13 @@ See [port](../config/README.md#port).
### -t, --temp `<temp>`
See [temp](../config/README.md#temp).

### -c, --cache [cache]
### -c, --cache `[cache]`
### -no--cache
See [cache](../config/README.md#cache).

### --dest `<dest>`
See [dest](../config/README.md#dest).

### --debug
Start development server in debug mode.

Expand Down
7 changes: 5 additions & 2 deletions packages/docs/docs/zh/api/cli.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,13 @@ vuepress <command> targetDir [options]
### -t, --temp `<temp>`
查看 [temp](../config/README.md#temp)。

### -c, --cache [cache]
### -no--cache [cache]
### -c, --cache `[cache]`
### -no--cache
查看 [cache](../config/README.md#cache)。

### --dest `<dest>`
查看 [dest](../config/README.md#dest)。

### --debug
以调试模式启动开发服务器。

Expand Down
1 change: 1 addition & 0 deletions packages/vuepress/lib/registerCoreCommands.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ module.exports = function (cli, options) {
.option('-d, --dest <dest>', 'specify build output dir (default: .vuepress/dist)')
.option('-t, --temp <temp>', 'set the directory of the temporary file')
.option('-c, --cache [cache]', 'set the directory of cache')
.option('--dest <dest>', 'the output directory for build process')
.option('--no-cache', 'clean the cache before build')
.option('--debug', 'build in development mode for debugging')
.option('--silent', 'build static site in silent mode')
Expand Down