Skip to content

Commit

Permalink
Merge pull request #35 from bohyunjung/add-local-search
Browse files Browse the repository at this point in the history
Add local search
  • Loading branch information
homotechsual authored Aug 3, 2024
2 parents 353c41a + 9c14fde commit 913f99b
Show file tree
Hide file tree
Showing 3 changed files with 10,941 additions and 14,854 deletions.
15 changes: 15 additions & 0 deletions docusaurus.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -263,6 +263,21 @@ const config: Config = {
} satisfies DocsOptions,
]
],
themes: [
[
require.resolve("@easyops-cn/docusaurus-search-local"),
/** @type {import("@easyops-cn/docusaurus-search-local").PluginOptions} */
({
indexDocs: true,
indexBlog: false,
indexPages: true,
docsRouteBasePath: ["knowledge", "contributing"],
hashed: true,
docsDir: ["docs", "contributing"],
highlightSearchTermsOnTargetPage: true,
}),
],
],
webpack: {
jsLoader: (isServer: boolean) => ({
loader: 'swc-loader',
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
"@docusaurus/theme-classic": "^3.3.2",
"@docusaurus/theme-common": "^3.3.2",
"@docusaurus/utils": "^3.3.2",
"@easyops-cn/docusaurus-search-local": "^0.44.4",
"@fortawesome/fontawesome-svg-core": "^6.5.2",
"@fortawesome/free-brands-svg-icons": "^6.5.2",
"@fortawesome/free-regular-svg-icons": "^6.5.2",
Expand Down
Loading

0 comments on commit 913f99b

Please sign in to comment.