Skip to content

Commit

Permalink
add algolia search
Browse files Browse the repository at this point in the history
  • Loading branch information
LukeWasTakenn committed Oct 21, 2024
1 parent f341e87 commit 9756eb7
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 5 deletions.
2 changes: 1 addition & 1 deletion components/Search.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { DocSearch } from '@docsearch/react';
import '@docsearch/css';

const Search: React.FC = () => {
return <DocSearch appId="8XXXVNJ7UW" apiKey="3680aeb79049744c6629dd0abd2f5dfe" indexName="overextended" />;
return <DocSearch appId="8XXXVNJ7UW" apiKey="bf7661918f784d59105bc70fcc22bfb0" indexName="overextended" />;
};

export default Search;
20 changes: 19 additions & 1 deletion index.css
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
@tailwind base;
@tailwind components;
@tailwind utilities;

Expand Down Expand Up @@ -34,6 +35,10 @@ ol.nx-list-decimal {
--docsearch-primary-color: #0ea5e9;
}

.DocSearch--active {
overflow: unset !important;
}

.DocSearch-Modal {
@apply !rounded-md shadow-none dark:bg-neutral-800;
}
Expand All @@ -43,7 +48,20 @@ ol.nx-list-decimal {
}

.DocSearch-Search-Icon {
@apply !text-gray-800 dark:!text-gray-400;
@apply !text-gray-800 dark:!text-gray-400 !flex !items-center !justify-center;
}

.DocSearch-Screen-Icon {
@apply flex justify-center;
}

.DocSearch-Button-Keys {
height: 100%;
align-items: center;
}

.DocSearch-Button-Key {
top: 0;
}

.DocSearch-Button-Key {
Expand Down
6 changes: 3 additions & 3 deletions theme.config.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -60,9 +60,9 @@ const config: DocsThemeConfig = {
footer: {
text: 'Overextended',
},
// search: {
// component: <Search />,
// },
search: {
component: <Search />,
},
head: useHead,
primaryHue: { dark: 200, light: 200 },
sidebar: {
Expand Down

0 comments on commit 9756eb7

Please sign in to comment.