Sha256: 55bc56afe699bf5021d4434bcb7a3b273b47f235ece76bab5473d4115621f05f

Contents?: true

Size: 1.53 KB

Versions: 15

Compression:

Stored size: 1.53 KB

Contents

<!-- HTML for static distribution bundle build -->
<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <title>Swagger UI</title>

    <link
      rel="stylesheet"
      href="https://cdnjs.cloudflare.com/ajax/libs/swagger-ui/3.8.1/swagger-ui.css"
      type="text/css"
      charset="UTF-8"
    />
    <style>
      html {
        box-sizing: border-box;
        overflow: -moz-scrollbars-vertical;
        overflow-y: scroll;
      }

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

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

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

    <script
      src="https://cdnjs.cloudflare.com/ajax/libs/swagger-ui/3.8.1/swagger-ui-bundle.js"
      charset="UTF-8"
    ></script>
    <script
      src="https://cdnjs.cloudflare.com/ajax/libs/swagger-ui/3.8.1/swagger-ui-standalone-preset.js"
      charset="UTF-8"
    ></script>
    <script>
      window.onload = function () {
        fetch("./swagger.json")
          .then(resp => resp.json())
          .then(spec => {
            const ui = SwaggerUIBundle({
              spec: spec,
              dom_id: "#swagger-ui",
              deepLinking: true,
              presets: [
                SwaggerUIBundle.presets.apis,
                SwaggerUIStandalonePreset,
              ],
              plugins: [SwaggerUIBundle.plugins.DownloadUrl],
              layout: "BaseLayout",
            });
            window.ui = ui;
          });
      };
    </script>
  </body>
</html>

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
betterdocs-0.14.0 lib/betterdocs/generator/swagger_static/index.html
betterdocs-0.13.0 lib/betterdocs/generator/swagger_static/index.html
betterdocs-0.12.5 lib/betterdocs/generator/swagger_static/index.html
betterdocs-0.12.4 lib/betterdocs/generator/swagger_static/index.html
betterdocs-0.12.3 lib/betterdocs/generator/swagger_static/index.html
betterdocs-0.12.2 lib/betterdocs/generator/swagger_static/index.html
betterdocs-0.12.1 lib/betterdocs/generator/swagger_static/index.html
betterdocs-0.12.0 lib/betterdocs/generator/swagger_static/index.html
betterdocs-0.11.0 lib/betterdocs/generator/swagger_static/index.html
betterdocs-0.10.0 lib/betterdocs/generator/swagger_static/index.html
betterdocs-0.9.2 lib/betterdocs/generator/swagger_static/index.html
betterdocs-0.9.1 lib/betterdocs/generator/swagger_static/index.html
betterdocs-0.9.0 lib/betterdocs/generator/swagger_static/index.html
betterdocs-0.8.1 lib/betterdocs/generator/swagger_static/index.html
betterdocs-0.8.0 lib/betterdocs/generator/swagger_static/index.html