Skip to content

Commit

Permalink
Merge pull request #6776 from RasaHQ/update-docs-algolia
Browse files Browse the repository at this point in the history
configure algolia search
  • Loading branch information
m-vdb authored Oct 16, 2020
2 parents b74585a + 74a1836 commit a2dc866
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 21 deletions.
11 changes: 7 additions & 4 deletions docs/docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
10 changes: 0 additions & 10 deletions docs/themes/theme-custom/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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: {
Expand Down
7 changes: 0 additions & 7 deletions docs/themes/theme-custom/styles.css

This file was deleted.

0 comments on commit a2dc866

Please sign in to comment.