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

yao pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/kyuubi-website.git


The following commit(s) were added to refs/heads/master by this push:
     new 88c8574  Fix v1.8.1 docs (#147)
88c8574 is described below

commit 88c8574958de5470b46c492ed0016f09f15e633a
Author: Cheng Pan <[email protected]>
AuthorDate: Mon Feb 26 16:46:33 2024 +0800

    Fix v1.8.1 docs (#147)
    
    * Workaround for 1.7.1 build failure by urllib3 removing support 
[email protected] (#128)
    
    * Fix 1.8.1 docs
    
    ---------
    
    Co-authored-by: Kent Yao <[email protected]>
---
 layouts/index.html           | 10 +++++++++-
 layouts/partials/navbar.html | 10 +++++++++-
 2 files changed, 18 insertions(+), 2 deletions(-)

diff --git a/layouts/index.html b/layouts/index.html
index 836d346..64d5933 100644
--- a/layouts/index.html
+++ b/layouts/index.html
@@ -27,7 +27,15 @@
         </p>
         <div class="bannerBtnContainer">
           {{ range $release := first 1 .Site.Params.releases }}
-            <a class="bannerBtn" href="https://kyuubi.readthedocs.io/en/{{ 
$release }}/quick_start">{{ i18n "getting-started" }} »</a>
+          <!--
+            TODO: Remove this workaround when
+              - 1.8.2 comes out
+           -->
+          {{ $fixed_release := $release }}
+          {{ if eq $release "v1.8.1" }}
+          {{ $fixed_release = "v1.8.1-docs" }}
+          {{ end }}
+            <a class="bannerBtn" href="https://kyuubi.readthedocs.io/en/{{ 
$fixed_release }}/quick_start">{{ i18n "getting-started" }} »</a>
           {{ end }}
           <a class="bannerBtn" href="https://github.com/apache/kyuubi";>GitHub 
»</a>
         </div>
diff --git a/layouts/partials/navbar.html b/layouts/partials/navbar.html
index c938f51..62f16e4 100644
--- a/layouts/partials/navbar.html
+++ b/layouts/partials/navbar.html
@@ -35,7 +35,15 @@
         {{if or (eq .Identifier "docs") }}
         {{range $idx, $release := $currentPage.Site.Params.releases }}
         <li>
-          <a class="childNavLink" href="https://kyuubi.readthedocs.io/en/{{ 
$release }}/">
+          <!--
+            TODO: Remove this workaround when
+              - 1.8.2 comes out
+           -->
+          {{ $fixed_release := $release }}
+          {{ if eq $release "v1.8.1" }}
+          {{ $fixed_release = "v1.8.1-docs" }}
+          {{ end }}
+          <a class="childNavLink" href="https://kyuubi.readthedocs.io/en/{{ 
$fixed_release }}/">
             {{ trim $release "v"}}
             {{ if (eq $idx 0) }}
               (latest)

Reply via email to