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 34fb255b Update docsearch keys (#27)
34fb255b is described below
commit 34fb255b5303b90923b813b0b5b872aec89ba447
Author: Yingchun Lai <[email protected]>
AuthorDate: Mon Nov 6 14:10:38 2023 +0800
Update docsearch keys (#27)
---
.apache_pegasus.json | 18 ------------------
_config.yml | 5 -----
_includes/algolia.html | 12 ++++++++----
_includes/searchbox.html | 2 +-
4 files changed, 9 insertions(+), 28 deletions(-)
diff --git a/.apache_pegasus.json b/.apache_pegasus.json
deleted file mode 100644
index 780adb35..00000000
--- a/.apache_pegasus.json
+++ /dev/null
@@ -1,18 +0,0 @@
-{
- "index_name": "apache_pegasus",
- "start_urls": [
- "https://pegasus.apache.org/"
- ],
- "selectors": {
- "lvl0": {
- "selector": ".title",
- "global": true
- },
- "lvl1": ".content h1",
- "lvl2": ".content h2",
- "lvl3": ".content h3",
- "lvl4": ".content h4",
- "lvl5": ".content h5",
- "text": ".content p, .content li, .content p"
- }
-}
diff --git a/_config.yml b/_config.yml
index fe40f457..aef5b875 100755
--- a/_config.yml
+++ b/_config.yml
@@ -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`.
diff --git a/_includes/algolia.html b/_includes/algolia.html
index 06051652..fd7dedf4 100644
--- a/_includes/algolia.html
+++ b/_includes/algolia.html
@@ -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>
\ No newline at end of file
diff --git a/_includes/searchbox.html b/_includes/searchbox.html
index 97f16d67..42d67c7c 100644
--- a/_includes/searchbox.html
+++ b/_includes/searchbox.html
@@ -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>
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]