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

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


The following commit(s) were added to refs/heads/master by this push:
     new 13ef6ef8 Bump docsearch to v3 (#26)
13ef6ef8 is described below

commit 13ef6ef8f421e02c8f2537a197dfeb920fab8427
Author: Yingchun Lai <[email protected]>
AuthorDate: Thu Nov 2 23:20:39 2023 +0800

    Bump docsearch to v3 (#26)
    
    This is a partial revert patch of commit 
11bca29008a1bde036252feaddd4626053712cbb,
    revert to use cdn hosted docsearch css/js, and bump docsearch to v3.
---
 _includes/algolia.html       | 2 +-
 _includes/head.html          | 2 +-
 assets/css/docsearch.min.css | 2 --
 assets/js/app.js             | 1 -
 assets/js/docsearch.min.js   | 7 -------
 5 files changed, 2 insertions(+), 12 deletions(-)

diff --git a/_includes/algolia.html b/_includes/algolia.html
index e5874bc5..06051652 100644
--- a/_includes/algolia.html
+++ b/_includes/algolia.html
@@ -1,4 +1,4 @@
-<script src="/assets/js/docsearch.min.js"></script>
+<script src="https://cdn.jsdelivr.net/npm/@docsearch/js@3";></script>
 
 <script>
     docsearch({
diff --git a/_includes/head.html b/_includes/head.html
index 20e060ae..e5c6c870 100644
--- a/_includes/head.html
+++ b/_includes/head.html
@@ -5,7 +5,7 @@
     <link rel="stylesheet" href="{{ site.baseurl }}/assets/css/app.css">
     <link rel="shortcut icon" href="{{ site.baseurl 
}}/assets/images/favicon.ico">
     <link rel="stylesheet" href="/assets/css/utilities.min.css">
-    <link rel="stylesheet" href="/assets/css/docsearch.min.css" />
+    <link rel="stylesheet" 
href="https://cdn.jsdelivr.net/npm/@docsearch/css@3"; />
     <script src="/assets/js/jquery.min.js"></script>
     <script src="/assets/js/all.min.js"></script>
     {% seo %}
diff --git a/assets/css/docsearch.min.css b/assets/css/docsearch.min.css
deleted file mode 100644
index 6fa98e31..00000000
--- a/assets/css/docsearch.min.css
+++ /dev/null
@@ -1,2 +0,0 @@
-@charset "UTF-8";
-/*! docsearch 2.0.0 | © Algolia | github.com/algolia/docsearch 
*/.ds-dropdown-menu{background-color:#fff;border:1px solid 
#333;border-radius:4px;font-size:16px;margin:6px 0 
0;padding:4px;text-align:left}.algolia-docsearch-suggestion{color:#333;cursor:pointer;overflow:hidden}.algolia-docsearch-suggestion__secondary{border-top:1px
 solid 
#3a3a3a}.algolia-docsearch-suggestion--category-header{display:none;background:#3c4658;color:#fff;font-weight:600;padding:5px
 10px;text-align:left}.algolia [...]
\ No newline at end of file
diff --git a/assets/js/app.js b/assets/js/app.js
index f2029008..9d562985 100644
--- a/assets/js/app.js
+++ b/assets/js/app.js
@@ -21,7 +21,6 @@ document.addEventListener('DOMContentLoaded', () => {
       });
     });
   }
-
 });
 
 $('.release-button').click(function () {
diff --git a/assets/js/docsearch.min.js b/assets/js/docsearch.min.js
deleted file mode 100644
index 3e79d608..00000000
--- a/assets/js/docsearch.min.js
+++ /dev/null
@@ -1,7 +0,0 @@
-/*! docsearch 2.0.0 | © Algolia | github.com/algolia/docsearch */
-!function(t,e){"object"==typeof exports&&"object"==typeof 
module?module.exports=e():"function"==typeof 
define&&define.amd?define([],e):"object"==typeof 
exports?exports.docsearch=e():t.docsearch=e()}(this,function(){return 
function(t){function e(r){if(n[r])return n[r].exports;var 
i=n[r]={exports:{},id:r,loaded:!1};return 
t[r].call(i.exports,i,i.exports,e),i.loaded=!0,i.exports}var n={};return 
e.m=t,e.c=n,e.p="",e(0)}([function(t,e,n){"use 
strict";t.exports=n(1)},function(t,e,n){"use stric [...]
-var o=t.length;if(o===+o)for(var s=0;o>s;s++)e.call(i,t[s],s,t);else for(var a 
in t)n.call(t,a)&&e.call(i,t[a],a,t)}},function(t,e,n){var 
r=n(14);t.exports=function i(t){var 
e=Array.prototype.slice.call(arguments);return r(e,function(e){for(var n in 
e)e.hasOwnProperty(n)&&("object"==typeof t[n]&&"object"==typeof 
e[n]?t[n]=i({},t[n],e[n]):void 
0!==e[n]&&(t[n]=e[n]))}),t}},function(t,e){t.exports=function(t,e){function 
n(){return r||(console.log(e),r=!0),t.apply(this,arguments)}var r=!1;re [...]
-tr:N.createElement("tbody"),tbody:V,thead:V,tfoot:V,td:K,th:K,"*":N.createElement("div")},z=/complete|loaded|interactive/,J=/^[\w-]*$/,Q={},Z=Q.toString,G={},X=N.createElement("div"),W={tabindex:"tabIndex",readonly:"readOnly","for":"htmlFor","class":"className",maxlength:"maxLength",cellspacing:"cellSpacing",cellpadding:"cellPadding",rowspan:"rowSpan",colspan:"colSpan",usemap:"useMap",frameborder:"frameBorder",contenteditable:"contentEditable"},Y=Array.isArray||function(t){return
 t insta [...]
-return new 
i(s.call(setTimeout,window,arguments),clearTimeout)},e.setInterval=function(){return
 new 
i(s.call(setInterval,window,arguments),clearInterval)},e.clearTimeout=e.clearInterval=function(t){t.close()},i.prototype.unref=i.prototype.ref=function(){},i.prototype.close=function(){this._clearFn.call(window,this._id)},e.enroll=function(t,e){clearTimeout(t._idleTimeoutId),t._idleTimeout=e},e.unenroll=function(t){clearTimeout(t._idleTimeoutId),t._idleTimeout=-1},e._unrefActive=e.active=f
 [...]
-var 
d=e(n),m=y[d]||(y[d]=[]);i.split(/\s/).forEach(function(e){if("ready"==e)return 
t(document).ready(a);var i=r(e);i.fn=a,i.sel=l,i.e in w&&(a=function(e){var 
n=e.relatedTarget;return!n||n!==this&&!t.contains(this,n)?i.fn.apply(this,arguments):void
 0}),i.del=f;var 
d=f||a;i.proxy=function(t){if(t=c(t),!t.isImmediatePropagationStopped()){t.data=u;var
 e=d.apply(n,t._args==h?[t]:[t].concat(t._args));return 
e===!1&&(t.preventDefault(),t.stopPropagation()),e}},i.i=m.length,m.push(i),"addEvent
 [...]
-//# sourceMappingURL=dist/cdn/docsearch.min.js.map
\ No newline at end of file


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

Reply via email to