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