Skip to content

Commit

Permalink
feat(algolia-config.json): update config for better search results
Browse files Browse the repository at this point in the history
  • Loading branch information
MartinMinkov committed Jul 18, 2023
1 parent 7dbe2c0 commit 7a74fbd
Showing 1 changed file with 28 additions and 15 deletions.
43 changes: 28 additions & 15 deletions algolia-config.json
Original file line number Diff line number Diff line change
@@ -1,24 +1,32 @@
{
"index_name": "mina",
"start_urls": ["https://docs.minaprotocol.com"],
"start_urls": [
{ "url": "https://docs.minaprotocol.com" },
{
"url": "https://docs.minaprotocol.com/zkapps/snarkyjs",
"page_rank": 10
},
{
"url": "https://docs.minaprotocol.com/zkapps",
"page_rank": 9
}
],
"sitemap_urls": ["https://docs.minaprotocol.com/sitemap.xml"],
"sitemap_alternate_links": true,
"js_render": true,
"stop_urls": ["/tests"],
"stop_urls": [
"https://docs.minaprotocol.com/node-developers",
"https://docs.minaprotocol.com/zkapps/snarkyjs-reference"
],
"selectors_exclude": ["footer"],
"selectors": {
"lvl0": {
"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()]",
"type": "xpath",
"global": true,
"default_value": "Documentation"
},
"lvl1": "header h1",
"lvl2": "article h2",
"lvl3": "article h3",
"lvl4": "article h4",
"lvl5": "article h5, article td:first-child",
"lvl6": "article h6",
"text": "article p, article li, article td:last-child"
"lvl0": "header h1",
"lvl1": "article h2",
"lvl2": "article h3",
"lvl3": "article h4",
"lvl4": "article h5",
"lvl5": "article h6",
"text": "article p, article li"
},
"strip_chars": " .,;:#",
"custom_settings": {
Expand All @@ -31,6 +39,11 @@
"url",
"url_without_anchor",
"type"
],
"synonyms": [
["js", "javascript"],
["ts", "typescript"],
["es6", "ECMAScript6", "ECMAScript2015"]
]
},
"conversation_id": ["833762294"],
Expand Down

0 comments on commit 7a74fbd

Please sign in to comment.