Fix deprecated landscape URLs (#26251)

* Fix deprecated landscape URLs

* Revert changes to language files
This commit is contained in:
Jordi Noguera
2021-02-28 20:26:39 +01:00
committed by GitHub
parent 4f742dbbb6
commit 6d86df2b49
2 changed files with 4 additions and 4 deletions
@@ -114,7 +114,7 @@ will have strictly better performance and less overhead. However, we encourage y
to explore all the options from the [CNCF landscape] in case another would be an to explore all the options from the [CNCF landscape] in case another would be an
even better fit for your environment. even better fit for your environment.
[CNCF landscape]: https://landscape.cncf.io/category=container-runtime&format=card-mode&grouping=category [CNCF landscape]: https://landscape.cncf.io/card-mode?category=container-runtime&grouping=category
### What should I look out for when changing CRI implementations? ### What should I look out for when changing CRI implementations?
+3 -3
View File
@@ -15,7 +15,7 @@ function updateLandscapeSource(button,shouldUpdateFragment) {
} else { } else {
var landscapeElements = document.querySelectorAll("#landscape"); var landscapeElements = document.querySelectorAll("#landscape");
let categories=button.dataset.landscapeTypes; let categories=button.dataset.landscapeTypes;
let link = "https://landscape.cncf.io/category="+encodeURIComponent(categories)+"&format=card-mode&grouping=category&embed=yes"; let link = "https://landscape.cncf.io/card-mode?category="+encodeURIComponent(categories)+"&grouping=category&embed=yes";
landscapeElements[0].src = link; landscapeElements[0].src = link;
} }
} }
@@ -58,9 +58,9 @@ document.addEventListener("DOMContentLoaded", function () {
{{- end -}} {{- end -}}
<div id="frameHolder"> <div id="frameHolder">
{{ if ( .Get "category" ) }} {{ if ( .Get "category" ) }}
<iframe frameborder="0" id="landscape" scrolling="no" src="https://landscape.cncf.io/category={{ .Get "category" }}&format=card-mode&grouping=category&embed=yes" style="width: 1px; min-width: 100%"></iframe> <iframe frameborder="0" id="landscape" scrolling="no" src="https://landscape.cncf.io/card-mode?category={{ .Get "category" }}&grouping=category&embed=yes" style="width: 1px; min-width: 100%"></iframe>
{{ else }} {{ else }}
<iframe frameborder="0" id="landscape" scrolling="no" src="https://landscape.cncf.io/format=card-mode;embed=yes" style="width: 1px; min-width: 100%" title="CNCF Landscape"></iframe> <iframe frameborder="0" id="landscape" scrolling="no" src="https://landscape.cncf.io/card-mode?embed=yes" style="width: 1px; min-width: 100%" title="CNCF Landscape"></iframe>
{{ end }} {{ end }}
<script src="https://landscape.cncf.io/iframeResizer.js"></script> <script src="https://landscape.cncf.io/iframeResizer.js"></script>
</div> </div>