This repository was archived by the owner on Nov 19, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 4 files changed +34
-36
lines changed Expand file tree Collapse file tree 4 files changed +34
-36
lines changed Original file line number Diff line number Diff line change 1
1
{% include layout/header.html %}
2
2
3
3
< div class ="content-container ">
4
- {{ content }}
4
+ < div id =" redoc-container " > </ div >
5
5
</ div >
6
6
7
+ < script src ="https://cdn.jsdelivr.net/npm/redoc@2.0.0-alpha.41/bundles/redoc.standalone.js "> </ script >
8
+ < script >
9
+ Redoc . init ( '{{ page.specUrl }}' , {
10
+ scrollYOffset : '.site-nav' ,
11
+ hideHostname : true ,
12
+ sortPropsAlphabetically : true ,
13
+ pathInMiddlePanel : true ,
14
+ hideDownloadButton : true ,
15
+ showExtensions : true ,
16
+ nativeScrollbars : true ,
17
+ lazyRendering : true ,
18
+ theme : {
19
+ colors : {
20
+ primary : {
21
+ main : '#2b2b2c' ,
22
+ }
23
+ } ,
24
+ typography : {
25
+ fontFamily : '' ,
26
+ headings : {
27
+ fontFamily : '' ,
28
+ }
29
+ } ,
30
+ }
31
+ } , document . getElementById ( 'redoc-container' ) )
32
+
33
+ </ script >
34
+
7
35
{% include layout/footer.html %}
Original file line number Diff line number Diff line change 1
1
---
2
2
layout: redoc
3
+ specUrl: admin-schema.json
3
4
---
4
- < redoc spec-url ='admin-schema.json '
5
- hide-hostname =true
6
- sort-props-alphabetically =true
7
- path-in-middle-panel =true
8
- hide-download-button =true
9
- show-extensions =true
10
- scroll-y-offset ='.site-nav '
11
- native-scrollbars =true
12
- lazy-rendering =true
13
- > </ redoc >
14
- < script src ="https://rebilly.github.io/ReDoc/releases/v1.22.1/redoc.min.js "> </ script >
Original file line number Diff line number Diff line change 1
1
---
2
2
layout: redoc
3
- ---
4
- < redoc spec-url ='customer-schema.json '
5
- hide-hostname =true
6
- sort-props-alphabetically =true
7
- path-in-middle-panel =true
8
- hide-download-button =true
9
- show-extensions =true
10
- scroll-y-offset ='.site-nav '
11
- native-scrollbars =true
12
- lazy-rendering =true
13
- > </ redoc >
14
- < script src ="https://rebilly.github.io/ReDoc/releases/v1.22.1/redoc.min.js "> </ script >
3
+ specUrl: customer-schema.json
4
+ ---
Original file line number Diff line number Diff line change 1
1
---
2
2
layout: redoc
3
- ---
4
- < redoc spec-url ='guest-schema.json '
5
- hide-hostname =true
6
- sort-props-alphabetically =true
7
- path-in-middle-panel =true
8
- hide-download-button =true
9
- show-extensions =true
10
- scroll-y-offset ='.site-nav '
11
- native-scrollbars =true
12
- lazy-rendering =true
13
- > </ redoc >
14
- < script src ="https://rebilly.github.io/ReDoc/releases/v1.22.1/redoc.min.js "> </ script >
3
+ specUrl: guest-schema.json
4
+ ---
You can’t perform that action at this time.
0 commit comments