Skip to content

Commit

Permalink
search
Browse files Browse the repository at this point in the history
  • Loading branch information
JustYuuto committed Nov 11, 2024
1 parent a8cbb12 commit c28094b
Show file tree
Hide file tree
Showing 3 changed files with 402 additions and 179 deletions.
10 changes: 1 addition & 9 deletions docusaurus.config.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import {themes as prismThemes} from 'prism-react-renderer';
import type {Config} from '@docusaurus/types';
import type * as Preset from '@docusaurus/preset-classic';
import SearchLocal from '@cmfcmf/docusaurus-search-local';

// This runs in Node.js - Don't use client-side code here (browser APIs, JSX...)

Expand Down Expand Up @@ -121,14 +120,7 @@ const config: Config = {
},
} satisfies Preset.ThemeConfig,
plugins: [
[
SearchLocal,
{
indexDocs: true,
indexBlog: false,
indexPages: false,
},
],
require.resolve('docusaurus-lunr-search')
],
};

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,11 @@
"typecheck": "tsc"
},
"dependencies": {
"@cmfcmf/docusaurus-search-local": "^1.2.0",
"@docusaurus/core": "3.6.0",
"@docusaurus/preset-classic": "3.6.0",
"@mdx-js/react": "^3.0.0",
"clsx": "^2.0.0",
"docusaurus-lunr-search": "^3.5.0",
"prism-react-renderer": "^2.3.0",
"react": "^18.0.0",
"react-dom": "^18.0.0"
Expand Down
Loading

0 comments on commit c28094b

Please sign in to comment.