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

chore(docs): adding search bar on current tabby-website-docusaurus #3680

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from
Draft
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
14 changes: 13 additions & 1 deletion website/docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -284,5 +284,17 @@ export default {
src: "https://tally.so/widgets/embed.js",
async: true
}
]
],
themes: [
[
require.resolve("@easyops-cn/docusaurus-search-local"),
/** @type {import("@easyops-cn/docusaurus-search-local").PluginOptions} */
{
hashed: true,
indexBlog: false,
forceIgnoreNoIndex: true,
indexDocs: true,
},
],
],
};
13 changes: 7 additions & 6 deletions website/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,10 @@
"write-heading-ids": "docusaurus write-heading-ids"
},
"dependencies": {
"@docusaurus/core": "3.2.1",
"@docusaurus/plugin-client-redirects": "3.2.1",
"@docusaurus/preset-classic": "3.2.1",
"@docusaurus/core": "3.7.0",
"@docusaurus/plugin-client-redirects": "3.7.0",
"@docusaurus/preset-classic": "3.7.0",
"@easyops-cn/docusaurus-search-local": "0.48.0",
"@mdx-js/react": "^3.0.0",
"@monaco-editor/react": "^4.5.1",
"autoprefixer": "^10.4.14",
Expand All @@ -34,8 +35,8 @@
"url": "^0.11.0"
},
"devDependencies": {
"@docusaurus/module-type-aliases": "3.2.1",
"@docusaurus/types": "3.2.1"
"@docusaurus/module-type-aliases": "3.7.0",
"@docusaurus/types": "3.7.0"
},
"browserslist": {
"production": [
Expand All @@ -52,4 +53,4 @@
"engines": {
"node": ">=18"
}
}
}
35 changes: 28 additions & 7 deletions website/src/css/custom.css
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@

/* You can override the default Infima variables here. */
:root {
/* Color System */
--ifm-color-primary: #3b373c;
--ifm-color-primary-dark: #353236;
--ifm-color-primary-darker: #322f33;
Expand All @@ -18,18 +19,38 @@
--ifm-color-primary-lighter: #443f45;
--ifm-color-primary-lightest: #4d484e;

--ifm-background-color: #FFF8EC;
--ifm-background-surface-color: #E9E1D4;
/* Background Colors */
--ifm-background-color: #fff8ec;
--ifm-background-surface-color: #e9e1d4;
--ifm-code-background: #fffefd;

--ifm-code-background: #FFFEFD;
--openapi-monaco-background-color-light: var(--ifm-code-background) !important;
--openapi-card-background-color: var(--ifm-code-background) !important;
/* Search Modal Variables */
--search-local-modal-background: var(--ifm-background-color);
--search-local-modal-shadow: inset 1px 1px 0 0 hsla(0, 0%, 100%, 0.5),
0 3px 8px 0 #555a64;
--search-local-modal-width: 560px;
--search-local-modal-width-sm: 340px;
--search-local-spacing: 12px;

/* Search Hit Styles */
--search-local-hit-background: var(--ifm-color-emphasis-100);
--search-local-hit-shadow: none;
--search-local-hit-color: var(--ifm-font-color-base);
--search-local-hit-height: 56px;
--search-local-highlight-color: var(--ifm-color-primary);
--search-local-muted-color: var(--ifm-color-secondary-darkest);
--search-local-icon-stroke-width: 1.4;
--search-local-hit-active-color: var(--ifm-color-white);

/* Component Specific */
--openapi-monaco-background-color-light: var(
--ifm-code-background
) !important;
--openapi-card-background-color: var(--ifm-code-background) !important;
/* Fix footer hover color */
--ifm-footer-link-hover-color: var(--ifm-color-gray-500);
}


.markdown a {
color: var(--ifm-color-success-darkest);
}
Expand Down Expand Up @@ -89,6 +110,6 @@
}

.hero__title {
font-family: 'Azeret Mono';
font-family: "Azeret Mono";
font-weight: normal;
}
Loading