Skip to content

Commit

Permalink
Change search from aloglia to local search
Browse files Browse the repository at this point in the history
  • Loading branch information
taodong committed Jul 3, 2024
1 parent f48a324 commit 49440bb
Show file tree
Hide file tree
Showing 4 changed files with 772 additions and 13 deletions.
13 changes: 2 additions & 11 deletions docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,8 @@ module.exports = {
],
],

plugins: [require.resolve('docusaurus-lunr-search')],

themeConfig:
/** @type {import('@docusaurus/preset-classic').ThemeConfig} */
({
Expand Down Expand Up @@ -79,17 +81,6 @@ module.exports = {
prism: {
theme: prismThemes.github,
darkTheme: prismThemes.dracula,
},
aloglia: {
appId: "OL3E6P4ZV2",
apiKey: "ade1a6583d188989018937539a1a7e22",
indexName: "taodongio",
contextualSearch: false,
replaceSearchResultPathname: process.env.NODE_ENV === 'production' ?
{
from: '/helps4data/',
to: '/'
} : undefined
}
})
};
Expand Down
Loading

0 comments on commit 49440bb

Please sign in to comment.