Skip to content

Commit 202b20c

Browse files
committed
added new examples and rearranged them in seperate folder
1 parent cc2f121 commit 202b20c

28 files changed

+13635
-498
lines changed

dist/index.html

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,11 @@
1515
https://api.apis.guru/v2/specs/bitbucket.org/2.0/swagger.json
1616
https://petstore.swagger.io/v2/swagger.json
1717
https://assets.zuora.com/zuora-documentation/swagger.yaml <<< Large spec with lot of markdown
18+
./examples/specs/petstore_anyof.yaml
1819
-->
19-
<rapi-doc id="thedoc"> </rapi-doc>
20+
<rapi-doc id="thedoc" spec-url="./examples/specs/petstore_anyof.yaml"> </rapi-doc>
2021

22+
<!--
2123
<script>
2224
document.addEventListener('DOMContentLoaded', (event) => {
2325
let docEl = document.getElementById("thedoc");
@@ -73,7 +75,7 @@
7375
docEl.loadSpec(objSpec);
7476
})
7577
</script>
76-
78+
-->
7779

7880
<script type="text/javascript" src="rapidoc-min.js"></script></body>
7981

dist/index.html.gz

35 Bytes
Binary file not shown.

dist/rapidoc-min.js

Lines changed: 11 additions & 11 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/rapidoc-min.js.gz

428 Bytes
Binary file not shown.

dist/report.html

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

docs/examples/allof.html

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
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+
gtag('config', 'UA-132775238-1');
10+
</script>
11+
<meta charset='utf-8'>
12+
<meta name='viewport' content='width=device-width, minimum-scale=1, initial-scale=1, user-scalable=yes'>
13+
<link href='https://fonts.googleapis.com/css?family=Varela+Round' rel='stylesheet'>
14+
<script type='text/javascript' src='../rapidoc-min.js'></script>
15+
</head>
16+
<body>
17+
<rapi-doc id='thedoc' spec-url='./specs/allof.json' allow-try="false"> </rapi-doc>
18+
</body>
19+
</html>

docs/examples/anyof.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,6 @@
1414
<script type='text/javascript' src='../rapidoc-min.js'></script>
1515
</head>
1616
<body>
17-
<rapi-doc id='thedoc' spec-url='./specs/anyof.json' > </rapi-doc>
17+
<rapi-doc id='thedoc' spec-url='./specs/anyof.json' allow-try="false"> </rapi-doc>
1818
</body>
1919
</html>

docs/example1.html renamed to docs/examples/example1.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,14 @@
1212

1313
<meta charset="utf-8">
1414
<meta name="viewport" content="width=device-width, minimum-scale=1, initial-scale=1, user-scalable=yes">
15-
<script type="text/javascript" src="rapidoc-min.js"></script>
15+
<script type="text/javascript" src="../rapidoc-min.js"></script>
1616
<style>
1717
rapi-doc{
1818
width:100%;
1919
}
2020
</style>
2121
</head>
2222
<body>
23-
<rapi-doc spec-url="https://api.apis.guru/v2/specs/bitbucket.org/2.0/swagger.json" style="min-width:460px" show-info="true"> </rapi-doc>
23+
<rapi-doc spec-url="./specs/bitbucket.json" style="min-width:460px" show-info="true"> </rapi-doc>
2424
</body>
2525
</html>

docs/example100.html renamed to docs/examples/example100.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
width:100%;
3030
}
3131
</style>
32-
<script type="text/javascript" src="rapidoc-min.js"></script>
32+
<script type="text/javascript" src="../rapidoc-min.js"></script>
3333
<script>
3434
function getRapiDoc(){
3535
return document.getElementById("thedoc");

docs/example2.html renamed to docs/examples/example2.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,14 @@
1212

1313
<meta charset="utf-8">
1414
<meta name="viewport" content="width=device-width, minimum-scale=1, initial-scale=1, user-scalable=yes">
15-
<script type="text/javascript" src="rapidoc-min.js"></script>
15+
<script type="text/javascript" src="../rapidoc-min.js"></script>
1616
<style>
1717
rapi-doc{
1818
width:100%;
1919
}
2020
</style>
2121
</head>
2222
<body>
23-
<rapi-doc spec-url="https://api.apis.guru/v2/specs/bitbucket.org/2.0/swagger.json" theme="dark"> </rapi-doc>
23+
<rapi-doc spec-url="./specs/bitbucket.json" theme="dark"> </rapi-doc>
2424
</body>
2525
</html>

0 commit comments

Comments
 (0)