Skip to content

Commit

Permalink
V0.3.0 (#70)
Browse files Browse the repository at this point in the history
* formatting

* mint `v0.3.0`
  • Loading branch information
ralexstokes authored Feb 15, 2023
1 parent a1787c6 commit 58e2c66
Showing 1 changed file with 50 additions and 47 deletions.
97 changes: 50 additions & 47 deletions index.html
Original file line number Diff line number Diff line change
@@ -1,56 +1,58 @@
<!-- HTML for static distribution bundle build -->
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Builder-API</title>
<link rel="stylesheet" type="text/css" href="./dist/swagger-ui.css" >
<link rel="stylesheet" type="text/css" href="./dist/theme-material.css" >
<style>
.topbar-wrapper img[alt="Swagger UI"] {
content: url("./assets/ethereum_logo.png");
height: 68px; /* Width of new image */
}
</style>
<link rel="icon" type="image/png" href="./dist/favicon-32x32.png" sizes="32x32" />
<link rel="icon" type="image/png" href="./dist/favicon-16x16.png" sizes="16x16" />
<style>
html
{
box-sizing: border-box;
overflow: -moz-scrollbars-vertical;
overflow-y: scroll;
}

*,
*:before,
*:after
{
box-sizing: inherit;
}
<head>
<meta charset="UTF-8">
<title>Builder-API</title>
<link rel="stylesheet" type="text/css" href="./dist/swagger-ui.css">
<link rel="stylesheet" type="text/css" href="./dist/theme-material.css">
<style>
.topbar-wrapper img[alt="Swagger UI"] {
content: url("./assets/ethereum_logo.png");
height: 68px;
/* Width of new image */
}

</style>
<link rel="icon" type="image/png" href="./dist/favicon-32x32.png" sizes="32x32" />
<link rel="icon" type="image/png" href="./dist/favicon-16x16.png" sizes="16x16" />
<style>
html {
box-sizing: border-box;
overflow: -moz-scrollbars-vertical;
overflow-y: scroll;
}

*,
*:before,
*:after {
box-sizing: inherit;
}

body {
margin: 0;
background: #fafafa;
}

body
{
margin:0;
background: #fafafa;
}
</style>
</head>
</style>
</head>

<body>
<div id="swagger-ui"></div>
<body>
<div id="swagger-ui"></div>

<script src="./dist/swagger-ui-bundle.js"> </script>
<script src="./dist/swagger-ui-standalone-preset.js"> </script>
<script>
window.onload = function() {
<script src="./dist/swagger-ui-bundle.js"> </script>
<script src="./dist/swagger-ui-standalone-preset.js"> </script>
<script>
window.onload = function () {
// Begin Swagger UI call region
const ui = SwaggerUIBundle({
urls: [
{url: "https://github.com/ethereum/builder-specs/releases/download/v0.2.0/builder-oapi.yaml", name: "v0.2.0"},
{url: "https://github.com/ethereum/builder-specs/releases/download/v0.1.0/builder-oapi.yaml", name: "v0.1.0"},
{url: "https://github.com/ethereum/builder-specs/releases/download/v0.0.0/builder-oapi.yaml", name: "v0.0.0"},
{url: "./builder-oapi.yaml", name: "dev"}
{ url: "https://github.com/ethereum/builder-specs/releases/download/v0.3.0/builder-oapi.yaml", name: "v0.3.0" },
{ url: "https://github.com/ethereum/builder-specs/releases/download/v0.2.0/builder-oapi.yaml", name: "v0.2.0" },
{ url: "https://github.com/ethereum/builder-specs/releases/download/v0.1.0/builder-oapi.yaml", name: "v0.1.0" },
{ url: "https://github.com/ethereum/builder-specs/releases/download/v0.0.0/builder-oapi.yaml", name: "v0.0.0" },
{ url: "./builder-oapi.yaml", name: "dev" }
],
basePath: "/",
dom_id: '#swagger-ui',
Expand All @@ -65,17 +67,18 @@
SwaggerUIBundle.plugins.DownloadUrl
],
layout: "StandaloneLayout",
requestInterceptor: function() {
if(this.url.startsWith("http")) {
requestInterceptor: function () {
if (this.url.startsWith("http")) {
this.url = "https://api.allorigins.win/raw?url=" + this.url; // will change the URL used.
}
return this;
}
})
})
// End Swagger UI call region

window.ui = ui
}
</script>
</body>
</body>

</html>

0 comments on commit 58e2c66

Please sign in to comment.