Skip to content

Commit

Permalink
Add Docsearch with credentials (#73) (#75)
Browse files Browse the repository at this point in the history
* Add Docsearch with credentials

* Add algolia search and update font thickness

* Update text styling based on Rita's feedback
  • Loading branch information
Tschakki authored Feb 23, 2024
2 parents 02625c2 + 8f35292 commit a0fc2ec
Show file tree
Hide file tree
Showing 7 changed files with 1,621 additions and 1,527 deletions.
7 changes: 7 additions & 0 deletions docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,13 @@ const config = {
],

},
algolia: {
appId: 'D8OVOP2W00',
apiKey: 'e8ca930ec49db40b3701611a31f1010e',
indexName: "umentation-lisk",
contextualSearch: false,
debug: false,
},
prism: {
theme: prismThemes.github,
darkTheme: prismThemes.oceanicNext,
Expand Down
2 changes: 2 additions & 0 deletions package-lock.json

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

2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@
"write-heading-ids": "docusaurus write-heading-ids"
},
"dependencies": {
"@docsearch/css": "^3.5.2",
"@docsearch/react": "^3.5.2",
"@docusaurus/core": "3.0.1",
"@docusaurus/preset-classic": "3.0.1",
"@mdx-js/react": "^3.0.0",
Expand Down
5 changes: 3 additions & 2 deletions src/css/custom.css
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
--ifm-color-primary-light: #4e88fc;
--ifm-color-primary-lighter: #5c92fd;
--ifm-color-primary-lightest: #89b0fd;
--ifm-font-family-base: 'Gilroy';
--ifm-font-family-base: 'Gilroy-Medium';
--ifm-heading-font-family: 'Gilroy-Medium';
--ifm-breadcrumb-item-background-active: rgba(64, 112, 244, 0.10);
--ifm-tabs-color-active-border: rgba(64, 112, 244, 1);
Expand Down Expand Up @@ -71,7 +71,8 @@ a {
display: inline-block;
scroll-margin-top: var(--ifm-navbar-height);
}
html[data-theme='dark'] .alert a {

html[data-theme='dark'] .alert a {
text-decoration-color: var(--ifm-color-primary);
}

Expand Down
5 changes: 5 additions & 0 deletions src/css/fonts.css
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,11 @@
src: url('/static/font/Gilroy-Bold.ttf') format('truetype');
}

@font-face {
font-family: "Gilroy-Black";
src: url('/static/font/Gilroy-Black.ttf') format('truetype');
}

@font-face {
font-family: "Gilroy-BlackItalic";
src: url('/static/font/Gilroy-BlackItalic.ttf') format('truetype');
Expand Down
2 changes: 1 addition & 1 deletion src/css/sidebar.css
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/* Sidebar https://docusaurus.io/docs/next/styling-layout#theme-class-names */

.theme-doc-sidebar-item-category-level-1>.menu__list-item-collapsible>.menu__link {
font-family: 'Gilroy-ExtraBold';
font-family: 'Gilroy-Bold';
font-size: large;
line-height: 2.5;
text-overflow: ellipsis;
Expand Down
3,125 changes: 1,601 additions & 1,524 deletions yarn.lock

Large diffs are not rendered by default.

0 comments on commit a0fc2ec

Please sign in to comment.