diff --git a/content/about/notes/0.8.md b/content/about/notes/0.8.md index 7dd6dbb2b5..0a3413ef33 100644 --- a/content/about/notes/0.8.md +++ b/content/about/notes/0.8.md @@ -15,7 +15,7 @@ with the prior model. There is a conversion tool built into `istioctl` to help m the old model. [Try out the new traffic management model](/docs/tasks/traffic-management). - **Envoy V2**. Users can choose to inject Envoy V2 as the sidecar. In this mode, Pilot uses Envoy's new API to push configuration to the data plane. This new approach -increases effective scalability and should eliminate spurious 404 errors. [TBD: docs on how to control this?] +increases effective scalability and should eliminate spurious 404 errors. - **Gateway for Ingress/Egress**. We no longer support combining Kubernetes Ingress specs with Istio route rules, as it has led to several bugs and reliability issues. Istio now supports a platform independent ingress/egress diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html index 8cefce0873..c283f7492f 100644 --- a/layouts/_default/baseof.html +++ b/layouts/_default/baseof.html @@ -87,7 +87,7 @@ - + {{ partial "header.html" . }} {{ block "main" . }}{{ end }} {{ partial "footer.html" . }} diff --git a/layouts/partials/header.html b/layouts/partials/header.html index 2cc43118a1..829e8b330d 100644 --- a/layouts/partials/header.html +++ b/layouts/partials/header.html @@ -59,8 +59,10 @@ Report Site Bugs - {{ if not .Page.Params.generator }} - Edit this Page on GitHub + {{ if not .Site.Data.args.archive }} + {{ if not .Page.Params.generator }} + Edit this Page on GitHub + {{ end }} {{ end }} diff --git a/src/js/styleSwitcher.js b/src/js/styleSwitcher.js index ac47519aac..006d74cf56 100644 --- a/src/js/styleSwitcher.js +++ b/src/js/styleSwitcher.js @@ -1 +1 @@ -"use strict"; function applyStyleSheet(title) { var i, a; for (i = 0; (a = document.getElementsByTagName("link")[i]); i++) { if (a.getAttribute("rel").indexOf("style") !== -1 && a.getAttribute("title")) { a.disabled = (a.getAttribute("title") !== title); } } // set the active theme menu item var item = document.getElementById("light-theme-item"); if (item !== null) { if (title === "light") { item.classList.add("active"); } else { item.classList.remove("active"); } } item = document.getElementById("dark-theme-item"); if (item !== null) { if (title === "dark") { item.classList.add("active"); } else { item.classList.remove("active"); } } } function getPreferredStyleSheet() { var i, a; for (i = 0; (a = document.getElementsByTagName("link")[i]); i++) { if (a.getAttribute("rel").indexOf("style") !== -1 && a.getAttribute("rel").indexOf("alt") === -1 && a.getAttribute("title")) { return a.getAttribute("title"); } } return null; } function createCookie(name, value, days) { if (days) { var date = new Date(); date.setTime(date.getTime() + (days * 24 * 60 * 60 * 1000)); var expires = "; expires=" + date.toGMTString(); } else { expires = ""; } document.cookie = name + "=" + value + expires + "; path=/"; } function readCookie(name) { var nameEQ = name + "="; var ca = document.cookie.split(';'); for (var i = 0; i < ca.length; i++) { var c = ca[i]; while (c.charAt(0) === ' ') { c = c.substring(1, c.length); } if (c.indexOf(nameEQ) === 0) { return c.substring(nameEQ.length, c.length); } } return null; } function setActiveStyleSheet(title) { applyStyleSheet(title); createCookie("style", title); } function loadActiveStyleSheet() { var cookie = readCookie("style"); if (cookie === null) { applyStyleSheet(getPreferredStyleSheet()); } else { applyStyleSheet(cookie); } } window.onload = function (e) { loadActiveStyleSheet(); }; loadActiveStyleSheet(); \ No newline at end of file +"use strict"; function applyStyleSheet(title) { var i, a; for (i = 0; (a = document.getElementsByTagName("link")[i]); i++) { if (a.getAttribute("rel").indexOf("style") !== -1 && a.getAttribute("title")) { a.disabled = true; if (a.getAttribute("title") === title) { a.disabled = false; } } } // set the active theme menu item var item = document.getElementById("light-theme-item"); if (item !== null) { if (title === "light") { item.classList.add("active"); } else { item.classList.remove("active"); } } item = document.getElementById("dark-theme-item"); if (item !== null) { if (title === "dark") { item.classList.add("active"); } else { item.classList.remove("active"); } } } function getPreferredStyleSheet() { var i, a; for (i = 0; (a = document.getElementsByTagName("link")[i]); i++) { if (a.getAttribute("rel").indexOf("style") !== -1 && a.getAttribute("rel").indexOf("alt") === -1 && a.getAttribute("title")) { return a.getAttribute("title"); } } return null; } function createCookie(name, value, days) { if (days) { var date = new Date(); date.setTime(date.getTime() + (days * 24 * 60 * 60 * 1000)); var expires = "; expires=" + date.toGMTString(); } else { expires = ""; } document.cookie = name + "=" + value + expires + "; path=/"; } function readCookie(name) { var nameEQ = name + "="; var ca = document.cookie.split(';'); for (var i = 0; i < ca.length; i++) { var c = ca[i]; while (c.charAt(0) === ' ') { c = c.substring(1, c.length); } if (c.indexOf(nameEQ) === 0) { return c.substring(nameEQ.length, c.length); } } return null; } function setActiveStyleSheet(title) { applyStyleSheet(title); createCookie("style", title); } function loadActiveStyleSheet() { var cookie = readCookie("style"); if (cookie === null) { applyStyleSheet(getPreferredStyleSheet()); } else { applyStyleSheet(cookie); } } window.onload = function (e) { loadActiveStyleSheet(); }; loadActiveStyleSheet(); \ No newline at end of file diff --git a/static/js/styleSwitcher.min.js b/static/js/styleSwitcher.min.js index 618d0d7fc7..55df25479e 100644 --- a/static/js/styleSwitcher.min.js +++ b/static/js/styleSwitcher.min.js @@ -1 +1 @@ -"use strict";function applyStyleSheet(e){var t,i;for(t=0;i=document.getElementsByTagName("link")[t];t++)-1!==i.getAttribute("rel").indexOf("style")&&i.getAttribute("title")&&(i.disabled=i.getAttribute("title")!==e);var l=document.getElementById("light-theme-item");null!==l&&("light"===e?l.classList.add("active"):l.classList.remove("active")),null!==(l=document.getElementById("dark-theme-item"))&&("dark"===e?l.classList.add("active"):l.classList.remove("active"))}function getPreferredStyleSheet(){var e,t;for(e=0;t=document.getElementsByTagName("link")[e];e++)if(-1!==t.getAttribute("rel").indexOf("style")&&-1===t.getAttribute("rel").indexOf("alt")&&t.getAttribute("title"))return t.getAttribute("title");return null}function createCookie(e,t,i){if(i){var l=new Date;l.setTime(l.getTime()+24*i*60*60*1e3);var r="; expires="+l.toGMTString()}else r="";document.cookie=e+"="+t+r+"; path=/"}function readCookie(e){for(var t=e+"=",i=document.cookie.split(";"),l=0;l