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

gurwls223 pushed a commit to branch asf-site
in repository https://gitbox.apache.org/repos/asf/spark-website.git


The following commit(s) were added to refs/heads/asf-site by this push:
     new 5e327c73fd Fix UI issue for `published` docs about Switch languages 
consistently across docs for all code snippets
5e327c73fd is described below

commit 5e327c73fd1047467432387410f366f2b11aaa7a
Author: panbingkun <[email protected]>
AuthorDate: Fri Sep 29 22:02:31 2023 +0900

    Fix UI issue for `published` docs about Switch languages consistently 
across docs for all code snippets
    
    The pr aims to fix UI issue for `published docs` about Switch languages 
consistently across docs for all code snippets
    
    https://github.com/apache/spark-website/pull/474#issuecomment-1731741985
    <img width="912" alt="image" 
src="https://github.com/apache/spark-website/assets/15246973/50b86a6f-4bde-4444-93bf-cb85b66e962c";>
    
    As discussed, we aim to fix the aforementioned issues by directly repairing 
files that have already been released in history.
    
    include versions:
    3.1.1, 3.1.2, 3.1.3, 3.2.0, 3.2.1, 3.2.2, 3.2.3, 3.2.4, 3.3.0, 3.3.1, 
3.3.2, 3.3.3, 3.4.0, 3.4.1
    
    Manually test:
    ```
    bundle exec jekyll serve --watch
    ```
    
    Author: panbingkun <[email protected]>
    
    Closes #480 from panbingkun/fix_history_switch.
---
 site/docs/3.1.1/js/main.js | 2 +-
 site/docs/3.1.2/js/main.js | 2 +-
 site/docs/3.1.3/js/main.js | 2 +-
 site/docs/3.2.0/js/main.js | 2 +-
 site/docs/3.2.1/js/main.js | 2 +-
 site/docs/3.2.2/js/main.js | 2 +-
 site/docs/3.2.3/js/main.js | 2 +-
 site/docs/3.2.4/js/main.js | 2 +-
 site/docs/3.3.0/js/main.js | 2 +-
 site/docs/3.3.1/js/main.js | 2 +-
 site/docs/3.3.2/js/main.js | 2 +-
 site/docs/3.3.3/js/main.js | 2 +-
 site/docs/3.4.0/js/main.js | 2 +-
 site/docs/3.4.1/js/main.js | 2 +-
 14 files changed, 14 insertions(+), 14 deletions(-)

diff --git a/site/docs/3.1.1/js/main.js b/site/docs/3.1.1/js/main.js
index 968097c804..07df2541f7 100755
--- a/site/docs/3.1.1/js/main.js
+++ b/site/docs/3.1.1/js/main.js
@@ -63,7 +63,7 @@ function codeTabs() {
     // while retaining the scroll position
     e.preventDefault();
     var scrollOffset = $(this).offset().top - $(document).scrollTop();
-    $("." + $(this).attr('class')).tab('show');
+    $("." + $(this).attr('class').split(" ").join(".")).tab('show');
     $(document).scrollTop($(this).offset().top - scrollOffset);
   });
 }
diff --git a/site/docs/3.1.2/js/main.js b/site/docs/3.1.2/js/main.js
index 968097c804..07df2541f7 100755
--- a/site/docs/3.1.2/js/main.js
+++ b/site/docs/3.1.2/js/main.js
@@ -63,7 +63,7 @@ function codeTabs() {
     // while retaining the scroll position
     e.preventDefault();
     var scrollOffset = $(this).offset().top - $(document).scrollTop();
-    $("." + $(this).attr('class')).tab('show');
+    $("." + $(this).attr('class').split(" ").join(".")).tab('show');
     $(document).scrollTop($(this).offset().top - scrollOffset);
   });
 }
diff --git a/site/docs/3.1.3/js/main.js b/site/docs/3.1.3/js/main.js
index 968097c804..07df2541f7 100755
--- a/site/docs/3.1.3/js/main.js
+++ b/site/docs/3.1.3/js/main.js
@@ -63,7 +63,7 @@ function codeTabs() {
     // while retaining the scroll position
     e.preventDefault();
     var scrollOffset = $(this).offset().top - $(document).scrollTop();
-    $("." + $(this).attr('class')).tab('show');
+    $("." + $(this).attr('class').split(" ").join(".")).tab('show');
     $(document).scrollTop($(this).offset().top - scrollOffset);
   });
 }
diff --git a/site/docs/3.2.0/js/main.js b/site/docs/3.2.0/js/main.js
index 968097c804..07df2541f7 100755
--- a/site/docs/3.2.0/js/main.js
+++ b/site/docs/3.2.0/js/main.js
@@ -63,7 +63,7 @@ function codeTabs() {
     // while retaining the scroll position
     e.preventDefault();
     var scrollOffset = $(this).offset().top - $(document).scrollTop();
-    $("." + $(this).attr('class')).tab('show');
+    $("." + $(this).attr('class').split(" ").join(".")).tab('show');
     $(document).scrollTop($(this).offset().top - scrollOffset);
   });
 }
diff --git a/site/docs/3.2.1/js/main.js b/site/docs/3.2.1/js/main.js
index 968097c804..07df2541f7 100755
--- a/site/docs/3.2.1/js/main.js
+++ b/site/docs/3.2.1/js/main.js
@@ -63,7 +63,7 @@ function codeTabs() {
     // while retaining the scroll position
     e.preventDefault();
     var scrollOffset = $(this).offset().top - $(document).scrollTop();
-    $("." + $(this).attr('class')).tab('show');
+    $("." + $(this).attr('class').split(" ").join(".")).tab('show');
     $(document).scrollTop($(this).offset().top - scrollOffset);
   });
 }
diff --git a/site/docs/3.2.2/js/main.js b/site/docs/3.2.2/js/main.js
index 968097c804..07df2541f7 100755
--- a/site/docs/3.2.2/js/main.js
+++ b/site/docs/3.2.2/js/main.js
@@ -63,7 +63,7 @@ function codeTabs() {
     // while retaining the scroll position
     e.preventDefault();
     var scrollOffset = $(this).offset().top - $(document).scrollTop();
-    $("." + $(this).attr('class')).tab('show');
+    $("." + $(this).attr('class').split(" ").join(".")).tab('show');
     $(document).scrollTop($(this).offset().top - scrollOffset);
   });
 }
diff --git a/site/docs/3.2.3/js/main.js b/site/docs/3.2.3/js/main.js
index 968097c804..07df2541f7 100644
--- a/site/docs/3.2.3/js/main.js
+++ b/site/docs/3.2.3/js/main.js
@@ -63,7 +63,7 @@ function codeTabs() {
     // while retaining the scroll position
     e.preventDefault();
     var scrollOffset = $(this).offset().top - $(document).scrollTop();
-    $("." + $(this).attr('class')).tab('show');
+    $("." + $(this).attr('class').split(" ").join(".")).tab('show');
     $(document).scrollTop($(this).offset().top - scrollOffset);
   });
 }
diff --git a/site/docs/3.2.4/js/main.js b/site/docs/3.2.4/js/main.js
index 968097c804..07df2541f7 100755
--- a/site/docs/3.2.4/js/main.js
+++ b/site/docs/3.2.4/js/main.js
@@ -63,7 +63,7 @@ function codeTabs() {
     // while retaining the scroll position
     e.preventDefault();
     var scrollOffset = $(this).offset().top - $(document).scrollTop();
-    $("." + $(this).attr('class')).tab('show');
+    $("." + $(this).attr('class').split(" ").join(".")).tab('show');
     $(document).scrollTop($(this).offset().top - scrollOffset);
   });
 }
diff --git a/site/docs/3.3.0/js/main.js b/site/docs/3.3.0/js/main.js
index 968097c804..07df2541f7 100755
--- a/site/docs/3.3.0/js/main.js
+++ b/site/docs/3.3.0/js/main.js
@@ -63,7 +63,7 @@ function codeTabs() {
     // while retaining the scroll position
     e.preventDefault();
     var scrollOffset = $(this).offset().top - $(document).scrollTop();
-    $("." + $(this).attr('class')).tab('show');
+    $("." + $(this).attr('class').split(" ").join(".")).tab('show');
     $(document).scrollTop($(this).offset().top - scrollOffset);
   });
 }
diff --git a/site/docs/3.3.1/js/main.js b/site/docs/3.3.1/js/main.js
index 968097c804..07df2541f7 100755
--- a/site/docs/3.3.1/js/main.js
+++ b/site/docs/3.3.1/js/main.js
@@ -63,7 +63,7 @@ function codeTabs() {
     // while retaining the scroll position
     e.preventDefault();
     var scrollOffset = $(this).offset().top - $(document).scrollTop();
-    $("." + $(this).attr('class')).tab('show');
+    $("." + $(this).attr('class').split(" ").join(".")).tab('show');
     $(document).scrollTop($(this).offset().top - scrollOffset);
   });
 }
diff --git a/site/docs/3.3.2/js/main.js b/site/docs/3.3.2/js/main.js
index 968097c804..07df2541f7 100755
--- a/site/docs/3.3.2/js/main.js
+++ b/site/docs/3.3.2/js/main.js
@@ -63,7 +63,7 @@ function codeTabs() {
     // while retaining the scroll position
     e.preventDefault();
     var scrollOffset = $(this).offset().top - $(document).scrollTop();
-    $("." + $(this).attr('class')).tab('show');
+    $("." + $(this).attr('class').split(" ").join(".")).tab('show');
     $(document).scrollTop($(this).offset().top - scrollOffset);
   });
 }
diff --git a/site/docs/3.3.3/js/main.js b/site/docs/3.3.3/js/main.js
index 968097c804..07df2541f7 100755
--- a/site/docs/3.3.3/js/main.js
+++ b/site/docs/3.3.3/js/main.js
@@ -63,7 +63,7 @@ function codeTabs() {
     // while retaining the scroll position
     e.preventDefault();
     var scrollOffset = $(this).offset().top - $(document).scrollTop();
-    $("." + $(this).attr('class')).tab('show');
+    $("." + $(this).attr('class').split(" ").join(".")).tab('show');
     $(document).scrollTop($(this).offset().top - scrollOffset);
   });
 }
diff --git a/site/docs/3.4.0/js/main.js b/site/docs/3.4.0/js/main.js
index 968097c804..07df2541f7 100755
--- a/site/docs/3.4.0/js/main.js
+++ b/site/docs/3.4.0/js/main.js
@@ -63,7 +63,7 @@ function codeTabs() {
     // while retaining the scroll position
     e.preventDefault();
     var scrollOffset = $(this).offset().top - $(document).scrollTop();
-    $("." + $(this).attr('class')).tab('show');
+    $("." + $(this).attr('class').split(" ").join(".")).tab('show');
     $(document).scrollTop($(this).offset().top - scrollOffset);
   });
 }
diff --git a/site/docs/3.4.1/js/main.js b/site/docs/3.4.1/js/main.js
index 968097c804..07df2541f7 100755
--- a/site/docs/3.4.1/js/main.js
+++ b/site/docs/3.4.1/js/main.js
@@ -63,7 +63,7 @@ function codeTabs() {
     // while retaining the scroll position
     e.preventDefault();
     var scrollOffset = $(this).offset().top - $(document).scrollTop();
-    $("." + $(this).attr('class')).tab('show');
+    $("." + $(this).attr('class').split(" ").join(".")).tab('show');
     $(document).scrollTop($(this).offset().top - scrollOffset);
   });
 }


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to