From 4358ccd6c7e5684605a3c75abf31ae48039aa644 Mon Sep 17 00:00:00 2001 From: Sanket Date: Mon, 23 Sep 2024 14:56:30 +0530 Subject: [PATCH] fix algolia config Signed-off-by: Sanket --- config.toml | 7 ++++++- layouts/partials/search-input.html | 31 ------------------------------ 2 files changed, 6 insertions(+), 32 deletions(-) delete mode 100644 layouts/partials/search-input.html diff --git a/config.toml b/config.toml index 72414cf3..cbc06e50 100644 --- a/config.toml +++ b/config.toml @@ -106,7 +106,7 @@ privacy_policy = "" # Google Custom Search Engine ID. Remove or comment out to disable search. # gcs_engine_id = "c632b781ffe71b197" -algolia_docsearch = true +# algolia_docsearch = true # current release branch - could be rc release_branch = "main" @@ -210,6 +210,11 @@ changefreq = "monthly" filename = "sitemap.xml" priority = 0.5 +[params.search.algolia] +appId = "MSV5TDX060" +apiKey = "d814136dbb3b955516468a309c4b425e" +indexName = "fission" + [menu] [[menu.main]] name = "Docs" diff --git a/layouts/partials/search-input.html b/layouts/partials/search-input.html deleted file mode 100644 index e241a7c3..00000000 --- a/layouts/partials/search-input.html +++ /dev/null @@ -1,31 +0,0 @@ -{{ if .Site.Params.gcs_engine_id -}} - -{{ else if .Site.Params.offlineSearch -}} -{{ $offlineSearchIndex := resources.Get "json/offline-search-index.json" | resources.ExecuteAsTemplate "offline-search-index.json" . -}} -{{ if hugo.IsProduction -}} -{{/* Use `md5` as finger print hash function to shorten file name to avoid `file name too long` error. */ -}} -{{ $offlineSearchIndex = $offlineSearchIndex | fingerprint "md5" -}} -{{ end -}} -{{ $offlineSearchLink := $offlineSearchIndex.RelPermalink -}} - - -{{ end -}} -{{ if .Site.Params.algolia_docsearch -}} -
-{{ end -}} \ No newline at end of file