diff --git a/src/js/vendor/search-algolia.js b/src/js/vendor/search-algolia.js index 4a82dc4..4db530b 100644 --- a/src/js/vendor/search-algolia.js +++ b/src/js/vendor/search-algolia.js @@ -1,6 +1,3 @@ -import docsearch from '@docsearch/js' -import '@docsearch/css' - window.antoraAlgolia = (function () { const scriptAttrs = document.getElementById('search-script').dataset const apiKey = scriptAttrs.apiKey @@ -13,7 +10,7 @@ window.antoraAlgolia = (function () { appId: apiId, indexName: indexName, container: '#search-input', - searchParameters: { sfacetFilters: ['language:en', 'version:1.0.0'] }, + searchParameters: { sfacetFilters: ['language:n', 'version:1.0.0'] }, autocompleteOptions: { hint: false, keyboardShortcuts: ['s'] }, }).autocomplete diff --git a/src/partials/footer-scripts.hbs b/src/partials/footer-scripts.hbs index 4c3db11..fab0ba0 100644 --- a/src/partials/footer-scripts.hbs +++ b/src/partials/footer-scripts.hbs @@ -6,8 +6,7 @@ {{else if (eq env.SEARCH_ENGINE 'algolia')}} -{{!-- --}} - + {{/if}} {{/if}} diff --git a/src/partials/head-styles.hbs b/src/partials/head-styles.hbs index b98658e..82a169f 100644 --- a/src/partials/head-styles.hbs +++ b/src/partials/head-styles.hbs @@ -4,7 +4,7 @@ {{#if (eq env.SEARCH_ENGINE 'lunr')}} {{else if (eq env.SEARCH_ENGINE 'algolia')}} - - {{!-- --}} + {{!-- --}} + {{/if}} {{/if}}