Skip to content

Commit

Permalink
Merge pull request #33 from HakuyaLabs/feat/algolia-search
Browse files Browse the repository at this point in the history
feat(algolia-search): switch to algolia-search
  • Loading branch information
Nekotora authored Jul 18, 2024
2 parents 5fb83e2 + 09cb6a7 commit cc82992
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 cc82992

Please sign in to comment.