Skip to content

Commit cc59919

Browse files
committedDec 18, 2024
Add lunr search
1 parent db3b91c commit cc59919

File tree

3 files changed

+853
-13
lines changed

3 files changed

+853
-13
lines changed
 

‎docusaurus.config.ts

+4
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,10 @@ const config: Config = {
2424
onBrokenLinks: 'warn',
2525
onBrokenMarkdownLinks: 'warn',
2626

27+
plugins: [[ require.resolve('docusaurus-lunr-search'), {
28+
languages: ['en'] // language codes
29+
}]],
30+
2731
// Even if you don't use internationalization, you can use this field to set
2832
// useful metadata like html lang. For example, if your site is Chinese, you
2933
// may want to replace "en" with "zh-Hans".

‎package-lock.json

+848-13
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎package.json

+1
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
"@docusaurus/preset-classic": "3.5.2",
2020
"@mdx-js/react": "^3.0.0",
2121
"clsx": "^2.0.0",
22+
"docusaurus-lunr-search": "^3.5.0",
2223
"prism-react-renderer": "^2.3.0",
2324
"react": "^18.0.0",
2425
"react-dom": "^18.0.0",

0 commit comments

Comments
 (0)
Please sign in to comment.