mirror of
https://github.com/Redocly/redoc.git
synced 2024-11-11 03:16:48 +03:00
minor README fix
This commit is contained in:
parent
c4972966e0
commit
a8d74e0b6f
|
@ -11,7 +11,7 @@ Swagger-generated API Reference Documentation
|
||||||
|
|
||||||
## Deployment
|
## Deployment
|
||||||
|
|
||||||
## tl;dr
|
#### tl;dr
|
||||||
```html
|
```html
|
||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html>
|
<html>
|
||||||
|
@ -85,7 +85,7 @@ Instead of adding `spec-url` attribute to the `<redoc>` element you can initiali
|
||||||
Redoc.init(specUrl, options)
|
Redoc.init(specUrl, options)
|
||||||
```
|
```
|
||||||
|
|
||||||
`options` is javascript object with camel-cased versions of options names as the keys. For example:
|
`options` is javascript object with camel-cased version of options names as the keys. For example:
|
||||||
```js
|
```js
|
||||||
Redoc.init('http://petstore.swagger.io/v2/swagger.json', {
|
Redoc.init('http://petstore.swagger.io/v2/swagger.json', {
|
||||||
scrollYOffset: 50
|
scrollYOffset: 50
|
||||||
|
|
Loading…
Reference in New Issue
Block a user