mirror of
https://github.com/Redocly/redoc.git
synced 2025-07-15 02:32:20 +03:00
chore: improve deprecation message for serve command (#2096)
This commit is contained in:
parent
17bb08909a
commit
e4f84bb7de
|
@ -14,7 +14,7 @@ The two following commands are available:
|
||||||
- `redoc-cli serve [spec]` - starts the server with `spec` rendered with ReDoc.
|
- `redoc-cli serve [spec]` - starts the server with `spec` rendered with ReDoc.
|
||||||
Supports a server-side rendering mode (`--ssr`)
|
Supports a server-side rendering mode (`--ssr`)
|
||||||
and can watch the spec (`--watch`) to automatically reload the page whenever it changes.\
|
and can watch the spec (`--watch`) to automatically reload the page whenever it changes.\
|
||||||
Deprecated. Use `npx @redocly/openapi-cli preview-docs [spec]`
|
Deprecated. Use `npx @redocly/cli preview-docs [spec]`
|
||||||
- `redoc-cli bundle [spec]` - bundles `spec` and Redoc into a **zero-dependency** HTML file.\
|
- `redoc-cli bundle [spec]` - bundles `spec` and Redoc into a **zero-dependency** HTML file.\
|
||||||
Deprecated. Use Use "build" command instead.
|
Deprecated. Use Use "build" command instead.
|
||||||
- `redoc-cli build [spec]` - build `spec` and Redoc into a **zero-dependency** HTML file.
|
- `redoc-cli build [spec]` - build `spec` and Redoc into a **zero-dependency** HTML file.
|
||||||
|
|
|
@ -182,7 +182,7 @@ YargsParser.command(
|
||||||
[
|
[
|
||||||
res => {
|
res => {
|
||||||
console.log(
|
console.log(
|
||||||
`\n⚠️ This command is deprecated. Use "npx @redocly/openapi-cli preview-docs petstore.yaml"\n`,
|
`\n⚠️ This command is deprecated. Use "npx @redocly/cli preview-docs petstore.yaml"\n`,
|
||||||
);
|
);
|
||||||
return res;
|
return res;
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in New Issue
Block a user