Skip to content

Commit d9a4dbf

Browse files
authored
feat: add algolia search (#146)
1 parent 1c3a6ba commit d9a4dbf

File tree

4 files changed

+6
-156
lines changed

4 files changed

+6
-156
lines changed

docusaurus.config.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,6 +146,12 @@ const config: Config = {
146146
],
147147
hideOnScroll: false,
148148
},
149+
algolia: {
150+
appId: 'N69WSPZTID',
151+
apiKey: 'b2b00f4ed8ca3dc87b5d211c55121416',
152+
contextualSearch: true,
153+
indexName: 'homarr'
154+
},
149155
footer: {
150156
links: [
151157
{
@@ -222,7 +228,6 @@ const config: Config = {
222228
},
223229
} satisfies Preset.ThemeConfig,
224230
plugins: [
225-
require.resolve('@cmfcmf/docusaurus-search-local'),
226231
'docusaurus-plugin-image-zoom',
227232
async function tailwindCssPlugin(context, options) {
228233
return {

package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@
2121
"api-dump-contributors": "node ./scripts/dump-contributors.js"
2222
},
2323
"dependencies": {
24-
"@cmfcmf/docusaurus-search-local": "^1.2.0",
2524
"@dipakparmar/docusaurus-plugin-umami": "^2.1.2",
2625
"@docusaurus/core": "^3.6.3",
2726
"@docusaurus/plugin-sitemap": "^3.6.3",

pnpm-lock.yaml

Lines changed: 0 additions & 124 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/css/custom.css

Lines changed: 0 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -55,23 +55,6 @@
5555
margin-right: 1rem;
5656
}
5757

58-
.aa-DetachedSearchButton,
59-
form.aa-Form {
60-
border-radius: 0.5rem !important;
61-
border: none !important;
62-
background-color: #e8e8e8 !important;
63-
}
64-
65-
[data-theme='dark'] .aa-DetachedSearchButton,
66-
[data-theme='dark'] form.aa-Form {
67-
background-color: var(--ifm-scrollbar-track-background-color) !important;
68-
color: #e1e1e1;
69-
}
70-
71-
[data-theme='dark'] .aa-DetachedSearchButton svg {
72-
color: #e1e1e1;
73-
}
74-
7558
.swiper-slide {
7659
width: initial !important;
7760
height: auto !important;
@@ -113,19 +96,6 @@ form.aa-Form {
11396
font-weight: 600;
11497
}
11598

116-
.dsla-search-wrapper {
117-
width: 300px;
118-
}
119-
120-
.dsla-search-wrapper .aa-DetachedSearchButton svg {
121-
color: #9a9a9a;
122-
}
123-
124-
.dsla-search-wrapper .aa-DetachedSearchButtonPlaceholder,
125-
[data-theme="dark"] .dsla-search-wrapper .aa-DetachedSearchButton svg {
126-
color: #9a9a9a;
127-
}
128-
12999
.medium-zoom-overlay {
130100
background-color: transparent !important;
131101
backdrop-filter: blur(10px) brightness(0.7);

0 commit comments

Comments
 (0)