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

wangdan 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 38fac3d2 Fix the docsearch@v3 not work bug (#28)
38fac3d2 is described below

commit 38fac3d2a3409d092753804a0d5361d9f7205964
Author: Yingchun Lai <[email protected]>
AuthorDate: Mon Nov 6 15:56:24 2023 +0800

    Fix the docsearch@v3 not work bug (#28)
---
 _includes/algolia.html     | 24 ++++++++++--------------
 _includes/docs_header.html |  2 +-
 _includes/searchbox.html   | 11 -----------
 3 files changed, 11 insertions(+), 26 deletions(-)

diff --git a/_includes/algolia.html b/_includes/algolia.html
index fd7dedf4..2705c1f5 100644
--- a/_includes/algolia.html
+++ b/_includes/algolia.html
@@ -1,14 +1,10 @@
-<script src="https://cdn.jsdelivr.net/npm/@docsearch/js@3";></script>
-
-<script>
-    docsearch({
-        appId: QRN30RBW0S,
-        apiKey: d3a3252fa344359766707a106c4ed88f,
-        indexName: pegasus-apache,
-        insights: true, // Optional, automatically send insights when user 
interacts with search results
-        container: '.searchbox-input',
-        debug: false, // Set debug to true if you want to inspect the modal
-        placeholder: 'Search the docs (Press "/" to focus)',
-        searchParameters: {}
-    });
-</script>
\ No newline at end of file
+ <script src="https://cdn.jsdelivr.net/npm/@docsearch/js@3";></script>
+ <script>
+     docsearch({
+         container: '#docsearch',
+         appId: 'QRN30RBW0S',
+         indexName: 'pegasus-apache',
+         apiKey: 'd3a3252fa344359766707a106c4ed88f',
+         debug: true
+     });
+ </script>
diff --git a/_includes/docs_header.html b/_includes/docs_header.html
index f2216161..f788a0ae 100644
--- a/_includes/docs_header.html
+++ b/_includes/docs_header.html
@@ -45,7 +45,7 @@
             <!--TODO(wutao): Given the limitation of docsearch that couldn't 
handle multiple input,
                 I make searchbox only shown in desktop. Fix this issue when 
docsearch.js v3 released.
                 Related issue: 
https://github.com/algolia/docsearch/issues/230-->
-            {% include searchbox.html %}
+            <div id="docsearch"></div>
         </div>
     </div>
     <div class="navbar-end">
diff --git a/_includes/searchbox.html b/_includes/searchbox.html
deleted file mode 100644
index 42d67c7c..00000000
--- a/_includes/searchbox.html
+++ /dev/null
@@ -1,11 +0,0 @@
-<div class="navbar-searchbox w-full bg-gray-200">
-    <div class="field">
-        <div class="control has-icons-right">
-            <input class="input searchbox-input focus:placeholder-transparent"
-                   type="text" placeholder="Search the docs">
-            <span class="icon is-right">
-                <i class="fas fa-search searchbox-icon"></i>
-            </span>
-        </div>
-    </div>
-</div>
\ No newline at end of file


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

Reply via email to