Skip to content

Commit db9c06a

Browse files
committed
release: 8.1.1 - updated docs, updated packages, generated build
1 parent aea5322 commit db9c06a

18 files changed

+188
-113
lines changed

dist/rapidoc-min.js

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

dist/rapidoc-min.js.gz

-5.86 KB
Binary file not shown.

dist/rapidoc-min.js.map

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

dist/rapidoc-min.js.map.gz

-4 Bytes
Binary file not shown.

dist/report.html

Lines changed: 2 additions & 2 deletions
Large diffs are not rendered by default.

docs/examples.html

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -147,17 +147,16 @@ <h2 class="section-heading"> Integrate with other HTML document - No &lt;iframe&
147147
</code></pre>
148148
<br/>
149149

150-
<h2 class="section-heading"> Change Font (<a style="font-size:16px" href="./examples/example5.html">DEMO</a>)</h2>
150+
<h2 class="section-heading"> Change Font (<a style="font-size:16px" href="./examples/font.html">DEMO</a>)</h2>
151151
<pre class="shadow code-block" ><code class="html">
152152
&lt;head&gt;
153-
&lt;link href="https://fonts.googleapis.com/css?family=Varela+Round"
154-
rel="stylesheet" &gt;
153+
&lt;link href="https://fonts.googleapis.com/css?family=Nunito" rel="stylesheet"&gt;
155154
&lt;/head&gt;
156155

157156
&lt;body&gt;
158157
&lt;rapi-doc
159158
spec-url = "https://petstore.swagger.io/v2/swagger.json"
160-
regular-font = "'Varela Round', 'Arial Rounded MT Bold' "
159+
regular-font = "Nunito"
161160
render-style = "read"
162161
&gt;
163162
&lt;/rapi-doc&gt;

docs/examples/example-with-nested-refs.html

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@
1313
<meta charset="utf-8">
1414
<meta name="viewport" content="width=device-width, minimum-scale=1, initial-scale=1, user-scalable=yes">
1515
<link href="https://fonts.googleapis.com/css?family=Open+Sans:300,600&display=swap" rel="stylesheet">
16+
<link href='../index.css' rel='stylesheet'>
17+
1618
<script type="text/javascript" src="../rapidoc-min.js"></script>
1719
<style>
1820
rapi-doc{
@@ -24,7 +26,7 @@
2426
<rapi-doc spec-url="../specs/example-with-nested-refs.yaml"
2527
allow-authentication = "false"
2628
show-info = "false"
27-
show-header = "true"
29+
show-header = "false"
2830
render-style = "read"
2931
allow-try = "false"
3032
regular-font = 'Open Sans'

docs/examples/example5.html

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

docs/examples/font-size.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+
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=Open+Sans:300,600&display=swap" rel="stylesheet">
14+
<link href='../index.css' rel='stylesheet'>
15+
<script type='text/javascript' src='../rapidoc-min.js'></script>
16+
</head>
17+
<body>
18+
<rapi-doc spec-url="../specs/petstore_extended.yaml"
19+
id = "thedoc"
20+
show-header = "false"
21+
render-style = "read"
22+
regular-font = 'Open Sans'
23+
theme = 'light'
24+
bg-color = '#ecf1f7'
25+
text-color = '#133863'
26+
nav-bg-color = '#3f4d67'
27+
nav-text-color = '#a9b7d0'
28+
nav-hover-bg-color = '#333f54'
29+
nav-hover-text-color = '#fff'
30+
nav-accent-color = '#f44236'
31+
primary-color = '#5c7096'
32+
>
33+
<div slot="nav-logo">
34+
<div slot="nav-logo" style="width:100%; display: flex; flex-direction:column;">
35+
<div style="text-align: center; padding: 20px 0 12px 0; color:#47AFE8"> Font Size </div>
36+
<div style="display: flex;justify-content: center; margin: 2px 0">
37+
<button class='btn medium' onclick="document.getElementById('thedoc').setAttribute('font-size', 'default')" >Default</button>
38+
<button class='btn medium' onclick="document.getElementById('thedoc').setAttribute('font-size', 'large')" >Large</button>
39+
<button class='btn medium' onclick="document.getElementById('thedoc').setAttribute('font-size', 'largest')" >Largest</button>
40+
</div>
41+
</div>
42+
</div>
43+
</rapi-doc>
44+
</body>
45+
</html>

docs/examples/font.html

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
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+
<script type="text/javascript" src="../rapidoc-min.js"></script>
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+
<link href="https://fonts.googleapis.com/css2?family=Nunito:wght@300;600&family=Open+Sans:wght@300;600&display=swap" rel="stylesheet">
15+
<link href='../index.css' rel='stylesheet'>
16+
<style>
17+
rapi-doc{
18+
width:100%;
19+
}
20+
</style>
21+
</head>
22+
<body>
23+
<rapi-doc spec-url="../specs/petstore_extended.yaml"
24+
id = "thedoc"
25+
show-header = "false"
26+
render-style = "read"
27+
regular-font = "Nunito"
28+
theme = 'light'
29+
bg-color = '#ecf1f7'
30+
text-color = '#133863'
31+
nav-bg-color = '#3f4d67'
32+
nav-text-color = '#a9b7d0'
33+
nav-hover-bg-color = '#333f54'
34+
nav-hover-text-color = '#fff'
35+
nav-accent-color = '#f44236'
36+
primary-color = '#5c7096'
37+
38+
>
39+
<div slot="nav-logo">
40+
<div slot="nav-logo" style="width:100%; display: flex; flex-direction:column;">
41+
<div style="text-align: center; padding: 20px 0 12px 0; color:#47AFE8"> Font</div>
42+
<div style="display: flex;justify-content: center; margin: 2px 0">
43+
<button class='btn medium' onclick="document.getElementById('thedoc').setAttribute('regular-font', 'Nunito')" >Nunito</button>
44+
<button class='btn medium' onclick="document.getElementById('thedoc').setAttribute('regular-font', 'Open Sans')" >Open Sans</button>
45+
</div>
46+
</div>
47+
</div>
48+
</rapi-doc>
49+
</body>
50+
</html>

0 commit comments

Comments
 (0)