Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: connect algolia search #11

Merged
merged 2 commits into from
Jun 26, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions docusaurus.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,11 @@ const config: Config = {
theme: prismThemes.github,
darkTheme: prismThemes.dracula,
},
algolia: {
appId: "GEUAOEJ3NK",
apiKey: "329ccc709854898024bad32d341d441f",
indexName: "testplane",
},
} satisfies Preset.ThemeConfig,

plugins: ["docusaurus-plugin-sass", tailwindPlugin, svgFixDuplicateIdsPlugin],
Expand Down
51 changes: 37 additions & 14 deletions src/scss/custom.scss
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@
--ifm-link-color: theme("colors.indigo.600");
--ifm-menu-color-active: theme("colors.indigo.600");
--ifm-breadcrumb-color-active: theme("colors.indigo.600");
--docsearch-searchbox-background: transparent !important;
}

/* Dark mode. */
Expand All @@ -66,32 +67,54 @@

.navbar {
&.navbar--fixed-top {
backdrop-filter: blur(5px);
background-color: #ffffff60;
background-color: rgba(255, 255, 255, 0.7);

&::before {
content: "";
position: absolute;
backdrop-filter: blur(5px);
top: 0;
bottom: 0;
left: 0;
right: 0;
}

& .navbar__inner,
& .navbar-sidebar,
& .navbar-sidebar__backdrop {
z-index: 1;
}
}

.navbar__item {
@apply text-base font-semibold text-gray-700 hover:text-gray-500;
.DocSearch-Button {
background-color: rgba(75, 85, 99, 0.1);

color: theme("colors.gray.600") !important;

svg {
color: theme("colors.gray.600") !important;
}
}

.navbar__link {
@apply flex items-center font-medium text-gray-600 after:border-t-gray-600;
@apply font-medium text-gray-600 after:border-t-gray-600;

svg {
display: inline;
margin-top: -2px;
}

&::after {
top: 0;
}

&::after {
transform: none;
}
}

.navbar__brand {
@apply flex-row-reverse font-mono text-indigo-600 hover:text-indigo-400;
}

.navbar__brand .navbar__logo {
@apply ml-1 size-6;
}

.navbar__toggle {
display: none;
@apply font-mono text-indigo-600 hover:text-indigo-400;
}
}

Expand Down
Loading