mirror of
https://github.com/Redocly/redoc.git
synced 2024-11-13 04:16:34 +03:00
chore:cli-v0.13.10 (#1950)
Co-authored-by: Ivana Isadora Devcic <33730345+skadinna@users.noreply.github.com>
This commit is contained in:
parent
61edf6c1b9
commit
84fa123987
|
@ -12,20 +12,23 @@ or using [npx](https://medium.com/@maybekatz/introducing-npx-an-npm-package-runn
|
||||||
The two following commands are available:
|
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.\
|
||||||
- `redoc-cli bundle [spec]` - bundles `spec` and ReDoc into a **zero-dependency** HTML file.
|
Deprecated. Use `npx @redocly/openapi-cli preview-docs [spec]`
|
||||||
|
- `redoc-cli bundle [spec]` - bundles `spec` and Redoc into a **zero-dependency** HTML file.\
|
||||||
|
Deprecated. Use Use "build" command instead.
|
||||||
|
- `redoc-cli build [spec]` - build `spec` and Redoc into a **zero-dependency** HTML file.
|
||||||
|
|
||||||
Some examples:
|
Some examples:
|
||||||
|
|
||||||
- Bundle with the main color changed to `orange`:<br/>
|
- Bundle with the main color changed to `orange`:<br/>
|
||||||
`$ redoc-cli bundle [spec] --options.theme.colors.primary.main=orange`
|
`$ redoc-cli build [spec] --options.theme.colors.primary.main=orange`
|
||||||
- Serve with the `nativeScrollbars` option set to true:<br/>
|
- Serve with the `nativeScrollbars` option set to true:<br/>
|
||||||
`$ redoc-cli serve [spec] --options.nativeScrollbars`
|
`$ redoc-cli serve [spec] --options.nativeScrollbars`
|
||||||
- Bundle using a custom [Handlebars](https://handlebarsjs.com/) template
|
- Bundle using a custom [Handlebars](https://handlebarsjs.com/) template
|
||||||
(check the [default template](https://github.com/Redocly/redoc/blob/master/cli/template.hbs) for an example):<br/>
|
(check the [default template](https://github.com/Redocly/redoc/blob/master/cli/template.hbs) for an example):<br/>
|
||||||
`$ redoc-cli bundle [spec] -t custom.hbs`
|
`$ redoc-cli build [spec] -t custom.hbs`
|
||||||
- Bundle using a custom template and add custom `templateOptions`:<br/>
|
- Bundle using a custom template and add custom `templateOptions`:<br/>
|
||||||
`$ redoc-cli bundle [spec] -t custom.hbs --templateOptions.metaDescription "Page meta description"`
|
`$ redoc-cli build [spec] -t custom.hbs --templateOptions.metaDescription "Page meta description"`
|
||||||
|
|
||||||
For more details, run `redoc-cli --help`.
|
For more details, run `redoc-cli --help`.
|
||||||
|
|
4
cli/npm-shrinkwrap.json
generated
4
cli/npm-shrinkwrap.json
generated
|
@ -1,12 +1,12 @@
|
||||||
{
|
{
|
||||||
"name": "redoc-cli",
|
"name": "redoc-cli",
|
||||||
"version": "0.13.9",
|
"version": "0.13.10",
|
||||||
"lockfileVersion": 2,
|
"lockfileVersion": 2,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"packages": {
|
"packages": {
|
||||||
"": {
|
"": {
|
||||||
"name": "redoc-cli",
|
"name": "redoc-cli",
|
||||||
"version": "0.13.9",
|
"version": "0.13.10",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"chokidar": "^3.5.1",
|
"chokidar": "^3.5.1",
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "redoc-cli",
|
"name": "redoc-cli",
|
||||||
"version": "0.13.9",
|
"version": "0.13.10",
|
||||||
"description": "ReDoc's Command Line Interface",
|
"description": "ReDoc's Command Line Interface",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
"bin": "index.js",
|
"bin": "index.js",
|
||||||
|
|
Loading…
Reference in New Issue
Block a user