diff --git a/website/docusaurus.config.ts b/website/docusaurus.config.ts index fa9fdd51..51ce7148 100644 --- a/website/docusaurus.config.ts +++ b/website/docusaurus.config.ts @@ -1,7 +1,6 @@ import type { Config } from '@docusaurus/types'; import { themes as prismThemes } from 'prism-react-renderer'; import type * as Preset from '@docusaurus/preset-classic'; -import { relative } from 'path'; const config: Config = { title: 'ConfigCat Docs', @@ -403,8 +402,8 @@ const config: Config = { }, algolia: { // The search crawling repo can be found here: https://github.com/configcat/docsearch - appId: '0MLXBNIK0Q', - apiKey: '6484bd6c163502bacf229cb8d22024ab', + appId: '0G4A1N5W4D', // Revert to 0MLXBNIK0Q before merging. + apiKey: '6ef464aa13ff206475397b835c52b646', // Revert to 6484bd6c163502bacf229cb8d22024ab before merging. indexName: 'configcat', contextualSearch: true, searchPagePath: 'search', diff --git a/website/src/css/custom.scss b/website/src/css/custom.scss index c34c71a0..1d9ad125 100644 --- a/website/src/css/custom.scss +++ b/website/src/css/custom.scss @@ -122,3 +122,16 @@ ul.feature-list { } } } + +/* Customize Algolia's default "See all results" text */ + +/* Hide the original text */ +.DocSearch-HitsFooter a { + font-size: 0 !important; +} + +/* Customize the text */ +.DocSearch-HitsFooter a::after { + content: "See all results"; + font-size: 14px; +}