Improve search bar (#700)

This commit is contained in:
pollfly 2023-11-01 16:51:36 +02:00 committed by GitHub
parent 0642933dcc
commit d5a97a435c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -26,6 +26,14 @@ module.exports = {
theme: require('prism-react-renderer/themes/dracula'),
darkTheme: require('prism-react-renderer/themes/dracula'),
},
algolia: {
appId: 'none', // The application ID provided by Algolia
apiKey: 'none', // Public API key
indexName: 'none', // index name
// Optional: see doc section below
contextualSearch: true,
},
zoomSelector: '.markdown :not(em) > img',
colorMode: {
defaultMode: 'light',
@ -219,33 +227,6 @@ module.exports = {
},
],
],
themes: [
[
require.resolve("@easyops-cn/docusaurus-search-local"),
{
hashed: true,
// whether to index docs pages
indexDocs: true,
// must start with "/" and correspond to the routeBasePath configured for the docs plugin
// use "/" if you use docs-only-mode
// (see https://v2.docusaurus.io/docs/2.0.0-alpha.70/docs-introduction#docs-only-mode)
docsRouteBasePath: '/docs',
searchResultLimits: 8,
searchResultContextMaxLength: 50,
// whether to index blog pages
indexBlog: false,
// blogRouteBasePath: '/blog',
// files to ignore in search
// whether to index static pages
// /404.html is never indexed
indexPages: false,
ignoreFiles: [/docs\/release_notes\/.*/],
// language of your documentation, see next section
language: "en",
}]],
plugins: [
// ... Your other plugins.
[