Couple site fixes. (#1408)

- Get style switching working again.

- Don't show the Edit this Page option for the archived version of the site.
This commit is contained in:
Martin Taillefer 2018-06-01 06:16:21 -07:00 committed by GitHub
parent cdb478b103
commit c389a3af38
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
6 changed files with 9 additions and 7 deletions

View File

@ -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

View File

@ -87,7 +87,7 @@
<script src="/js/styleSwitcher.min.js"></script>
</head>
<body class="language-unknown theme-unknown">
<body class="language-unknown">
{{ partial "header.html" . }}
{{ block "main" . }}{{ end }}
{{ partial "footer.html" . }}

View File

@ -59,8 +59,10 @@
<a class="dropdown-item" href="https://github.com/istio/istio.github.io/issues/new?title=Issue%20with%20{{ .Page.Path}}">Report Site Bugs</a>
{{ if not .Page.Params.generator }}
<a class="dropdown-item" href="https://github.com/istio/istio.github.io/edit/master/content/{{ .Page.Path }}">Edit this Page on GitHub</a>
{{ if not .Site.Data.args.archive }}
{{ if not .Page.Params.generator }}
<a class="dropdown-item" href="https://github.com/istio/istio.github.io/edit/master/content/{{ .Page.Path }}">Edit this Page on GitHub</a>
{{ end }}
{{ end }}
</div>
</li>

View File

@ -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();
"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();

View File

@ -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<i.length;l++){for(var r=i[l];" "===r.charAt(0);)r=r.substring(1,r.length);if(0===r.indexOf(t))return r.substring(t.length,r.length)}return null}function setActiveStyleSheet(e){applyStyleSheet(e),createCookie("style",e)}function loadActiveStyleSheet(){var e=readCookie("style");applyStyleSheet(null===e?getPreferredStyleSheet():e)}window.onload=function(e){loadActiveStyleSheet()},loadActiveStyleSheet();
"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=!0,i.getAttribute("title")===e&&(i.disabled=!1));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<i.length;l++){for(var r=i[l];" "===r.charAt(0);)r=r.substring(1,r.length);if(0===r.indexOf(t))return r.substring(t.length,r.length)}return null}function setActiveStyleSheet(e){applyStyleSheet(e),createCookie("style",e)}function loadActiveStyleSheet(){var e=readCookie("style");applyStyleSheet(null===e?getPreferredStyleSheet():e)}window.onload=function(e){loadActiveStyleSheet()},loadActiveStyleSheet();

View File

@ -1 +1 @@
{"version":3,"sources":["src/js/styleSwitcher.js"],"names":["applyStyleSheet","title","i","a","document","getElementsByTagName","getAttribute","indexOf","disabled","item","getElementById","classList","add","remove","getPreferredStyleSheet","createCookie","name","value","days","date","Date","setTime","getTime","expires","toGMTString","cookie","readCookie","nameEQ","ca","split","length","c","charAt","substring","setActiveStyleSheet","loadActiveStyleSheet","window","onload","e"],"mappings":"AAAA,aAEA,SAASA,gBAAgBC,GACrB,IAAIC,EAAGC,EACP,IAAKD,EAAI,EAAIC,EAAIC,SAASC,qBAAqB,QAAQH,GAAKA,KACR,IAA5CC,EAAEG,aAAa,OAAOC,Q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,gBADW,OAAXyB,EACgBX,yBAEAW,GAIxBW,OAAOC,OAAS,SAAUC,GACtBH,wBAGJA"}
{"version":3,"sources":["src/js/styleSwitcher.js"],"names":["applyStyleSheet","title","i","a","document","getElementsByTagName","getAttribute","indexOf","disabled","item","getElementById","classList","add","remove","getPreferredStyleSheet","createCookie","name","value","days","date","Date","setTime","getTime","expires","toGMTString","cookie","readCookie","nameEQ","ca","split","length","c","charAt","substring","setActiveStyleSheet","loadActiveStyleSheet","window","onload","e"],"mappings":"AAAA,aAEA,SAASA,gBAAgBC,GACrB,IAAIC,EAAGC,EACP,IAAKD,EAAI,EAAIC,EAAIC,SAASC,qBAAqB,QAAQH,GAAKA,KACR,IAA5CC,EAAEG,aAAa,OAAOC,QAAQ,UAAmBJ,EAAEG,aAAa,WAChEH,EAAEK,UAAW,EACTL,EAAEG,aAAa,WAAaL,IAC5BE,EAAEK,UAAW,IAOzB,IAAIC,EAAOL,SAASM,eAAe,oBACtB,OAATD,IACc,UAAVR,EACAQ,EAAKE,UAAUC,IAAI,UAEnBH,EAAKE,UAAUE,OAAO,WAKjB,QADbJ,EAAOL,SAASM,eAAe,sBAEb,SAAVT,EACAQ,EAAKE,UAAUC,IAAI,UAEnBH,EAAKE,UAAUE,OAAO,WAKlC,SAASC,yBACL,IAAIZ,EAAGC,EACP,IAAKD,EAAI,EAAIC,EAAIC,SAASC,qBAAqB,QAAQH,GAAKA,IACxD,IAAgD,IAA5CC,EAAEG,aAAa,OAAOC,QAAQ,WACe,IAA1CJ,EAAEG,aAAa,OAAOC,QAAQ,QAC9BJ,EAAEG,aAAa,SAClB,OAAOH,EAAEG,aAAa,SAG9B,OAAO,KAGX,SAASS,aAAaC,EAAMC,EAAOC,GAC/B,GAAIA,EAAM,CACN,IAAIC,EAAO,IAAIC,KACfD,EAAKE,QAAQF,EAAKG,UAAoB,GAAPJ,EAAY,GAAK,GAAK,KACrD,IAAIK,EAAU,aAAeJ,EAAKK,mBAElCD,EAAU,GAEdnB,SAAS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