docs: update specUrl (#1577)

This commit is contained in:
Andriy Leliv 2021-04-12 21:26:00 +03:00 committed by GitHub
parent dfc4cf1caa
commit 44152fdae7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -162,7 +162,7 @@ Also you can pass options:
```js
<RedocStandalone
specUrl="http://rebilly.github.io/RebillyAPI/openapi.json"
specUrl="https://api.redoc.ly/registry/rebilly/core-api/core/bundle/master/openapi.yaml"
options={{
nativeScrollbars: true,
theme: { colors: { primary: { main: '#dd5522' } } },
@ -176,7 +176,7 @@ You can also specify `onLoaded` callback which will be called each time Redoc ha
```js
<RedocStandalone
specUrl="http://rebilly.github.io/RebillyAPI/openapi.json"
specUrl="https://api.redoc.ly/registry/rebilly/core-api/core/bundle/master/openapi.yaml"
onLoaded={error => {
if (!error) {
console.log('Yay!');