Skip to content

Commit b60ef71

Browse files
committed
Fix algolia search
1 parent 7f40d14 commit b60ef71

File tree

3 files changed

+49
-3
lines changed

3 files changed

+49
-3
lines changed

.env.example

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
11
EMAILJS_SERVER_ID=service_sedddrb
22
EMAILJS_TEMPLATE_ID=template_2w42djr
3-
EMAILJS_PUBLIC_KEY=6_tNcp-iBTQ09T2Ql
3+
EMAILJS_PUBLIC_KEY=6_tNcp-iBTQ09T2Ql
4+
APPLICATION_ID=QREGAGU3YC
5+
API_KEY=95b0c6179810e72eefdf5f0e8915ac85

config.json

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
{
2+
"index_name": "docsearch",
3+
"sitemap_urls": [
4+
"https://docs.appseed.us/sitemap.xml"
5+
],
6+
"sitemap_alternate_links": true,
7+
"selectors": {
8+
"lvl0": {
9+
"selector": "(//ul[contains(@class,'menu__list')]//a[contains(@class, 'menu__link menu__link--sublist menu__link--active')]/text() | //nav[contains(@class, 'navbar')]//a[contains(@class, 'navbar__link--active')]/text())[last()]",
10+
"type": "xpath",
11+
"global": true,
12+
"default_value": "Documentation"
13+
},
14+
"lvl1": "header h1",
15+
"lvl2": "article h2",
16+
"lvl3": "article h3",
17+
"lvl4": "article h4",
18+
"lvl5": "article h5, article td:first-child",
19+
"lvl6": "article h6",
20+
"text": "article p, article li, article td:last-child"
21+
},
22+
"strip_chars": " .,;:#",
23+
"custom_settings": {
24+
"separatorsToIndex": "_",
25+
"attributesForFaceting": [
26+
"language",
27+
"version",
28+
"type",
29+
"docusaurus_tag"
30+
],
31+
"attributesToRetrieve": [
32+
"hierarchy",
33+
"content",
34+
"anchor",
35+
"url",
36+
"url_without_anchor",
37+
"type"
38+
]
39+
},
40+
"conversation_id": [
41+
"833762294"
42+
],
43+
"nb_hits": 46250
44+
}

docusaurus.config.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -253,8 +253,8 @@ const config = {
253253
darkTheme: darkCodeTheme,
254254
},
255255
algolia: {
256-
appId: "QREGAGU3YC",
257-
apiKey: "95b0c6179810e72eefdf5f0e8915ac85",
256+
appId: process.env.APPLICATION_ID,
257+
apiKey: process.env.API_KEY,
258258
indexName: "docsearch",
259259
contextualSearch: true,
260260
searchParameters: {},

0 commit comments

Comments
 (0)