Skip to content

Commit

Permalink
Merge pull request #40 from mongodb-developer/fixed-search-plugin
Browse files Browse the repository at this point in the history
Fixed search plugin for Mandarin
  • Loading branch information
finishy1995 authored Sep 24, 2024
2 parents 8e89e7b + 25dbf2e commit 2141356
Show file tree
Hide file tree
Showing 3 changed files with 297 additions and 2 deletions.
11 changes: 9 additions & 2 deletions docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ const config = {
staticDirectories: ["static"],
i18n: {
defaultLocale: "en",
locales: ["en", "zh"]
locales: ["en", "zh"],
},
customFields: {
startButtonTitle: `${startButtonTitle}`,
Expand All @@ -124,7 +124,14 @@ const config = {
}),
],
],
plugins: [require.resolve("docusaurus-lunr-search")],
plugins: [
[
require.resolve("docusaurus-lunr-search"),
{
languages: ["en", "zh"], // language codes
},
],
],
themeConfig:
/** @type {import('@docusaurus/preset-classic').ThemeConfig} */
({
Expand Down
287 changes: 287 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
"@docusaurus/plugin-google-gtag": "3.5.2",
"@docusaurus/preset-classic": "3.5.2",
"@mdx-js/react": "3.0.1",
"@node-rs/jieba": "^1.10.3",
"clsx": "^1.2.1",
"docusaurus-lunr-search": "^3.5.0",
"prism-react-renderer": "^2.1.0",
Expand Down

0 comments on commit 2141356

Please sign in to comment.