Skip to content

Commit 332fccd

Browse files
committed
generated build, updated packages and examples
1 parent ee64477 commit 332fccd

File tree

8 files changed

+52
-35
lines changed

8 files changed

+52
-35
lines changed

dist/rapidoc-min.js

Lines changed: 2 additions & 2 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 Bytes
Binary file not shown.

dist/report.html

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

docs/examples/oneof.html

Lines changed: 25 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,16 +12,39 @@
1212
<meta name='viewport' content='width=device-width, minimum-scale=1, initial-scale=1, user-scalable=yes'>
1313
<link href="https://fonts.googleapis.com/css2?family=Open+Sans:wght@300;600&family=Roboto+Mono&display=swap" rel="stylesheet">
1414
<script type='text/javascript' src='../rapidoc-min.js'></script>
15+
<link href='../index.css' rel='stylesheet'>
16+
<script>
17+
function getRapiDoc(){
18+
return document.getElementById("thedoc");
19+
}
20+
21+
function toggleSchemaStyle () {
22+
if (getRapiDoc().getAttribute('schema-style') === 'table') {
23+
getRapiDoc().setAttribute('schema-style', 'tree');
24+
} else {
25+
getRapiDoc().setAttribute('schema-style', 'table');
26+
}
27+
}
28+
</script>
29+
1530
</head>
1631
<body>
17-
<rapi-doc spec-url="../specs/oneof.yaml"
32+
<rapi-doc id="thedoc"
33+
spec-url="../specs/oneof.yaml"
1834
show-info = "false"
1935
show-header = "false"
2036
render-style = "read"
37+
schema-style = "tree"
2138
allow-try = "false"
2239
regular-font = 'Open Sans'
2340
mono-font = "Roboto Mono"
2441
allow-authentication = "false"
25-
> </rapi-doc>
42+
>
43+
<div slot="nav-logo" style="width:100%; display: flex; flex-direction:column;">
44+
<div style="display: flex;justify-content: center; margin: 2px 0">
45+
<button class='btn large' style="width:150px" onclick="toggleSchemaStyle()">Toggle Schema Style</button>
46+
</div>
47+
</div>
48+
</rapi-doc>
2649
</body>
2750
</html>

docs/examples/schema-table.html

Lines changed: 11 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -28,24 +28,18 @@
2828
theme = "dark"
2929
schema-style='table'
3030
>
31-
<div slot="nav-logo">
32-
33-
<div slot="nav-logo" style="width:100%; display: flex; flex-direction:column;">
34-
35-
<div style="text-align: center; padding: 0 0 12px 0; color:#47AFE8"> Schema Display Style </div>
36-
<div style="display: flex;justify-content: center; margin: 2px 0">
37-
<button class='btn medium' onclick="document.getElementById('thedoc').setAttribute('schema-style', 'tree')" >Tree</button>
38-
<button class='btn medium' onclick="document.getElementById('thedoc').setAttribute('schema-style', 'table')" >Table</button>
39-
</div>
40-
41-
<div style="text-align: center; padding: 20px 0 12px 0; color:#47AFE8"> Font Size </div>
42-
<div style="display: flex;justify-content: center; margin: 2px 0"">
43-
<button class='btn medium' onclick="document.getElementById('thedoc').setAttribute('font-size', 'default')" >Default</button>
44-
<button class='btn medium' onclick="document.getElementById('thedoc').setAttribute('font-size', 'large')" >Large</button>
45-
<button class='btn medium' onclick="document.getElementById('thedoc').setAttribute('font-size', 'largest')" >Largest</button>
46-
</div>
31+
<div slot="nav-logo" style="width:100%; display: flex; flex-direction:column;">
32+
<div style="text-align: center; padding: 0 0 12px 0; color:#47AFE8"> Schema Display Style </div>
33+
<div style="display: flex;justify-content: center; margin: 2px 0">
34+
<button class='btn medium' onclick="document.getElementById('thedoc').setAttribute('schema-style', 'tree')" >Tree</button>
35+
<button class='btn medium' onclick="document.getElementById('thedoc').setAttribute('schema-style', 'table')" >Table</button>
4736
</div>
48-
37+
38+
<div style="text-align: center; padding: 20px 0 12px 0; color:#47AFE8"> Font Size </div>
39+
<div style="display: flex;justify-content: center; margin: 2px 0"">
40+
<button class='btn medium' onclick="document.getElementById('thedoc').setAttribute('font-size', 'default')" >Default</button>
41+
<button class='btn medium' onclick="document.getElementById('thedoc').setAttribute('font-size', 'large')" >Large</button>
42+
<button class='btn medium' onclick="document.getElementById('thedoc').setAttribute('font-size', 'largest')" >Largest</button>
4943
</div>
5044
</div>
5145
</rapi-doc>

docs/rapidoc-min.js

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

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
4444
"lint-fix": "./node_modules/eslint/bin/eslint.js --fix ./src/**"
4545
},
4646
"devDependencies": {
47-
"@babel/core": "^7.12.8",
47+
"@babel/core": "^7.12.9",
4848
"@babel/preset-env": "^7.12.7",
4949
"babel-eslint": "^10.1.0",
5050
"babel-loader": "^8.2.1",

yarn.lock

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -28,18 +28,18 @@
2828
resolved "https://registry.yarnpkg.com/@babel/compat-data/-/compat-data-7.12.7.tgz#9329b4782a7d6bbd7eef57e11addf91ee3ef1e41"
2929
integrity sha512-YaxPMGs/XIWtYqrdEOZOCPsVWfEoriXopnsz3/i7apYPXQ3698UFhS6dVT1KN5qOsWmVgw/FOrmQgpRaZayGsw==
3030

31-
"@babel/core@^7.12.8":
32-
version "7.12.8"
33-
resolved "https://registry.yarnpkg.com/@babel/core/-/core-7.12.8.tgz#8ad76c1a7d2a6a3beecc4395fa4f7b4cb88390e6"
34-
integrity sha512-ra28JXL+5z73r1IC/t+FT1ApXU5LsulFDnTDntNfLQaScJUJmcHL5Qxm/IWanCToQk3bPWQo5bflbplU5r15pg==
31+
"@babel/core@^7.12.9":
32+
version "7.12.9"
33+
resolved "https://registry.yarnpkg.com/@babel/core/-/core-7.12.9.tgz#fd450c4ec10cdbb980e2928b7aa7a28484593fc8"
34+
integrity sha512-gTXYh3M5wb7FRXQy+FErKFAv90BnlOuNn1QkCK2lREoPAjrQCO49+HVSrFoe5uakFAF5eenS75KbO2vQiLrTMQ==
3535
dependencies:
3636
"@babel/code-frame" "^7.10.4"
3737
"@babel/generator" "^7.12.5"
3838
"@babel/helper-module-transforms" "^7.12.1"
3939
"@babel/helpers" "^7.12.5"
4040
"@babel/parser" "^7.12.7"
4141
"@babel/template" "^7.12.7"
42-
"@babel/traverse" "^7.12.8"
42+
"@babel/traverse" "^7.12.9"
4343
"@babel/types" "^7.12.7"
4444
convert-source-map "^1.7.0"
4545
debug "^4.1.0"
@@ -1055,10 +1055,10 @@
10551055
globals "^11.1.0"
10561056
lodash "^4.17.19"
10571057

1058-
"@babel/traverse@^7.12.8":
1059-
version "7.12.8"
1060-
resolved "https://registry.yarnpkg.com/@babel/traverse/-/traverse-7.12.8.tgz#c1c2983bf9ba0f4f0eaa11dff7e77fa63307b2a4"
1061-
integrity sha512-EIRQXPTwFEGRZyu6gXbjfpNORN1oZvwuzJbxcXjAgWV0iqXYDszN1Hx3FVm6YgZfu1ZQbCVAk3l+nIw95Xll9Q==
1058+
"@babel/traverse@^7.12.9":
1059+
version "7.12.9"
1060+
resolved "https://registry.yarnpkg.com/@babel/traverse/-/traverse-7.12.9.tgz#fad26c972eabbc11350e0b695978de6cc8e8596f"
1061+
integrity sha512-iX9ajqnLdoU1s1nHt36JDI9KG4k+vmI8WgjK5d+aDTwQbL2fUnzedNedssA645Ede3PM2ma1n8Q4h2ohwXgMXw==
10621062
dependencies:
10631063
"@babel/code-frame" "^7.10.4"
10641064
"@babel/generator" "^7.12.5"

0 commit comments

Comments
 (0)