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

rskraba pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/avro.git


The following commit(s) were added to refs/heads/master by this push:
     new f6740929b AVRO-3555: Avoid inlining the Avro logo (#1743)
f6740929b is described below

commit f6740929b08cb3e4e04b7b303da9152dfa11b93e
Author: Ryan Skraba <[email protected]>
AuthorDate: Fri Jul 1 08:06:10 2022 +0200

    AVRO-3555: Avoid inlining the Avro logo (#1743)
---
 doc/assets/icons/logo.svg                |  2 +-
 doc/content/en/docs/++version++/logo.svg | 22 ++++++++++++++++++++++
 doc/layouts/partials/navbar.html         |  3 +++
 3 files changed, 26 insertions(+), 1 deletion(-)

diff --git a/doc/assets/icons/logo.svg b/doc/assets/icons/logo.svg
index 50efa70b3..b44ed1972 100644
--- a/doc/assets/icons/logo.svg
+++ b/doc/assets/icons/logo.svg
@@ -19,4 +19,4 @@
 # under the License.
 #
 -->
-<svg id="svg" width="100px" version="1.1" xmlns="http://www.w3.org/2000/svg"; 
xmlns:xlink="http://www.w3.org/1999/xlink"; width="400" 
height="124.32432432432432" viewBox="0, 0, 400,124.32432432432432"><g 
id="svgg"><path id="path0" d="M0.000 2.833 C 0.000 4.494,0.002 4.500,0.411 
4.500 C 0.970 4.500,1.412 5.451,1.737 7.355 C 1.794 7.687,2.038 8.172,2.279 
8.432 C 2.520 8.692,2.859 9.225,3.032 9.617 C 3.205 10.008,3.500 10.411,3.688 
10.511 C 3.875 10.611,4.128 10.932,4.250 11.224 C 4.372 11.51 [...]
+<svg id="svg" version="1.1" xmlns="http://www.w3.org/2000/svg"; 
xmlns:xlink="http://www.w3.org/1999/xlink"; width="400" 
height="124.32432432432432" viewBox="0, 0, 400,124.32432432432432"><g 
id="svgg"><path id="path0" d="M0.000 2.833 C 0.000 4.494,0.002 4.500,0.411 
4.500 C 0.970 4.500,1.412 5.451,1.737 7.355 C 1.794 7.687,2.038 8.172,2.279 
8.432 C 2.520 8.692,2.859 9.225,3.032 9.617 C 3.205 10.008,3.500 10.411,3.688 
10.511 C 3.875 10.611,4.128 10.932,4.250 11.224 C 4.372 11.515,4.710 12.004 
[...]
diff --git a/doc/content/en/docs/++version++/logo.svg 
b/doc/content/en/docs/++version++/logo.svg
new file mode 100644
index 000000000..b44ed1972
--- /dev/null
+++ b/doc/content/en/docs/++version++/logo.svg
@@ -0,0 +1,22 @@
+<?xml version="1.0" standalone="yes"?>
+<!--
+#
+# 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
+#
+#   https://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.
+#
+-->
+<svg id="svg" version="1.1" xmlns="http://www.w3.org/2000/svg"; 
xmlns:xlink="http://www.w3.org/1999/xlink"; width="400" 
height="124.32432432432432" viewBox="0, 0, 400,124.32432432432432"><g 
id="svgg"><path id="path0" d="M0.000 2.833 C 0.000 4.494,0.002 4.500,0.411 
4.500 C 0.970 4.500,1.412 5.451,1.737 7.355 C 1.794 7.687,2.038 8.172,2.279 
8.432 C 2.520 8.692,2.859 9.225,3.032 9.617 C 3.205 10.008,3.500 10.411,3.688 
10.511 C 3.875 10.611,4.128 10.932,4.250 11.224 C 4.372 11.515,4.710 12.004 
[...]
diff --git a/doc/layouts/partials/navbar.html b/doc/layouts/partials/navbar.html
index 40dbc4cf0..fc7fb4f63 100644
--- a/doc/layouts/partials/navbar.html
+++ b/doc/layouts/partials/navbar.html
@@ -22,7 +22,10 @@
 {{ $cover := and (.HasShortcode "blocks/cover") (not 
.Site.Params.ui.navbar_translucent_over_cover_disable) }}
 <nav class="js-navbar-scroll navbar navbar-expand navbar-dark {{ if $cover}} 
td-navbar-cover {{ end }}flex-column flex-md-row td-navbar">
         <a class="navbar-brand" href="{{ .Site.Home.RelPermalink }}">
+{{/* AVRO-3555: Don't inline the existing logo for now.
                <span class="navbar-logo">{{ if .Site.Params.ui.navbar_logo 
}}{{ with resources.Get "icons/logo.svg" }}{{ ( . | minify).Content | safeHTML 
}}{{ end }}{{ end }}</span><span class="text-uppercase font-weight-bold">{{ 
.Site.Title }}</span>
+*/}}
+               <span class="navbar-logo"><img src="/docs/++version++/logo.svg" 
width="100" height="30" style="margin: 0 10px"></span><span 
class="text-uppercase font-weight-bold">{{ .Site.Title }}</span>
        </a>
        <div class="td-navbar-nav-scroll ml-md-auto" id="main_navbar">
                <ul class="navbar-nav mt-2 mt-lg-0">

Reply via email to