Skip to content

Commit

Permalink
feat(algolia-search): switch to algolia-search
Browse files Browse the repository at this point in the history
  • Loading branch information
Nekotora committed Jul 18, 2024
1 parent ae87329 commit 09cb6a7
Show file tree
Hide file tree
Showing 3 changed files with 178 additions and 1,415 deletions.
26 changes: 15 additions & 11 deletions docusaurus.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -88,16 +88,6 @@ const config: Config = {
'docusaurus-plugin-image-zoom'
],

themes: [
[
'@easyops-cn/docusaurus-search-local',
{
hashed: true,
language: ["en", "zh", "jp", 'ko'],
},
],
],

themeConfig:
{
image: 'img/favicon.png',
Expand Down Expand Up @@ -148,7 +138,21 @@ const config: Config = {
config: {
// options you can specify via https://github.com/francoischalifour/medium-zoom#usage
}
}
},
algolia: {
appId: 'UVVN89W9VO',
apiKey: '019eab3095bb177f3955cd0fd397921d',
indexName: 'warudo',
contextualSearch: true,
// Optional: Specify domains where the navigation should occur through window.location instead on history.push. Useful when our Algolia config crawls multiple documentation sites and we want to navigate with window.location.href to them.
externalUrlRegex: 'external\\.com|domain\\.com',
// Optional: Algolia search parameters
searchParameters: {},
// Optional: path for search page that enabled by default (`false` to disable it)
searchPagePath: 'search',
// Optional: whether the insights feature is enabled or not on Docsearch (`false` by default)
insights: false,
},
} satisfies Preset.ThemeConfig,
};

Expand Down
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@
"@docusaurus/preset-classic": "^3.4.0",
"@docusaurus/theme-common": "^3.4.0",
"@docusaurus/types": "^3.4.0",
"@easyops-cn/docusaurus-search-local": "^0.44.0",
"@mdx-js/react": "^3.0.0",
"@types/react": "^18.2.45",
"clsx": "^1.2.1",
Expand Down
Loading

0 comments on commit 09cb6a7

Please sign in to comment.