Skip to content

Commit 57590cb

Browse files
committed
Added new Documentation
1 parent 0e7251a commit 57590cb

25 files changed

+1885
-688
lines changed

dist/index.html

Lines changed: 78 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,78 @@
1+
<!doctype html>
2+
<html lang="en">
3+
4+
<head>
5+
<meta charset="utf-8">
6+
<meta name="viewport" content="width=device-width, minimum-scale=1, initial-scale=1, user-scalable=yes">
7+
<title>RapiDoc</title>
8+
</head>
9+
10+
<body>
11+
<!--
12+
https://api.apis.guru/v2/specs/github.com/v3/swagger.json
13+
https://api.apis.guru/v2/specs/bitbucket.org/2.0/swagger.json
14+
https://petstore.swagger.io/v2/swagger.json
15+
https://assets.zuora.com/zuora-documentation/swagger.yaml <<< Large spec with lot of markdown
16+
17+
<button onclick="changeAttr('heading-text')"> Change Heading Text </button>
18+
<button onclick="changeLayout()"> Change Layout </button>
19+
<button onclick="toggleAttr('show-header')"> Toggle Header </button>
20+
<button onclick="toggleAttr('body-padding')"> Toggle Padding </button>
21+
<button onclick="toggleTheme()"> Toggle Theme </button>
22+
23+
<script>
24+
25+
function getRapiDoc(){
26+
return document.getElementById("thedoc");
27+
}
28+
function changeAttr(attr){
29+
getRapiDoc().setAttribute(attr, attr+Math.floor(Math.random() * 100) );
30+
}
31+
32+
function changeLayout(){
33+
let currLayout = getRapiDoc().getAttribute('layout');
34+
let newLayout = currLayout==="row"?"column":"row";
35+
getRapiDoc().setAttribute('layout', newLayout );
36+
}
37+
function toggleAttr(attr){
38+
if (getRapiDoc().getAttribute(attr) === 'false'){
39+
getRapiDoc().setAttribute(attr,"true");
40+
}
41+
else{
42+
getRapiDoc().setAttribute(attr,"false");
43+
}
44+
}
45+
46+
function toggleTheme(){
47+
if (getRapiDoc().getAttribute('theme') === 'dark'){
48+
getRapiDoc().setAttribute('theme',"light");
49+
}
50+
else{
51+
getRapiDoc().setAttribute('theme',"dark");
52+
}
53+
}
54+
55+
56+
</script>
57+
-->
58+
<!--
59+
<rapi-doc id = "thedoc" spec-url="https://api.apis.guru/v2/specs/bitbucket.org/2.0/swagger.json"
60+
heading-text="My Product"
61+
spec-url="https://api.apis.guru/v2/specs/bitbucket.org/2.0/swagger.json"
62+
primary-color="#ffff99"
63+
header-color="#AA0000"
64+
theme="dark"
65+
layout="row"
66+
show-header='false'
67+
style="width:200px; border:1px solid #333; border-radius:4px;"
68+
>
69+
</rapi-doc>
70+
-->
71+
<rapi-doc spec-url="https://api.apis.guru/v2/specs/azure.com/workloadmonitor-Microsoft.WorkloadMonitor/2018-08-31-preview/swagger.json"
72+
theme="light"
73+
show-info="false"
74+
>
75+
</rapi-doc>
76+
<script type="text/javascript" src="rapidoc-min.js"></script></body>
77+
78+
</html>

dist/index.html.gz

925 Bytes
Binary file not shown.

dist/rapidoc-min.js

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

dist/rapidoc-min.js.gz

121 KB
Binary file not shown.

dist/rapidoc-min.js.map

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

dist/rapidoc-min.js.map.gz

50.7 KB
Binary file not shown.

dist/rapidoc-regular.woff2

16 KB
Binary file not shown.

dist/rapidoc-semi-bold.woff2

16.2 KB
Binary file not shown.

dist/roboto-mono-bold.woff2

15.6 KB
Binary file not shown.

dist/roboto-mono-regular.woff2

15.7 KB
Binary file not shown.

0 commit comments

Comments
 (0)