Skip to content

Commit

Permalink
Update docsearch keys (apache#27)
Browse files Browse the repository at this point in the history
  • Loading branch information
acelyc111 committed Nov 6, 2023
1 parent 13ef6ef commit 34fb255
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 28 deletions.
18 changes: 0 additions & 18 deletions .apache_pegasus.json

This file was deleted.

5 changes: 0 additions & 5 deletions _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -77,11 +77,6 @@ defaults:
menubar: overview_menu
show_sidebar: false

algolia:
index_name: apache_pegasus
search_only_api_key: 676624c2d6dc00808d3b7cf6724fc3c8
powered_by: true

# multi-languages support
languages: ["zh", "en"]
# All sites missing their languages' counterparts will fallback to your `default_lang`.
Expand Down
12 changes: 8 additions & 4 deletions _includes/algolia.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,13 @@

<script>
docsearch({
indexName: '{{ site.algolia.index_name }}',
apiKey: '{{ site.algolia.search_only_api_key }}',
inputSelector: '.searchbox-input',
debug: true,
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>
2 changes: 1 addition & 1 deletion _includes/searchbox.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<div class="field">
<div class="control has-icons-right">
<input class="input searchbox-input focus:placeholder-transparent"
type="text" placeholder="Search the docs">
type="text" placeholder="Search the docs">
<span class="icon is-right">
<i class="fas fa-search searchbox-icon"></i>
</span>
Expand Down

0 comments on commit 34fb255

Please sign in to comment.