This is an automated email from the ASF dual-hosted git repository.

francischuang pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/calcite-avatica.git


The following commit(s) were added to refs/heads/main by this push:
     new bef072588 [CALCITE-6843] Self-host Lato font on website due to ASF's 
content security policy
bef072588 is described below

commit bef072588b923008d356271d0bbead1f09c6ac5d
Author: Francis Chuang <[email protected]>
AuthorDate: Mon Feb 17 14:20:27 2025 +1100

    [CALCITE-6843] Self-host Lato font on website due to ASF's content security 
policy
---
 LICENSE                              |   4 ++
 site/_includes/top.html              |  18 +++++-
 site/_sass/_lato.scss                | 112 +++++++++++++++++++++++++++++++++++
 site/css/screen.scss                 |   1 +
 site/fonts/lato-300-ext.woff2        | Bin 0 -> 5624 bytes
 site/fonts/lato-300.woff2            | Bin 0 -> 23236 bytes
 site/fonts/lato-400-ext.woff2        | Bin 0 -> 5472 bytes
 site/fonts/lato-400.woff2            | Bin 0 -> 23580 bytes
 site/fonts/lato-700-ext.woff2        | Bin 0 -> 5368 bytes
 site/fonts/lato-700.woff2            | Bin 0 -> 23040 bytes
 site/fonts/lato-900-ext.woff2        | Bin 0 -> 5412 bytes
 site/fonts/lato-900.woff2            | Bin 0 -> 22504 bytes
 site/fonts/lato-italic-300-ext.woff2 | Bin 0 -> 4340 bytes
 site/fonts/lato-italic-300.woff2     | Bin 0 -> 17728 bytes
 site/fonts/lato-italic-400-ext.woff2 | Bin 0 -> 5600 bytes
 site/fonts/lato-italic-400.woff2     | Bin 0 -> 24408 bytes
 site/fonts/lato-italic-700-ext.woff2 | Bin 0 -> 5616 bytes
 site/fonts/lato-italic-700.woff2     | Bin 0 -> 24448 bytes
 18 files changed, 134 insertions(+), 1 deletion(-)

diff --git a/LICENSE b/LICENSE
index a87594d50..bdd603ed0 100644
--- a/LICENSE
+++ b/LICENSE
@@ -194,3 +194,7 @@ site/_sass/_mixins.scss
 site/_sass/_pygments.scss
 * normalize:normalize:3.0.2
 site/_sass/_normalize.scss
+
+SIL Open Font License
+* lato-fonts:lato
+site/_sass/_lato.scss
diff --git a/site/_includes/top.html b/site/_includes/top.html
index 2776ddde7..333608490 100644
--- a/site/_includes/top.html
+++ b/site/_includes/top.html
@@ -1,3 +1,20 @@
+<!--
+  ~ Licensed to the Apache Software Foundation (ASF) under one or more
+  ~ contributor license agreements.  See the NOTICE file distributed with
+  ~ this work for additional information regarding copyright ownership.
+  ~ The ASF licenses this file to you under the Apache License, Version 2.0
+  ~ (the "License"); you may not use this file except in compliance with
+  ~ the License.  You may obtain a copy of the License at
+  ~
+  ~ http://www.apache.org/licenses/LICENSE-2.0
+  ~
+  ~ Unless required by applicable law or agreed to in writing, software
+  ~ distributed under the License is distributed on an "AS IS" BASIS,
+  ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  ~ See the License for the specific language governing permissions and
+  ~ limitations under the License.
+  -->
+
 <!DOCTYPE HTML>
 <html lang="en-US">
 <head>
@@ -5,7 +22,6 @@
   <title>{{ page.title }}</title>
   <meta name="viewport" content="width=device-width,initial-scale=1">
   <meta name="generator" content="Jekyll v{{ jekyll.version }}">
-  <link rel="stylesheet" 
href="//fonts.googleapis.com/css?family=Lato:300,300italic,400,400italic,700,700italic,900">
   <link rel="stylesheet" href="{{ site.baseurl }}/css/screen.css">
   <link rel="icon" type="image/x-icon" href="{{ site.baseurl }}/favicon.ico">
 </head>
diff --git a/site/_sass/_lato.scss b/site/_sass/_lato.scss
new file mode 100644
index 000000000..0bd70d0ad
--- /dev/null
+++ b/site/_sass/_lato.scss
@@ -0,0 +1,112 @@
+/* latin-ext */
+@font-face {
+  font-family: 'Lato';
+  font-style: italic;
+  font-weight: 300;
+  src: url('../fonts/lato-italic-300-ext.woff2') format('woff2');
+  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, 
U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, 
U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
+}
+/* latin */
+@font-face {
+  font-family: 'Lato';
+  font-style: italic;
+  font-weight: 300;
+  src: url('../fonts/lato-italic-300.woff2') format('woff2');
+  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, 
U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, 
U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
+}
+/* latin-ext */
+@font-face {
+  font-family: 'Lato';
+  font-style: italic;
+  font-weight: 400;
+  src: url('../fonts/lato-italic-400-ext.woff2') format('woff2');
+  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, 
U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, 
U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
+}
+/* latin */
+@font-face {
+  font-family: 'Lato';
+  font-style: italic;
+  font-weight: 400;
+  src: url('../fonts/lato-italic-400.woff2') format('woff2');
+  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, 
U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, 
U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
+}
+/* latin-ext */
+@font-face {
+  font-family: 'Lato';
+  font-style: italic;
+  font-weight: 700;
+  src: url('../fonts/lato-italic-700-ext.woff2') format('woff2');
+  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, 
U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, 
U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
+}
+/* latin */
+@font-face {
+  font-family: 'Lato';
+  font-style: italic;
+  font-weight: 700;
+  src: url('../fonts/lato-italic-700.woff2') format('woff2');
+  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, 
U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, 
U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
+}
+/* latin-ext */
+@font-face {
+  font-family: 'Lato';
+  font-style: normal;
+  font-weight: 300;
+  src: url('../fonts/lato-300-ext.woff2') format('woff2');
+  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, 
U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, 
U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
+}
+/* latin */
+@font-face {
+  font-family: 'Lato';
+  font-style: normal;
+  font-weight: 300;
+  src: url('../fonts/lato-300.woff2') format('woff2');
+  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, 
U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, 
U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
+}
+/* latin-ext */
+@font-face {
+  font-family: 'Lato';
+  font-style: normal;
+  font-weight: 400;
+  src: url('../fonts/lato-400-ext.woff2') format('woff2');
+  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, 
U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, 
U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
+}
+/* latin */
+@font-face {
+  font-family: 'Lato';
+  font-style: normal;
+  font-weight: 400;
+  src: url('../fonts/lato-400.woff2') format('woff2');
+  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, 
U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, 
U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
+}
+/* latin-ext */
+@font-face {
+  font-family: 'Lato';
+  font-style: normal;
+  font-weight: 700;
+  src: url('../fonts/lato-700-ext.woff2') format('woff2');
+  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, 
U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, 
U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
+}
+/* latin */
+@font-face {
+  font-family: 'Lato';
+  font-style: normal;
+  font-weight: 700;
+  src: url('../fonts/lato-700.woff2') format('woff2');
+  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, 
U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, 
U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
+}
+/* latin-ext */
+@font-face {
+  font-family: 'Lato';
+  font-style: normal;
+  font-weight: 900;
+  src: url('../fonts/lato-900-ext.woff2') format('woff2');
+  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, 
U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, 
U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
+}
+/* latin */
+@font-face {
+  font-family: 'Lato';
+  font-style: normal;
+  font-weight: 900;
+  src: url('../fonts/lato-900.woff2') format('woff2');
+  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, 
U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, 
U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
+}
diff --git a/site/css/screen.scss b/site/css/screen.scss
index f38e73daa..4f93b46d2 100644
--- a/site/css/screen.scss
+++ b/site/css/screen.scss
@@ -6,4 +6,5 @@
 @use "gridism";
 @use "pygments";
 @use "font-awesome";
+@use "lato";
 @use "style";
diff --git a/site/fonts/lato-300-ext.woff2 b/site/fonts/lato-300-ext.woff2
new file mode 100644
index 000000000..486d3ecf0
Binary files /dev/null and b/site/fonts/lato-300-ext.woff2 differ
diff --git a/site/fonts/lato-300.woff2 b/site/fonts/lato-300.woff2
new file mode 100644
index 000000000..aad98a339
Binary files /dev/null and b/site/fonts/lato-300.woff2 differ
diff --git a/site/fonts/lato-400-ext.woff2 b/site/fonts/lato-400-ext.woff2
new file mode 100644
index 000000000..edb9fa6f4
Binary files /dev/null and b/site/fonts/lato-400-ext.woff2 differ
diff --git a/site/fonts/lato-400.woff2 b/site/fonts/lato-400.woff2
new file mode 100644
index 000000000..ff60934dd
Binary files /dev/null and b/site/fonts/lato-400.woff2 differ
diff --git a/site/fonts/lato-700-ext.woff2 b/site/fonts/lato-700-ext.woff2
new file mode 100644
index 000000000..2c8aaa866
Binary files /dev/null and b/site/fonts/lato-700-ext.woff2 differ
diff --git a/site/fonts/lato-700.woff2 b/site/fonts/lato-700.woff2
new file mode 100644
index 000000000..11de83fea
Binary files /dev/null and b/site/fonts/lato-700.woff2 differ
diff --git a/site/fonts/lato-900-ext.woff2 b/site/fonts/lato-900-ext.woff2
new file mode 100644
index 000000000..6833c7f3d
Binary files /dev/null and b/site/fonts/lato-900-ext.woff2 differ
diff --git a/site/fonts/lato-900.woff2 b/site/fonts/lato-900.woff2
new file mode 100644
index 000000000..72a9bc304
Binary files /dev/null and b/site/fonts/lato-900.woff2 differ
diff --git a/site/fonts/lato-italic-300-ext.woff2 
b/site/fonts/lato-italic-300-ext.woff2
new file mode 100644
index 000000000..f17999bd2
Binary files /dev/null and b/site/fonts/lato-italic-300-ext.woff2 differ
diff --git a/site/fonts/lato-italic-300.woff2 b/site/fonts/lato-italic-300.woff2
new file mode 100644
index 000000000..394b5cf64
Binary files /dev/null and b/site/fonts/lato-italic-300.woff2 differ
diff --git a/site/fonts/lato-italic-400-ext.woff2 
b/site/fonts/lato-italic-400-ext.woff2
new file mode 100644
index 000000000..15be816ab
Binary files /dev/null and b/site/fonts/lato-italic-400-ext.woff2 differ
diff --git a/site/fonts/lato-italic-400.woff2 b/site/fonts/lato-italic-400.woff2
new file mode 100644
index 000000000..851630ff8
Binary files /dev/null and b/site/fonts/lato-italic-400.woff2 differ
diff --git a/site/fonts/lato-italic-700-ext.woff2 
b/site/fonts/lato-italic-700-ext.woff2
new file mode 100644
index 000000000..f59e721c3
Binary files /dev/null and b/site/fonts/lato-italic-700-ext.woff2 differ
diff --git a/site/fonts/lato-italic-700.woff2 b/site/fonts/lato-italic-700.woff2
new file mode 100644
index 000000000..38df58bff
Binary files /dev/null and b/site/fonts/lato-italic-700.woff2 differ

Reply via email to