Skip to content

Commit 58e2c66

Browse files
authored
V0.3.0 (#70)
* formatting * mint `v0.3.0`
1 parent a1787c6 commit 58e2c66

File tree

1 file changed

+50
-47
lines changed

1 file changed

+50
-47
lines changed

index.html

Lines changed: 50 additions & 47 deletions
Original file line numberDiff line numberDiff line change
@@ -1,56 +1,58 @@
11
<!-- HTML for static distribution bundle build -->
22
<!DOCTYPE html>
33
<html lang="en">
4-
<head>
5-
<meta charset="UTF-8">
6-
<title>Builder-API</title>
7-
<link rel="stylesheet" type="text/css" href="./dist/swagger-ui.css" >
8-
<link rel="stylesheet" type="text/css" href="./dist/theme-material.css" >
9-
<style>
10-
.topbar-wrapper img[alt="Swagger UI"] {
11-
content: url("./assets/ethereum_logo.png");
12-
height: 68px; /* Width of new image */
13-
}
14-
</style>
15-
<link rel="icon" type="image/png" href="./dist/favicon-32x32.png" sizes="32x32" />
16-
<link rel="icon" type="image/png" href="./dist/favicon-16x16.png" sizes="16x16" />
17-
<style>
18-
html
19-
{
20-
box-sizing: border-box;
21-
overflow: -moz-scrollbars-vertical;
22-
overflow-y: scroll;
23-
}
244

25-
*,
26-
*:before,
27-
*:after
28-
{
29-
box-sizing: inherit;
30-
}
5+
<head>
6+
<meta charset="UTF-8">
7+
<title>Builder-API</title>
8+
<link rel="stylesheet" type="text/css" href="./dist/swagger-ui.css">
9+
<link rel="stylesheet" type="text/css" href="./dist/theme-material.css">
10+
<style>
11+
.topbar-wrapper img[alt="Swagger UI"] {
12+
content: url("./assets/ethereum_logo.png");
13+
height: 68px;
14+
/* Width of new image */
15+
}
16+
17+
</style>
18+
<link rel="icon" type="image/png" href="./dist/favicon-32x32.png" sizes="32x32" />
19+
<link rel="icon" type="image/png" href="./dist/favicon-16x16.png" sizes="16x16" />
20+
<style>
21+
html {
22+
box-sizing: border-box;
23+
overflow: -moz-scrollbars-vertical;
24+
overflow-y: scroll;
25+
}
26+
27+
*,
28+
*:before,
29+
*:after {
30+
box-sizing: inherit;
31+
}
32+
33+
body {
34+
margin: 0;
35+
background: #fafafa;
36+
}
3137

32-
body
33-
{
34-
margin:0;
35-
background: #fafafa;
36-
}
37-
</style>
38-
</head>
38+
</style>
39+
</head>
3940

40-
<body>
41-
<div id="swagger-ui"></div>
41+
<body>
42+
<div id="swagger-ui"></div>
4243

43-
<script src="./dist/swagger-ui-bundle.js"> </script>
44-
<script src="./dist/swagger-ui-standalone-preset.js"> </script>
45-
<script>
46-
window.onload = function() {
44+
<script src="./dist/swagger-ui-bundle.js"> </script>
45+
<script src="./dist/swagger-ui-standalone-preset.js"> </script>
46+
<script>
47+
window.onload = function () {
4748
// Begin Swagger UI call region
4849
const ui = SwaggerUIBundle({
4950
urls: [
50-
{url: "https://github.com/ethereum/builder-specs/releases/download/v0.2.0/builder-oapi.yaml", name: "v0.2.0"},
51-
{url: "https://github.com/ethereum/builder-specs/releases/download/v0.1.0/builder-oapi.yaml", name: "v0.1.0"},
52-
{url: "https://github.com/ethereum/builder-specs/releases/download/v0.0.0/builder-oapi.yaml", name: "v0.0.0"},
53-
{url: "./builder-oapi.yaml", name: "dev"}
51+
{ url: "https://github.com/ethereum/builder-specs/releases/download/v0.3.0/builder-oapi.yaml", name: "v0.3.0" },
52+
{ url: "https://github.com/ethereum/builder-specs/releases/download/v0.2.0/builder-oapi.yaml", name: "v0.2.0" },
53+
{ url: "https://github.com/ethereum/builder-specs/releases/download/v0.1.0/builder-oapi.yaml", name: "v0.1.0" },
54+
{ url: "https://github.com/ethereum/builder-specs/releases/download/v0.0.0/builder-oapi.yaml", name: "v0.0.0" },
55+
{ url: "./builder-oapi.yaml", name: "dev" }
5456
],
5557
basePath: "/",
5658
dom_id: '#swagger-ui',
@@ -65,17 +67,18 @@
6567
SwaggerUIBundle.plugins.DownloadUrl
6668
],
6769
layout: "StandaloneLayout",
68-
requestInterceptor: function() {
69-
if(this.url.startsWith("http")) {
70+
requestInterceptor: function () {
71+
if (this.url.startsWith("http")) {
7072
this.url = "https://api.allorigins.win/raw?url=" + this.url; // will change the URL used.
7173
}
7274
return this;
7375
}
74-
})
76+
})
7577
// End Swagger UI call region
7678

7779
window.ui = ui
7880
}
7981
</script>
80-
</body>
82+
</body>
83+
8184
</html>

0 commit comments

Comments
 (0)