Skip to content

Commit

Permalink
Fix the docsearch@v3 not work bug (apache#28)
Browse files Browse the repository at this point in the history
  • Loading branch information
acelyc111 authored Nov 6, 2023
1 parent 34fb255 commit 38fac3d
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 26 deletions.
24 changes: 10 additions & 14 deletions _includes/algolia.html
Original file line number Diff line number Diff line change
@@ -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>
<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>
2 changes: 1 addition & 1 deletion _includes/docs_header.html
Original file line number Diff line number Diff line change
Expand Up @@ -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">
Expand Down
11 changes: 0 additions & 11 deletions _includes/searchbox.html

This file was deleted.

0 comments on commit 38fac3d

Please sign in to comment.