Skip to content

Commit

Permalink
feat: add algolia search (#146)
Browse files Browse the repository at this point in the history
  • Loading branch information
manuel-rw authored Dec 18, 2024
1 parent 1c3a6ba commit d9a4dbf
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 156 deletions.
7 changes: 6 additions & 1 deletion docusaurus.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,12 @@ const config: Config = {
],
hideOnScroll: false,
},
algolia: {
appId: 'N69WSPZTID',
apiKey: 'b2b00f4ed8ca3dc87b5d211c55121416',
contextualSearch: true,
indexName: 'homarr'
},
footer: {
links: [
{
Expand Down Expand Up @@ -222,7 +228,6 @@ const config: Config = {
},
} satisfies Preset.ThemeConfig,
plugins: [
require.resolve('@cmfcmf/docusaurus-search-local'),
'docusaurus-plugin-image-zoom',
async function tailwindCssPlugin(context, options) {
return {
Expand Down
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@
"api-dump-contributors": "node ./scripts/dump-contributors.js"
},
"dependencies": {
"@cmfcmf/docusaurus-search-local": "^1.2.0",
"@dipakparmar/docusaurus-plugin-umami": "^2.1.2",
"@docusaurus/core": "^3.6.3",
"@docusaurus/plugin-sitemap": "^3.6.3",
Expand Down
124 changes: 0 additions & 124 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

30 changes: 0 additions & 30 deletions src/css/custom.css
Original file line number Diff line number Diff line change
Expand Up @@ -55,23 +55,6 @@
margin-right: 1rem;
}

.aa-DetachedSearchButton,
form.aa-Form {
border-radius: 0.5rem !important;
border: none !important;
background-color: #e8e8e8 !important;
}

[data-theme='dark'] .aa-DetachedSearchButton,
[data-theme='dark'] form.aa-Form {
background-color: var(--ifm-scrollbar-track-background-color) !important;
color: #e1e1e1;
}

[data-theme='dark'] .aa-DetachedSearchButton svg {
color: #e1e1e1;
}

.swiper-slide {
width: initial !important;
height: auto !important;
Expand Down Expand Up @@ -113,19 +96,6 @@ form.aa-Form {
font-weight: 600;
}

.dsla-search-wrapper {
width: 300px;
}

.dsla-search-wrapper .aa-DetachedSearchButton svg {
color: #9a9a9a;
}

.dsla-search-wrapper .aa-DetachedSearchButtonPlaceholder,
[data-theme="dark"] .dsla-search-wrapper .aa-DetachedSearchButton svg {
color: #9a9a9a;
}

.medium-zoom-overlay {
background-color: transparent !important;
backdrop-filter: blur(10px) brightness(0.7);
Expand Down

0 comments on commit d9a4dbf

Please sign in to comment.