|
| 1 | +{ |
| 2 | + "appId": "DM4KWCC17E", |
| 3 | + "apiKey": "8d998bfb5e12b330595f6e4c8a6368d8", |
| 4 | + "rateLimit": 8, |
| 5 | + "maxDepth": 10, |
| 6 | + "startUrls": ["https://circuitverse-docs.netlify.app/"], |
| 7 | + "sitemaps": ["https://circuitverse-docs.netlify.app/sitemap.xml"], |
| 8 | + "ignoreCanonicalTo": true, |
| 9 | + "discoveryPatterns": ["https://circuitverse-docs.netlify.app/**"], |
| 10 | + "actions": [ |
| 11 | + { |
| 12 | + "indexName": "circuitverse-netlify", |
| 13 | + "pathsToMatch": ["https://circuitverse-docs.netlify.app/**"], |
| 14 | + "recordExtractor": { |
| 15 | + "type": "function", |
| 16 | + "function": "({ $, helpers }) => { const lvl0 = $('.menu__link.menu__link--sublist.menu__link--active, .navbar__item.navbar__link--active').last().text() || 'Documentation'; return helpers.docsearch({ recordProps: { lvl0: { selectors: '', defaultValue: lvl0 }, lvl1: ['header h1', 'article h1'], lvl2: 'article h2', lvl3: 'article h3', lvl4: 'article h4', lvl5: 'article h5, article td:first-child', lvl6: 'article h6', content: 'article p, article li, article td:last-child' }, indexHeadings: true, aggregateContent: true, recordVersion: 'v3' }); }" |
| 17 | + } |
| 18 | + } |
| 19 | + ], |
| 20 | + "initialIndexSettings": { |
| 21 | + "circuitverse-docs": { |
| 22 | + "attributesForFaceting": ["type", "lang", "language", "version", "docusaurus_tag"], |
| 23 | + "attributesToRetrieve": ["hierarchy", "content", "anchor", "url", "url_without_anchor", "type"], |
| 24 | + "attributesToHighlight": ["hierarchy", "content"], |
| 25 | + "attributesToSnippet": ["content:10"], |
| 26 | + "camelCaseAttributes": ["hierarchy", "content"], |
| 27 | + "searchableAttributes": [ |
| 28 | + "unordered(hierarchy.lvl0)", |
| 29 | + "unordered(hierarchy.lvl1)", |
| 30 | + "unordered(hierarchy.lvl2)", |
| 31 | + "unordered(hierarchy.lvl3)", |
| 32 | + "unordered(hierarchy.lvl4)", |
| 33 | + "unordered(hierarchy.lvl5)", |
| 34 | + "unordered(hierarchy.lvl6)", |
| 35 | + "content" |
| 36 | + ], |
| 37 | + "distinct": true, |
| 38 | + "attributeForDistinct": "url", |
| 39 | + "customRanking": ["desc(weight.pageRank)", "desc(weight.level)", "asc(weight.position)"], |
| 40 | + "ranking": ["words", "filters", "typo", "attribute", "proximity", "exact", "custom"], |
| 41 | + "highlightPreTag": "<span class=\"algolia-docsearch-suggestion--highlight\">", |
| 42 | + "highlightPostTag": "</span>", |
| 43 | + "minWordSizefor1Typo": 3, |
| 44 | + "minWordSizefor2Typos": 7, |
| 45 | + "allowTyposOnNumericTokens": false, |
| 46 | + "minProximity": 1, |
| 47 | + "ignorePlurals": true, |
| 48 | + "advancedSyntax": true, |
| 49 | + "attributeCriteriaComputedByMinProximity": true, |
| 50 | + "removeWordsIfNoResults": "allOptional", |
| 51 | + "separatorsToIndex": "_" |
| 52 | + } |
| 53 | + } |
| 54 | +} |
0 commit comments