Skip to content

Commit ad4bf66

Browse files
committed
updated examples
1 parent 1ffa56d commit ad4bf66

File tree

5 files changed

+48
-334
lines changed

5 files changed

+48
-334
lines changed

docs/examples/default-schema-tab.html renamed to docs/examples/petstore-extended.html

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -21,14 +21,6 @@
2121
</style>
2222
</head>
2323
<body>
24-
<rapi-doc spec-url="../specs/multiple-example.yaml"
25-
allow-authentication = "false"
26-
show-info = "false"
27-
show-header = "false"
28-
render-style = "read"
29-
allow-try = "false"
30-
regular-font = 'Open Sans'
31-
default-schema-tab = 'example'
32-
> </rapi-doc>
24+
<rapi-doc spec-url="../specs/petstore_extended.yaml" regular-font="Open Sans"> </rapi-doc>
3325
</body>
3426
</html>
Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
<!doctype html>
2+
<head>
3+
<!-- Global site tag (gtag.js) - Google Analytics -->
4+
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-132775238-1"></script>
5+
<script>
6+
window.dataLayer = window.dataLayer || [];
7+
function gtag(){dataLayer.push(arguments);}
8+
gtag('js', new Date());
9+
10+
gtag('config', 'UA-132775238-1');
11+
</script>
12+
13+
<meta charset="utf-8">
14+
<meta name="viewport" content="width=device-width, minimum-scale=1, initial-scale=1, user-scalable=yes">
15+
<link href="https://fonts.googleapis.com/css?family=Open+Sans:300,600&display=swap" rel="stylesheet">
16+
<link href='../index.css' rel='stylesheet'>
17+
<script type="text/javascript" src="../rapidoc-min.js"></script>
18+
<style>
19+
rapi-doc{
20+
width:100%;
21+
}
22+
</style>
23+
</head>
24+
<body>
25+
<rapi-doc
26+
id = "thedoc"
27+
spec-url="https://petstore.swagger.io/v2/swagger.json"
28+
allow-authentication = "false"
29+
show-info = "false"
30+
show-header = "false"
31+
render-style = "read"
32+
allow-try = "false"
33+
regular-font = 'Open Sans'
34+
default-schema-tab = 'example'
35+
>
36+
<div slot="nav-logo">
37+
<div style="text-align: center; padding: 0 0 12px 0; color:#47AFE8"> Default Schema Tab </div>
38+
<div style="width:100%; display: flex;justify-content: center;">
39+
<button class='btn medium' onclick="document.getElementById('thedoc').setAttribute('default-schema-tab', 'model')" >Model</button>
40+
<button class='btn medium' onclick="document.getElementById('thedoc').setAttribute('default-schema-tab', 'example')" >Example</button>
41+
</div>
42+
</div>
43+
</rapi-doc>
44+
</body>
45+
</html>

docs/examples/schema-table.html

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -27,16 +27,12 @@
2727
theme = "dark"
2828
schema-style='table'
2929
>
30-
3130
<div slot="nav-logo">
3231
<div style="text-align: center; padding: 0 0 12px 0; color:#47AFE8"> Schema Display Style </div>
3332
<div style="width:100%; display: flex;justify-content: center;">
34-
<button class='btn medium' onclick="document.getElementById('thedoc').setAttribute('schema-style', 'table')" >Table</button>
3533
<button class='btn medium' onclick="document.getElementById('thedoc').setAttribute('schema-style', 'tree')" >Tree</button>
36-
</div>
37-
</div>
38-
39-
<div slot="nav-logo" style="width:100%; display: flex;justify-content: center;">
34+
<button class='btn medium' onclick="document.getElementById('thedoc').setAttribute('schema-style', 'table')" >Table</button>
35+
</div>
4036
</div>
4137
</rapi-doc>
4238
</body>

docs/specs/markdown copy.yaml

Lines changed: 0 additions & 178 deletions
This file was deleted.

0 commit comments

Comments
 (0)