feat(cli): build/deploy should allow multiple --locale options (#10600)

This commit is contained in:
Sébastien Lorber 2024-10-22 13:53:41 +02:00 committed by GitHub
parent 776b3ee8c2
commit dbdd254c51
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 55 additions and 34 deletions

View file

@ -90,7 +90,7 @@ Compiles your site for production.
| `--bundle-analyzer` | `false` | Analyze your bundle with the [webpack bundle analyzer](https://github.com/webpack-contrib/webpack-bundle-analyzer). |
| `--out-dir` | `build` | The full path for the new output directory, relative to the current workspace. |
| `--config` | `undefined` | Path to Docusaurus config file, default to `[siteDir]/docusaurus.config.js` |
| `--locale` | | Build the site in the specified locale. If not specified, all known locales are built. |
| `--locale` | | Build the site in the specified locale(s). If not specified, all known locales are built. |
| `--no-minify` | `false` | Build website without minimizing JS/CSS bundles. |
:::info
@ -141,7 +141,7 @@ Deploys your site with [GitHub Pages](https://pages.github.com/). Check out the
| Name | Default | Description |
| --- | --- | --- |
| `--locale` | | Deploy the site in the specified locale. If not specified, all known locales are deployed. |
| `--locale` | | Deploy the site in the specified locale(s). If not specified, all known locales are deployed. |
| `--out-dir` | `build` | The full path for the new output directory, relative to the current workspace. |
| `--skip-build` | `false` | Deploy website without building it. This may be useful when using a custom deploy script. |
| `--target-dir` | `.` | Path to the target directory to deploy to. |