mirror of
https://github.com/Redocly/redoc.git
synced 2024-11-23 00:56:33 +03:00
docs: Fix the demo specUrl (#778)
This commit is contained in:
parent
ab943a8dd5
commit
30cbba3f6f
|
@ -162,7 +162,7 @@ Also you can pass options:
|
||||||
|
|
||||||
```js
|
```js
|
||||||
<RedocStandalone
|
<RedocStandalone
|
||||||
specUrl="http://rebilly.github.io/RebillyAPI/swagger.json"
|
specUrl="http://rebilly.github.io/RebillyAPI/openapi.json"
|
||||||
options={{
|
options={{
|
||||||
nativeScrollbars: true,
|
nativeScrollbars: true,
|
||||||
theme: { colors: { main: '#dd5522' } },
|
theme: { colors: { main: '#dd5522' } },
|
||||||
|
@ -176,7 +176,7 @@ You can also specify `onLoaded` callback which will be called each time Redoc ha
|
||||||
|
|
||||||
```js
|
```js
|
||||||
<RedocStandalone
|
<RedocStandalone
|
||||||
specUrl="http://rebilly.github.io/RebillyAPI/swagger.json"
|
specUrl="http://rebilly.github.io/RebillyAPI/openapi.json"
|
||||||
onLoaded={error => {
|
onLoaded={error => {
|
||||||
if (!error) {
|
if (!error) {
|
||||||
console.log('Yay!');
|
console.log('Yay!');
|
||||||
|
|
Loading…
Reference in New Issue
Block a user