Site improvements (#3928)

- Added the text_hack shortcode to embed text blocks in a tabset in a list. This fixes the
indenting problem in that case. It's a hack, thus the name, but it works.

- Added a download button in the footer of each page.

- Tweaked the rendering of the horizontal lines in the panels on the home page to
improve appearance and avoid occasional funny rendering.

- Run the SVG optimizer on the site content to reduce the size of a few newly added/updated
files.
This commit is contained in:
Martin Taillefer 2019-04-03 10:26:46 -07:00 committed by istio-bot
parent 253b6b677f
commit c31a8fdefd
26 changed files with 82 additions and 71 deletions

View File

@ -1,32 +1 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- Generator: Adobe Illustrator 22.1.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
<svg version="1.1" id="Artwork" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
viewBox="0 0 521.6 446.5" style="enable-background:new 0 0 521.6 446.5;" xml:space="preserve">
<style type="text/css">
.st0{fill:#FF5533;}
</style>
<path id="Logo" class="st0" d="M163.8,209.3c0-5.7,4.4-9.9,9.9-9.9c5.5,0,9.9,4.3,9.9,9.9c0,5.7-4.4,9.9-9.9,9.9
C168.2,219.2,163.8,214.9,163.8,209.3z M181.4,191.5c0,5.7,4.4,9.9,9.9,9.9c5.5,0,9.9-4.3,9.9-9.9c0-5.7-4.4-9.9-9.9-9.9
C185.8,181.6,181.4,185.8,181.4,191.5z M205.5,179.4v17.8c13.9,0,24.8,11.3,24.8,26.1c0,14.8-11,26.1-24.8,26.1
c-13.9,0-24.8-11.3-24.8-26.1h-19.4c0,24.6,19.6,43.9,44.2,43.9c24.6,0,44.2-19.3,44.2-43.9C249.7,198.7,230.1,179.4,205.5,179.4z
M405,346.3v-16.9h31.3v-16.9H405v-16.6h34.5v-17H386v84.3h54v-17H405z M374.7,321.1c0,24.2-18.5,42.1-44.6,42.1h-27.8v-84.4h27.8
C356.2,278.8,374.7,296.9,374.7,321.1z M355.3,321.1c0-14.4-9.6-25.3-23.7-25.3h-10.4v50.5h10.4
C345.7,346.3,355.3,335.5,355.3,321.1z M228.4,330.8c0,9.7-6.9,16.9-16.4,16.9c-9.5,0-16.4-7.2-16.4-16.9V279h-18.8v51.5
c0,19.9,14.9,34.5,35.2,34.5c20.3,0,35.2-14.7,35.2-34.5V279h-18.8V330.8z M119,332.5h18.7c-1.7,8.7-9.4,15.4-18.6,15.4
c-10.3,0-18.6-8.3-18.6-20.4V315c0-11.9,8.9-20.7,21.4-20.7c9.7,0,18.4,5.3,21.2,13l17.5-6.1c-4.8-14.8-20.6-24-38.7-24
c-22.9,0-39.9,15.4-39.9,37.8v12.5C82.1,349,98,365,117.6,365c12.2,0,23-6.2,29.3-15.8v14.1h16.6v-46.9H119V332.5z M331.7,232.6
v-51.5h-18.8v51.8c0,9.7-6.9,16.9-16.4,16.9c-9.5,0-16.4-7.2-16.4-16.9v-51.8h-18.8v51.5c0,19.9,14.9,34.5,35.2,34.5
C316.8,267.1,331.7,252.5,331.7,232.6z M113.3,265.4h18.9v-32l31.7-52.3h-21.4l-20,34.5l-19.7-34.5H81.5l31.7,52.5V265.4z
M303.2,83.2h-64v17h64V83.2z M231.1,150.5H196v-16.9h31.3v-16.9H196v-16.6h34.5v-17h-53.5v84.3h54V150.5z M117.6,169.3
c12.2,0,23-6.2,29.3-15.8v14.1h16.6v-46.9H119v16.2h18.7c-1.7,8.7-9.4,15.4-18.6,15.4c-10.3,0-18.6-8.3-18.6-20.4v-12.5
c0-11.9,8.9-20.7,21.4-20.7c9.7,0,18.4,5.3,21.2,13l17.5-6.1c-4.8-14.8-20.6-24-38.7-24c-22.9,0-39.9,15.4-39.9,37.8v12.5
C82.1,153.3,98,169.3,117.6,169.3z M374.8,244.1l-9.8-10.3l9.7-10.5l-9.8-10.3l9.7-10.5l-9.8-10.3l10.8-11.1h-19.6l-10.6,11.2
l9.8,10.3l-9.7,10.5l9.8,10.3l-9.7,10.5l9.8,10.3l-9.7,10.5l10.4,10.8h19.7l-10.6-10.9L374.8,244.1z M282.9,318.6
c2.8-2.5,7.5-6.7,7.5-14.5c0-7.7-4.7-12-7.5-14.5c-0.1-0.1-0.2-0.2-0.3-0.3c-1.4-1.5-1.6-3.6-1.7-4.6v-5.9h-19v7.9h0
c0,0.1,0,0.2,0,0.3c0,7.7,4.7,12,7.5,14.5c2,1.8,2,1.9,2,2.6c0,0.7,0,0.8-2,2.6c-2.7,2.4-7.1,6.4-7.4,13.6h0c0,0.1,0,0.3,0,0.4
c0,0.1,0,0.1,0,0.2c0,0.1,0,0.1,0,0.2c0,0.1,0,0.3,0,0.4h0c0.3,7.2,4.8,11.2,7.4,13.6c2,1.8,2,1.9,2,2.6c0,0.7,0,0.8-2,2.6
c-2.8,2.5-7.5,6.7-7.5,14.5c0,0.1,0,0.2,0,0.3h0v7.9h19v-5.9c0-1,0.3-3.1,1.7-4.6c0.1-0.1,0.2-0.2,0.3-0.3c2.8-2.5,7.5-6.7,7.5-14.5
c0-7.7-4.7-12-7.5-14.5c-1.8-1.6-2-1.9-2-2.4C281,320.5,281.2,320.2,282.9,318.6z M261.7,167.5h18.9v-15.7h-18.9V167.5z
M280.7,129.4h-18.9v15.7h18.9V129.4z M280.7,106.9h-18.9v15.7h18.9V106.9z M424,265.4l-23-32.2c11.2-3.5,19-13.3,19-25.3
c0-15.2-12.6-26.8-28.5-26.8h-11.1v17.1h10.4c5.5,0,9.8,4.4,9.8,10.2c0,5.8-4.3,10.2-9.8,10.2h-10.4v16.2l20.6,30.7H424z"/>
</svg>
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 521.6 446.5"><path d="M163.8 209.3c0-5.7 4.4-9.9 9.9-9.9s9.9 4.3 9.9 9.9c0 5.7-4.4 9.9-9.9 9.9s-9.9-4.3-9.9-9.9zm17.6-17.8c0 5.7 4.4 9.9 9.9 9.9s9.9-4.3 9.9-9.9c0-5.7-4.4-9.9-9.9-9.9s-9.9 4.2-9.9 9.9zm24.1-12.1v17.8c13.9 0 24.8 11.3 24.8 26.1s-11 26.1-24.8 26.1c-13.9 0-24.8-11.3-24.8-26.1h-19.4c0 24.6 19.6 43.9 44.2 43.9s44.2-19.3 44.2-43.9c0-24.6-19.6-43.9-44.2-43.9zM405 346.3v-16.9h31.3v-16.9H405v-16.6h34.5v-17H386v84.3h54v-17h-35zm-30.3-25.2c0 24.2-18.5 42.1-44.6 42.1h-27.8v-84.4h27.8c26.1 0 44.6 18.1 44.6 42.3zm-19.4 0c0-14.4-9.6-25.3-23.7-25.3h-10.4v50.5h10.4c14.1 0 23.7-10.8 23.7-25.2zm-126.9 9.7c0 9.7-6.9 16.9-16.4 16.9-9.5 0-16.4-7.2-16.4-16.9V279h-18.8v51.5c0 19.9 14.9 34.5 35.2 34.5 20.3 0 35.2-14.7 35.2-34.5V279h-18.8v51.8zM119 332.5h18.7c-1.7 8.7-9.4 15.4-18.6 15.4-10.3 0-18.6-8.3-18.6-20.4V315c0-11.9 8.9-20.7 21.4-20.7 9.7 0 18.4 5.3 21.2 13l17.5-6.1c-4.8-14.8-20.6-24-38.7-24C99 277.2 82 292.6 82 315v12.5c.1 21.5 16 37.5 35.6 37.5 12.2 0 23-6.2 29.3-15.8v14.1h16.6v-46.9H119v16.1zm212.7-99.9v-51.5h-18.8v51.8c0 9.7-6.9 16.9-16.4 16.9-9.5 0-16.4-7.2-16.4-16.9v-51.8h-18.8v51.5c0 19.9 14.9 34.5 35.2 34.5 20.3 0 35.2-14.6 35.2-34.5zm-218.4 32.8h18.9v-32l31.7-52.3h-21.4l-20 34.5-19.7-34.5H81.5l31.7 52.5v31.8zM303.2 83.2h-64v17h64v-17zm-72.1 67.3H196v-16.9h31.3v-16.9H196v-16.6h34.5v-17H177v84.3h54v-16.9zm-113.5 18.8c12.2 0 23-6.2 29.3-15.8v14.1h16.6v-46.9H119v16.2h18.7c-1.7 8.7-9.4 15.4-18.6 15.4-10.3 0-18.6-8.3-18.6-20.4v-12.5c0-11.9 8.9-20.7 21.4-20.7 9.7 0 18.4 5.3 21.2 13l17.5-6.1c-4.8-14.8-20.6-24-38.7-24C99 81.6 82 97 82 119.4v12.5c.1 21.4 16 37.4 35.6 37.4zm257.2 74.8l-9.8-10.3 9.7-10.5-9.8-10.3 9.7-10.5-9.8-10.3 10.8-11.1H356l-10.6 11.2 9.8 10.3-9.7 10.5 9.8 10.3-9.7 10.5 9.8 10.3-9.7 10.5 10.4 10.8h19.7l-10.6-10.9 9.6-10.5zm-91.9 74.5c2.8-2.5 7.5-6.7 7.5-14.5 0-7.7-4.7-12-7.5-14.5l-.3-.3c-1.4-1.5-1.6-3.6-1.7-4.6v-5.9h-19v8.2c0 7.7 4.7 12 7.5 14.5 2 1.8 2 1.9 2 2.6 0 .7 0 .8-2 2.6-2.7 2.4-7.1 6.4-7.4 13.6v1.2c.3 7.2 4.8 11.2 7.4 13.6 2 1.8 2 1.9 2 2.6 0 .7 0 .8-2 2.6-2.8 2.5-7.5 6.7-7.5 14.5v8.2h19v-5.9c0-1 .3-3.1 1.7-4.6l.3-.3c2.8-2.5 7.5-6.7 7.5-14.5 0-7.7-4.7-12-7.5-14.5-1.8-1.6-2-1.9-2-2.4.1-.3.3-.6 2-2.2zm-21.2-151.1h18.9v-15.7h-18.9v15.7zm19-38.1h-18.9v15.7h18.9v-15.7zm0-22.5h-18.9v15.7h18.9v-15.7zM424 265.4l-23-32.2c11.2-3.5 19-13.3 19-25.3 0-15.2-12.6-26.8-28.5-26.8h-11.1v17.1h10.4c5.5 0 9.8 4.4 9.8 10.2 0 5.8-4.3 10.2-9.8 10.2h-10.4v16.2l20.6 30.7h23z" fill="#f53"/></svg>

Before

Width:  |  Height:  |  Size: 3.2 KiB

After

Width:  |  Height:  |  Size: 2.4 KiB

File diff suppressed because one or more lines are too long

Before

Width:  |  Height:  |  Size: 5.6 KiB

After

Width:  |  Height:  |  Size: 5.6 KiB

View File

@ -597,7 +597,7 @@ to be 443. The egress gateway accepts the MongoDB traffic on the port 443, match
{{< tab name="mutual TLS enabled" cookie-value="enabled" >}}
{{< text bash >}}
{{< text_hack bash >}}
$ kubectl apply -f - <<EOF
apiVersion: networking.istio.io/v1alpha3
kind: Gateway
@ -672,13 +672,13 @@ to be 443. The egress gateway accepts the MongoDB traffic on the port 443, match
number: $MONGODB_PORT
weight: 100
EOF
{{< /text >}}
{{< /text_hack >}}
{{< /tab >}}
{{< tab name="mutual TLS disabled" cookie-value="disabled" >}}
{{< text bash >}}
{{< text_hack bash >}}
$ kubectl apply -f - <<EOF
apiVersion: networking.istio.io/v1alpha3
kind: Gateway
@ -742,7 +742,7 @@ to be 443. The egress gateway accepts the MongoDB traffic on the port 443, match
number: $MONGODB_PORT
weight: 100
EOF
{{< /text >}}
{{< /text_hack >}}
{{< /tab >}}

File diff suppressed because one or more lines are too long

Before

Width:  |  Height:  |  Size: 7.5 KiB

After

Width:  |  Height:  |  Size: 7.4 KiB

File diff suppressed because one or more lines are too long

Before

Width:  |  Height:  |  Size: 5.5 KiB

After

Width:  |  Height:  |  Size: 5.3 KiB

File diff suppressed because one or more lines are too long

Before

Width:  |  Height:  |  Size: 38 KiB

After

Width:  |  Height:  |  Size: 38 KiB

File diff suppressed because one or more lines are too long

Before

Width:  |  Height:  |  Size: 38 KiB

After

Width:  |  Height:  |  Size: 38 KiB

File diff suppressed because one or more lines are too long

Before

Width:  |  Height:  |  Size: 186 KiB

After

Width:  |  Height:  |  Size: 82 KiB

File diff suppressed because one or more lines are too long

Before

Width:  |  Height:  |  Size: 69 KiB

After

Width:  |  Height:  |  Size: 68 KiB

View File

@ -101,7 +101,7 @@ be done by the egress gateway, as opposed to by the sidecar in the previous exam
{{< tab name="mutual TLS enabled" cookie-value="enabled" >}}
{{< text bash >}}
{{< text_hack bash >}}
$ kubectl apply -f - <<EOF
apiVersion: networking.istio.io/v1alpha3
kind: Gateway
@ -141,13 +141,13 @@ be done by the egress gateway, as opposed to by the sidecar in the previous exam
mode: ISTIO_MUTUAL
sni: edition.cnn.com
EOF
{{< /text >}}
{{< /text_hack >}}
{{< /tab >}}
{{< tab name="mutual TLS disabled" cookie-value="disabled" >}}
{{< text bash >}}
{{< text_hack bash >}}
$ kubectl apply -f - <<EOF
apiVersion: networking.istio.io/v1alpha3
kind: Gateway
@ -173,7 +173,7 @@ be done by the egress gateway, as opposed to by the sidecar in the previous exam
subsets:
- name: cnn
EOF
{{< /text >}}
{{< /text_hack >}}
{{< /tab >}}

View File

@ -114,7 +114,7 @@ First create a `ServiceEntry` to allow direct traffic to an external service.
{{< tab name="mutual TLS enabled" cookie-value="enabled" >}}
{{< text bash >}}
{{< text_hack bash >}}
$ kubectl apply -f - <<EOF
apiVersion: networking.istio.io/v1alpha3
kind: Gateway
@ -154,13 +154,13 @@ First create a `ServiceEntry` to allow direct traffic to an external service.
mode: ISTIO_MUTUAL
sni: edition.cnn.com
EOF
{{< /text >}}
{{< /text_hack >}}
{{< /tab >}}
{{< tab name="mutual TLS disabled" cookie-value="disabled" >}}
{{< text bash >}}
{{< text_hack bash >}}
$ kubectl apply -f - <<EOF
apiVersion: networking.istio.io/v1alpha3
kind: Gateway
@ -186,7 +186,7 @@ First create a `ServiceEntry` to allow direct traffic to an external service.
subsets:
- name: cnn
EOF
{{< /text >}}
{{< /text_hack >}}
{{< /tab >}}
@ -322,7 +322,7 @@ You need to specify port 443 with protocol `TLS` in a corresponding `ServiceEntr
{{< tab name="mutual TLS enabled" cookie-value="enabled" >}}
{{< text bash >}}
{{< text_hack bash >}}
$ kubectl apply -f - <<EOF
apiVersion: networking.istio.io/v1alpha3
kind: Gateway
@ -397,13 +397,13 @@ You need to specify port 443 with protocol `TLS` in a corresponding `ServiceEntr
number: 443
weight: 100
EOF
{{< /text >}}
{{< /text_hack >}}
{{< /tab >}}
{{< tab name="mutual TLS disabled" cookie-value="disabled" >}}
{{< text bash >}}
{{< text_hack bash >}}
$ kubectl apply -f - <<EOF
apiVersion: networking.istio.io/v1alpha3
kind: Gateway
@ -467,7 +467,7 @@ You need to specify port 443 with protocol `TLS` in a corresponding `ServiceEntr
number: 443
weight: 100
EOF
{{< /text >}}
{{< /text_hack >}}
{{< /tab >}}

View File

@ -415,7 +415,7 @@ The SNI proxy will forward the traffic to port `443`.
traffic destined for _*.wikipedia.org_ through the gateway.
Choose the instructions corresponding to whether or not you want to enable
[mutual TLS Authentication](/docs/tasks/security/mutual-tls/) between the source pod and the egress gateway.
[mutual TLS Authentication](/docs/tasks/security/mutual-tls/) between the source pod and the egress gateway.
{{< idea >}}
You may want to enable mutual TLS to let the egress gateway monitor the identity of the source pods and to enable Mixer policy enforcement based on that identity.
@ -425,7 +425,7 @@ The SNI proxy will forward the traffic to port `443`.
{{< tab name="mutual TLS enabled" cookie-value="enabled" >}}
{{< text bash >}}
{{< text_hack bash >}}
$ kubectl apply -f - <<EOF
apiVersion: networking.istio.io/v1alpha3
kind: Gateway
@ -536,13 +536,13 @@ The SNI proxy will forward the traffic to port `443`.
filterType: NETWORK
filterConfig: {}
EOF
{{< /text >}}
{{< /text_hack >}}
{{< /tab >}}
{{< tab name="mutual TLS disabled" cookie-value="disabled" >}}
{{< text bash >}}
{{< text_hack bash >}}
$ kubectl apply -f - <<EOF
apiVersion: networking.istio.io/v1alpha3
kind: Gateway
@ -607,7 +607,7 @@ The SNI proxy will forward the traffic to port `443`.
number: 8443
weight: 100
EOF
{{< /text >}}
{{< /text_hack >}}
{{< /tab >}}

View File

@ -66,13 +66,13 @@ skip_sitemap: true
{{< tab name="Seven" cookie-value="seven" >}}
1. Simple text with _markdown_ in a list in a tab
{{< text plain >}}
NoIndent:
{{< text_hack bash >}}
$ NoIndent:
FourIndent:
- EightIndent
FourIndentAgain:
- EightIndentAgain
{{< /text >}}
{{< /text_hack >}}
1. Second bullet
{{< /tab >}}

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

Before

Width:  |  Height:  |  Size: 91 KiB

After

Width:  |  Height:  |  Size: 91 KiB

View File

@ -1,5 +1,5 @@
"use strict";const click="click",mouseenter="mouseenter",mouseleave="mouseleave",active="active",keyup="keyup",keydown="keydown",button="button",ariaLabel="aria-label",ariaExpanded="aria-expanded",ariaSelected="aria-selected",ariaControls="aria-controls",tabIndex="tabindex";
"use strict";const keyCodes=Object.freeze({DOWN:40,END:35,ESC:27,HOME:36,LEFT:37,PAGEDOWN:34,PAGEUP:33,RETURN:13,RIGHT:39,SPACE:32,TAB:9,UP:38});function copyToClipboard(a){const b=document.getSelection();if(b){const c=document.createElement("textarea");if(c.value=a,c.setAttribute("readonly",""),c.style.position="absolute",c.style.left="-9999px",document.body.appendChild(c),0<b.rangeCount){let a=b.getRangeAt(0);c.select(),document.execCommand("copy"),document.body.removeChild(c),b.removeAllRanges(),b.addRange(a)}else c.select(),document.execCommand("copy"),document.body.removeChild(c)}}function saveFile(a,b){const c=document.createElement("a");c.setAttribute("href","data:text/text;charset=utf-8,"+encodeURI(b)),c.setAttribute("download",a),c.click()}function printText(a){const b=window.open("","","left=0,top=0,width=100,height=100,toolbar=0,scrollbars=0,status=0,location=0,menubar=0",!1);b&&(b.document.write("<html><body><pre><code>"+a+"</code></pre></html>"),b.document.close(),b.focus(),b.print(),b.close())}function navigateToUrlOrRoot(a){const b=new XMLHttpRequest;b.open("GET",a,!0),b.onreadystatechange=()=>{if(4===b.readyState&&404===b.status){const b=new URL(a);b.pathname="",a=b.toString()}window.location.href=a},b.send()}function createCookie(a,b){document.cookie=a+"="+b+"; path=/"}function getById(a){return document.getElementById(a)}function listen(a,b,c){a&&a.addEventListener(b,c)}function toggleAttribute(a,b){"true"===a.getAttribute(b)?a.setAttribute(b,"false"):a.setAttribute(b,"true")}function isPrintableCharacter(a){return 1===a.length&&null!=a.match(/\S/)}
"use strict";const keyCodes=Object.freeze({DOWN:40,END:35,ESC:27,HOME:36,LEFT:37,PAGEDOWN:34,PAGEUP:33,RETURN:13,RIGHT:39,SPACE:32,TAB:9,UP:38});function copyToClipboard(a){const b=document.getSelection();if(b){const c=document.createElement("textarea");if(c.value=a,c.setAttribute("readonly",""),c.style.position="absolute",c.style.left="-9999px",document.body.appendChild(c),0<b.rangeCount){const a=b.getRangeAt(0);c.select(),document.execCommand("copy"),document.body.removeChild(c),b.removeAllRanges(),b.addRange(a)}else c.select(),document.execCommand("copy"),document.body.removeChild(c)}}function saveFile(a,b){const c=document.createElement("a");c.setAttribute("href","data:text/text;charset=utf-8,"+encodeURI(b)),c.setAttribute("download",a),c.click()}function printText(a){const b=window.open("","","left=0,top=0,width=100,height=100,toolbar=0,scrollbars=0,status=0,location=0,menubar=0",!1);b&&(b.document.write("<html><body><pre><code>"+a+"</code></pre></html>"),b.document.close(),b.focus(),b.print(),b.close())}function navigateToUrlOrRoot(a){const b=new XMLHttpRequest;b.open("GET",a,!0),b.onreadystatechange=()=>{if(4===b.readyState&&404===b.status){const b=new URL(a);b.pathname="",a=b.toString()}window.location.href=a},b.send()}function createCookie(a,b){document.cookie=a+"="+b+"; path=/"}function getById(a){return document.getElementById(a)}function listen(a,b,c){a&&a.addEventListener(b,c)}function toggleAttribute(a,b){"true"===a.getAttribute(b)?a.setAttribute(b,"false"):a.setAttribute(b,"true")}function isPrintableCharacter(a){return 1===a.length&&null!=a.match(/\S/)}
"use strict";class KbdNav{constructor(a){this.elements=a}focusFirstElement(){this.elements[0].focus()}focusLastElement(){this.elements[this.elements.length-1].focus()}focusNextElement(){for(let a=0;a<this.elements.length;a++)if(this.elements[a]===document.activeElement){if(a<this.elements.length-1)return void this.elements[a+1].focus();break}this.focusFirstElement()}focusPrevElement(){for(let a=0;a<this.elements.length;a++)if(this.elements[a]===document.activeElement){if(0<a)return void this.elements[a-1].focus();break}this.focusLastElement()}focusElementByChar(a){function b(b,c){for(let d=b;d<c.length;d++){const b=c[d];if(b&&b.textContent){const c=b.textContent.trim().substring(0,1).toLowerCase();if(a===c)return d}}return-1}a=a.toLowerCase();for(let c=0;c<this.elements.length;c++)if(this.elements[c]===document.activeElement){let a=b(c+1,this.elements);-1===a&&(a=b(0,this.elements)),-1<a&&this.elements[a].focus();break}}}
"use strict";function handleThemes(){applyStyleSheet(cookieValue),listen(getById(lightThemeItem),click,()=>(applyStyleSheet(lightTheme),createCookie(styleCookie,lightTheme),!1)),listen(getById(darkThemeItem),click,()=>(applyStyleSheet(darkTheme),createCookie(styleCookie,darkTheme),!1))}handleThemes();
"use strict";function handleMenu(){document.querySelectorAll(".menu").forEach(a=>{function b(){c&&c.focus()}const c=a.querySelector(".menu-trigger"),d=a.querySelector(".menu-content");if(!c||!d)return;const e=[];for(const b of d.children){const a=b;"menuitem"===a.getAttribute("role")&&e.push(a)}const f=new KbdNav(e);listen(c,click,b=>{toggleOverlay(a),toggleAttribute(b.currentTarget,ariaExpanded),b.cancelBubble=!0}),listen(c,keydown,b=>{const c=b,d=c.key;switch(c.keyCode){case keyCodes.SPACE:case keyCodes.RETURN:case keyCodes.DOWN:showOverlay(a),f.focusFirstElement();break;case keyCodes.UP:showOverlay(a),f.focusLastElement();break;default:return void(isPrintableCharacter(d)&&f.focusElementByChar(d));}c.stopPropagation(),c.preventDefault()}),e.forEach(a=>{listen(a,keydown,c=>{const d=c,e=d.key;if(d.ctrlKey||d.altKey||d.metaKey);else if(d.shiftKey)isPrintableCharacter(e)&&f.focusElementByChar(e);else{switch(d.keyCode){case keyCodes.SPACE:break;case keyCodes.RETURN:const c=new MouseEvent(click,{bubbles:!0,cancelable:!0,clientX:20,view:window});a.dispatchEvent(c);break;case keyCodes.ESC:case keyCodes.TAB:return b(),void closeActiveOverlay();case keyCodes.UP:f.focusPrevElement();break;case keyCodes.DOWN:f.focusNextElement();break;case keyCodes.HOME:case keyCodes.PAGEUP:f.focusFirstElement();break;case keyCodes.END:case keyCodes.PAGEDOWN:f.focusLastElement();break;default:return void(isPrintableCharacter(e)&&f.focusElementByChar(e));}d.stopPropagation(),d.preventDefault()}})})})}handleMenu();

File diff suppressed because one or more lines are too long

View File

@ -1,3 +1,6 @@
[download_desc]
other = "Go download Istio %s now"
[discuss_istio_io_desc]
other = "Join the Istio discussion board to participate in discussions and get help troubleshooting problems"

View File

@ -1,3 +1,6 @@
[download_deac]
other = "Go download Istio %s now."
[discuss_istio_io_desc]
other = "加入 Istio discussion board 参与讨论获取帮助"

View File

@ -1,5 +1,17 @@
<footer>
<div class="user-links">
{{- $release_url := "" -}}
{{- if .Site.Data.args.preliminary }}
{{- $release_url = "https://github.com/istio/istio/releases/" -}}
{{- else -}}
{{- $release_url = printf "https://github.com/istio/istio/releases/tag/%s" .Site.Data.args.full_version -}}
{{- end -}}
<a class="channel" title='{{ printf (i18n "download_desc") (strings.TrimSuffix ".0" .Site.Data.args.full_version) }}' href="{{- $release_url -}}" aria-label="Download Istio">
<span>download</span>
{{ partial "icon.html" "download" }}
</a>
<a class="channel" title='{{ i18n "discuss_istio_io_desc" }}' href="https://discuss.istio.io" aria-label="Istio discussion board">
<span>discuss</span>
{{ partial "icon.html" "discourse" }}
@ -35,7 +47,7 @@
{{ i18n "footer_istio" }}
{{ end }}
{{ .Site.Data.args.version }}<br>&copy; {{ .Site.Data.args.copyright_year }} Istio Authors, <a href="https://policies.google.com/privacy">{{ i18n "footer_privacy_policy" }}</a><br>
{{ strings.TrimSuffix ".0" .Site.Data.args.full_version }}<br>&copy; {{ .Site.Data.args.copyright_year }} Istio Authors, <a href="https://policies.google.com/privacy">{{ i18n "footer_privacy_policy" }}</a><br>
{{ if .Site.Data.args.archive }}
{{ printf (i18n "footer_archived_on") (dateFormat (i18n "footer_date_format") .Site.Data.args.archive_date) }}
{{ else }}

View File

@ -0,0 +1,21 @@
{{- /* Inserts a text block into the HTML. See https://preliminary.istio.io/about/contribute/creating-and-editing-pages/#embedding-preformatted-blocks for details
This is a special simplified version of the normal text shortcode that doesn't support any features and is designed to work around a bug in Hugo
that occurs when using a text block inside a tab inside a list. This bug causes indent to be off in that case for certain lines in the text block.
This hack works around that problem.
*/ -}}
{{- $syntax := .Get "syntax" | default (.Get 0) -}}
{{- if not $syntax -}}
{{- errorf "Text block does not specify a syntax (%s)" .Position -}}
{{- $syntax = "plain" -}}
{{- end -}}
{{- if eq $syntax "bash" -}}
{{- if not (hasPrefix (trim .Inner "\n ") "$") -}}
{{- errorf "Text block specifies a bash syntax, but the first line of the block does not start with $ (%s)" .Position -}}
{{- end -}}
{{- end -}}
```{{ printf "%s" $syntax -}}
{{- .Inner -}}
```

View File

@ -5,3 +5,4 @@ svgo --version
npx svgo -r -f content
npx svgo -r -f content_zh
npx svgo -r -f src/icons

View File

@ -1 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 484.702 484.703"><path d="M451.655 414.239H33.048C14.798 414.239 0 428.659 0 446.91c0 18.25 14.798 32.67 33.048 32.67h418.607c18.249 0 33.047-14.42 33.047-32.67 0-18.251-14.798-32.671-33.047-32.671zm-234.304-43.718c13.862 19.657 37.98 17.842 50.002 0 30.482-45.242 126.299-177.947 126.299-177.947 7.233-10.19 6.901-23.929-.812-33.762a28.23 28.23 0 0 0-32.602-8.819l-73.499 29.111 9.703-143.854a28.213 28.213 0 0 0-7.6-21.238 28.245 28.245 0 0 0-20.729-8.889h-51.525a28.24 28.24 0 0 0-20.73 8.889 28.222 28.222 0 0 0-7.6 21.238l9.704 143.854-73.499-29.111a28.23 28.23 0 0 0-32.602 8.819c-7.713 9.833-8.045 23.571-.811 33.762.002-.001 94.861 133.365 126.301 177.947z"/></svg>
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 29.978 29.978"><path d="M25.462 19.105v6.848H4.515v-6.848H.489v8.861c0 1.111.9 2.012 2.016 2.012h24.967c1.115 0 2.016-.9 2.016-2.012v-8.861h-4.026zM14.62 18.426l-5.764-6.965s-.877-.828.074-.828h3.248V9.217.494S12.049 0 12.793 0h4.572c.536 0 .524.416.524.416V10.424h2.998c1.154 0 .285.867.285.867s-4.904 6.51-5.588 7.193c-.492.495-.964-.058-.964-.058z"/></svg>

Before

Width:  |  Height:  |  Size: 726 B

After

Width:  |  Height:  |  Size: 412 B

View File

@ -1 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="60 60 150 150"><path d="M99.4 151.2c0 7.1-5.8 12.9-12.9 12.9s-12.9-5.8-12.9-12.9c0-7.1 5.8-12.9 12.9-12.9h12.9v12.9zM105.9 151.2c0-7.1 5.8-12.9 12.9-12.9s12.9 5.8 12.9 12.9v32.3c0 7.1-5.8 12.9-12.9 12.9s-12.9-5.8-12.9-12.9v-32.3zM118.8 99.4c-7.1 0-12.9-5.8-12.9-12.9s5.8-12.9 12.9-12.9 12.9 5.8 12.9 12.9v12.9h-12.9zM118.8 105.9c7.1 0 12.9 5.8 12.9 12.9s-5.8 12.9-12.9 12.9H86.5c-7.1 0-12.9-5.8-12.9-12.9s5.8-12.9 12.9-12.9h32.3zM170.6 118.8c0-7.1 5.8-12.9 12.9-12.9 7.1 0 12.9 5.8 12.9 12.9s-5.8 12.9-12.9 12.9h-12.9v-12.9zM164.1 118.8c0 7.1-5.8 12.9-12.9 12.9-7.1 0-12.9-5.8-12.9-12.9V86.5c0-7.1 5.8-12.9 12.9-12.9 7.1 0 12.9 5.8 12.9 12.9v32.3zM151.2 170.6c7.1 0 12.9 5.8 12.9 12.9 0 7.1-5.8 12.9-12.9 12.9-7.1 0-12.9-5.8-12.9-12.9v-12.9h12.9zM151.2 164.1c-7.1 0-12.9-5.8-12.9-12.9 0-7.1 5.8-12.9 12.9-12.9h32.3c7.1 0 12.9 5.8 12.9 12.9 0 7.1-5.8 12.9-12.9 12.9h-32.3z"/></svg>
<svg xmlns="http://www.w3.org/2000/svg" viewBox="60 60 150 150"><path d="M99.4 151.2c0 7.1-5.8 12.9-12.9 12.9s-12.9-5.8-12.9-12.9c0-7.1 5.8-12.9 12.9-12.9h12.9v12.9zm6.5 0c0-7.1 5.8-12.9 12.9-12.9s12.9 5.8 12.9 12.9v32.3c0 7.1-5.8 12.9-12.9 12.9s-12.9-5.8-12.9-12.9v-32.3zm12.9-51.8c-7.1 0-12.9-5.8-12.9-12.9s5.8-12.9 12.9-12.9 12.9 5.8 12.9 12.9v12.9h-12.9zm0 6.5c7.1 0 12.9 5.8 12.9 12.9s-5.8 12.9-12.9 12.9H86.5c-7.1 0-12.9-5.8-12.9-12.9s5.8-12.9 12.9-12.9h32.3zm51.8 12.9c0-7.1 5.8-12.9 12.9-12.9 7.1 0 12.9 5.8 12.9 12.9s-5.8 12.9-12.9 12.9h-12.9v-12.9zm-6.5 0c0 7.1-5.8 12.9-12.9 12.9-7.1 0-12.9-5.8-12.9-12.9V86.5c0-7.1 5.8-12.9 12.9-12.9 7.1 0 12.9 5.8 12.9 12.9v32.3zm-12.9 51.8c7.1 0 12.9 5.8 12.9 12.9 0 7.1-5.8 12.9-12.9 12.9-7.1 0-12.9-5.8-12.9-12.9v-12.9h12.9zm0-6.5c-7.1 0-12.9-5.8-12.9-12.9 0-7.1 5.8-12.9 12.9-12.9h32.3c7.1 0 12.9 5.8 12.9 12.9 0 7.1-5.8 12.9-12.9 12.9h-32.3z"/></svg>

Before

Width:  |  Height:  |  Size: 929 B

After

Width:  |  Height:  |  Size: 902 B

View File

@ -102,6 +102,8 @@
.panel-line {
margin-left: 1.6rem;
margin-right: 1.6rem;
height: 1px;
border: 0;
background-color: $landingPanelTextColor;
}