From 8d8a108a759248d7ba49374a81dfb5549429929f Mon Sep 17 00:00:00 2001 From: jffarge Date: Tue, 10 Aug 2021 16:40:28 +0200 Subject: [PATCH] docs: :alien: change algolia apikey + add conf file Signed-off-by: jffarge --- website/docsearch.config.json | 39 +++++++++++++++++++++++++++++++++++ website/docusaurus.config.js | 4 ++-- 2 files changed, 41 insertions(+), 2 deletions(-) create mode 100644 website/docsearch.config.json diff --git a/website/docsearch.config.json b/website/docsearch.config.json new file mode 100644 index 00000000..3b083b8a --- /dev/null +++ b/website/docsearch.config.json @@ -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 +} diff --git a/website/docusaurus.config.js b/website/docusaurus.config.js index f055d3f8..40bdfd25 100644 --- a/website/docusaurus.config.js +++ b/website/docusaurus.config.js @@ -27,8 +27,8 @@ module.exports = { }, }, algolia: { - apiKey: "b2324f1ac8932ab80916382521473115", - indexName: "daggosaurus", + apiKey: "d2ccc43b51a4b3b1a66b4b4c70ae6069", + indexName: "Dagger_docs", }, hotjar: { siteId: "2541514",