Skip to content

Commit 312ea51

Browse files
committed
Enable tokenizer with dot separation
1 parent b4b6dec commit 312ea51

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

docusaurus.config.js

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,16 @@ const config = {
1818
onBrokenLinks: 'warn',
1919
onBrokenMarkdownLinks: 'warn',
2020
favicon: 'img/logo.png',
21-
plugins: [require.resolve("@easyops-cn/docusaurus-search-local")],
21+
plugins: [
22+
[
23+
require.resolve("@easyops-cn/docusaurus-search-local"),
24+
{
25+
// Include `zh` to enable a custom tokenizer that splits on symbols
26+
// like '.' so queries for `startswith` match `string.startswith`.
27+
language: ["en", "zh"],
28+
},
29+
],
30+
],
2231

2332
// GitHub pages deployment config.
2433
// If you aren't using GitHub pages, you don't need these.

0 commit comments

Comments
 (0)