Merge pull request #880 from slumbering/docsearch-crawler

change algolia apikey + add conf file
This commit is contained in:
Andrea Luzzardi 2021-08-17 14:18:03 +02:00 committed by GitHub
commit 3b5b83012a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 42 additions and 2 deletions

View File

@ -0,0 +1,39 @@
{
"index_name": "Dagger_docs",
"start_urls": ["https://docs.dagger.io/", "https://devel.docs.dagger.io/"],
"sitemap_urls": [
"https://docs.dagger.io/sitemap.xml",
"https://devel.docs.dagger.io/sitemap.xml"
],
"sitemap_alternate_links": true,
"stop_urls": [],
"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",
"text": "article p, article li, article td:last-child"
},
"strip_chars": " .,;:#",
"custom_settings": {
"separatorsToIndex": "_",
"attributesForFaceting": ["language", "version", "type", "docusaurus_tag"],
"attributesToRetrieve": [
"hierarchy",
"content",
"anchor",
"url",
"url_without_anchor",
"type"
]
},
"conversation_id": ["1531673588"],
"nb_hits": 128
}

View File

@ -27,8 +27,9 @@ module.exports = {
},
},
algolia: {
apiKey: "b2324f1ac8932ab80916382521473115",
indexName: "daggosaurus",
apiKey: "559dcddb4378b889baa48352394616ec",
indexName: "Dagger_docs",
appId: 'XSSC1LRN4S',
},
hotjar: {
siteId: "2541514",