Skip to content

Commit deeb68f

Browse files
committed
feat: setup search, close #8
1 parent 3a58cce commit deeb68f

File tree

3 files changed

+9
-2
lines changed

3 files changed

+9
-2
lines changed

.vitepress/config.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -208,6 +208,13 @@ module.exports = {
208208
editLinks: true,
209209
editLinkText: 'Suggest changes to this page',
210210

211+
// for translations maintainers: you probably want to comment this out for now.
212+
// I will handle them later when I setup the crawler for translations
213+
algolia: {
214+
apiKey: '1a5c5a504139c58f428974c78c55291d',
215+
indexName: 'sli',
216+
},
217+
211218
nav: [
212219
{
213220
text: 'Guide',

.vitepress/theme/components/AlgoliaSearchBox.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ function initialize(userOptions: any) {
150150
--docsearch-footer-shadow: rgba(125,125,125,0.1);
151151
--docsearch-hit-background: rgba(125,125,125,0.1);
152152
--docsearch-hit-shadow: none;
153-
--docsearch-primary-color: #42b983;
153+
--docsearch-primary-color: var(--c-brand);
154154
--docsearch-highlight-color: var(--docsearch-primary-color);
155155
--docsearch-searchbox-background: rgba(125,125,125,0.05);
156156
--docsearch-searchbox-focus-background: rgba(125,125,125,0.05);

.vitepress/theme/styles/layout.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -306,7 +306,7 @@ p > img {
306306
@apply rounded-2xl
307307
}
308308

309-
li svg {
309+
li > svg {
310310
vertical-align: middle;
311311
transform: translateY(-10%);
312312
}

0 commit comments

Comments
 (0)