Closed vinch closed 2 years ago
Hi, I think you are missing an array. You currently have a plugins
array with two elements: the plugin and its option. However, you need to have a plugins
array with one nested array, that contains two elements: the plugin and its options. This should work:
plugins: [
[
require.resolve("@cmfcmf/docusaurus-search-local"),
{ indexBlog: false },
]
],
Indeed, that's it. Thanks, @cmfcmf!
Hello,
I have a problem but I'm not sure if it's an issue with Docusaurus or with this plugin.
I recently disabled the blog feature of Docusaurus so I told docusaurus-search-local to stop indexing the blog by doing this:
Unfortunately, when I'm doing that, I get the following error from Docusaurus:
I tried doing this below, but it doesn't work either.
As they're admitting themselves that they could have made mistakes, I'm wondering if I should file a bug with them or if it's a problem with this plugin. Another possibility (a likely one) would be me being stupid and missing something obvious so let me know if it's the case :)
Important: I'm running
@docusaurus/core
version^2.0.0-beta.14
and@cmfcmf/docusaurus-search-local
version^0.9.4
.Thank you!