Skip to content

Commit

Permalink
swagger assets from cdn (#997)
Browse files Browse the repository at this point in the history
Co-authored-by: Federico Bevione <f.bevione@cognitio.it>
  • Loading branch information
FedeBev and Federico Bevione committed Jun 29, 2021
1 parent c3305c6 commit bf6828d
Show file tree
Hide file tree
Showing 6 changed files with 21 additions and 119 deletions.
10 changes: 7 additions & 3 deletions website/content/api/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,11 @@ title: "API"
weight: 100
---

<link rel="stylesheet" type="text/css" href="/css/swagger-ui.css">
<link
rel="stylesheet"
type="text/css"
href="https://unpkg.com/swagger-ui-dist@3.51.0/swagger-ui.css"
/>
<style>
body {
line-height: 1.7;
Expand All @@ -17,8 +21,8 @@ weight: 100

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

<script src="/js/swagger-ui-bundle.js"> </script>
<script src="/js/swagger-ui-standalone-preset.js"> </script>
<script src="https://unpkg.com/swagger-ui-dist@3.51.0/swagger-ui-standalone-preset.js"></script>
<script src="https://unpkg.com/swagger-ui-dist@3.51.0/swagger-ui-bundle.js"></script>
<script>
window.onload = function () {
// Begin Swagger UI call region
Expand Down
10 changes: 7 additions & 3 deletions website/content/v1.2/api/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,11 @@ title: "API"
weight: 100
---

<link rel="stylesheet" type="text/css" href="/css/swagger-ui.css">
<link
rel="stylesheet"
type="text/css"
href="https://unpkg.com/swagger-ui-dist@3.51.0/swagger-ui.css"
/>
<style>
body {
line-height: 1.7;
Expand All @@ -17,8 +21,8 @@ weight: 100

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

<script src="/js/swagger-ui-bundle.js"> </script>
<script src="/js/swagger-ui-standalone-preset.js"> </script>
<script src="https://unpkg.com/swagger-ui-dist@3.51.0/swagger-ui-standalone-preset.js"></script>
<script src="https://unpkg.com/swagger-ui-dist@3.51.0/swagger-ui-bundle.js"></script>
<script>
window.onload = function () {
// Begin Swagger UI call region
Expand Down
10 changes: 7 additions & 3 deletions website/content/v2.0/api/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,11 @@ title: "API"
weight: 100
---

<link rel="stylesheet" type="text/css" href="/css/swagger-ui.css">
<link
rel="stylesheet"
type="text/css"
href="https://unpkg.com/swagger-ui-dist@3.51.0/swagger-ui.css"
/>
<style>
body {
line-height: 1.7;
Expand All @@ -17,8 +21,8 @@ weight: 100

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

<script src="/js/swagger-ui-bundle.js"> </script>
<script src="/js/swagger-ui-standalone-preset.js"> </script>
<script src="https://unpkg.com/swagger-ui-dist@3.51.0/swagger-ui-standalone-preset.js"></script>
<script src="https://unpkg.com/swagger-ui-dist@3.51.0/swagger-ui-bundle.js"></script>
<script>
window.onload = function () {
// Begin Swagger UI call region
Expand Down
3 changes: 0 additions & 3 deletions website/static/css/swagger-ui.css

This file was deleted.

93 changes: 0 additions & 93 deletions website/static/js/swagger-ui-bundle.js

This file was deleted.

14 changes: 0 additions & 14 deletions website/static/js/swagger-ui-standalone-preset.js

This file was deleted.

0 comments on commit bf6828d

Please sign in to comment.