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 19, 2023
1 parent a5ce337 commit 5dc327e
Showing 1 changed file with 23 additions and 13 deletions.
36 changes: 23 additions & 13 deletions algolia-config.json
Original file line number Diff line number Diff line change
@@ -1,24 +1,28 @@
{
"index_name": "mina",
"start_urls": ["https://docs.minaprotocol.com"],
"start_urls": [
{
"url": "https://docs.minaprotocol.com"
}
],
"sitemap_urls": ["https://docs.minaprotocol.com/sitemap.xml"],
"sitemap_alternate_links": true,
"js_render": true,
"stop_urls": ["/tests"],
"js_wait": 1,
"stop_urls": ["https://docs.minaprotocol.com/node-developers"],
"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"
"selector": "",
"defaultValue": "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"
"lvl1": "header h1, article h1, main h1, h1, head > title",
"lvl2": "article h2, main h2, h2",
"lvl3": "article h3, main h3, h3",
"lvl4": "article h4, main h4, h4",
"lvl5": "article h5, main h5, h5",
"lvl6": "article h6, main h6, h6",
"text": "article p, article li, main p, main li, p, li"
},
"strip_chars": " .,;:#",
"custom_settings": {
Expand All @@ -31,6 +35,12 @@
"url",
"url_without_anchor",
"type"
],
"synonyms": [
["js", "javascript"],
["ts", "typescript"],
["es6", "ECMAScript6", "ECMAScript2015"],
["zk", "zero-knowledge", "zero knoweldge"]
]
},
"conversation_id": ["833762294"],
Expand Down

1 comment on commit 5dc327e

@vercel
Copy link

@vercel vercel bot commented on 5dc327e Jul 19, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

docs2 – ./

docs2-minadocs.vercel.app
docs2-git-main-minadocs.vercel.app
docs.minaprotocol.com

Please sign in to comment.