diff --git a/docs/docusaurus.config.js b/docs/docusaurus.config.js index 676db46d420a..0904362b8e49 100644 --- a/docs/docusaurus.config.js +++ b/docs/docusaurus.config.js @@ -61,11 +61,14 @@ module.exports = { // isCloseable: false, // Defaults to `true`. }, algolia: { - disabled: true, // FIXME: remove this when our index is good - apiKey: '25626fae796133dc1e734c6bcaaeac3c', // FIXME: replace with values from our own index - indexName: 'docsearch', // FIXME: replace with values from our own index + // this is configured via DocSearch here: + // https://github.com/algolia/docsearch-configs/blob/master/configs/rasa.json + apiKey: '1f9e0efb89e98543f6613a60f847b176', + indexName: 'rasa', inputSelector: '.search-bar', - // searchParameters: {}, // Optional (if provided by Algolia) + searchParameters: { + 'facetFilters': ["tags:rasa"] + } }, navbar: { hideOnScroll: false, diff --git a/docs/themes/theme-custom/index.js b/docs/themes/theme-custom/index.js index 7466dafde008..da243034ce27 100644 --- a/docs/themes/theme-custom/index.js +++ b/docs/themes/theme-custom/index.js @@ -11,16 +11,6 @@ module.exports = function() { return path.resolve(__dirname, './theme'); }, - // FIXME: this allows to disable searchbox shortcuts. It's a quickfix and shouldn't be located here, - // but it's temporary and should be removed when we enable Algolia search - getClientModules() { - const modules = [ - require.resolve('./styles.css') - ]; - - return modules; - }, - configureWebpack() { return { resolve: { diff --git a/docs/themes/theme-custom/styles.css b/docs/themes/theme-custom/styles.css deleted file mode 100644 index 1001a002783a..000000000000 --- a/docs/themes/theme-custom/styles.css +++ /dev/null @@ -1,7 +0,0 @@ -.DocSearch-Button-Key { - display: none !important; -} - -.DocSearch-Button-Placeholder::after { - content: " (coming soon)"; -}