add-angolia-search

This commit is contained in:
Eric Fennis
2023-06-06 17:15:36 +02:00
parent 8c217618e5
commit afb804152f
2 changed files with 10 additions and 1 deletions
+9 -1
View File
@@ -106,7 +106,7 @@ export default defineConfig({
dark: '/logo.dark.svg'
},
nav: [
{ text: 'Icons', link: '/icons/index.md' },
{ text: 'Icons', link: '/icons/' },
{ text: 'Guide', link: '/guide/' },
{ text: 'Packages', link: '/packages' },
{ text: 'License', link: '/license' },
@@ -123,6 +123,14 @@ export default defineConfig({
editLink: {
pattern: 'https://github.com/lucide-icons/lucide/edit/main/docs/:path'
},
search: {
provider: 'algolia',
options: {
appId: 'R7KKMCPXOB',
apiKey: '04d422179bdfbb7c49092689bd18c31f',
indexName: 'lucide'
}
}
},
transformHtml: (_, id, { pageData }) => {
if (/[\\/]404\.html$/.test(id)) {
+1
View File
@@ -7,6 +7,7 @@
--vp-c-bg-alt-up: #fff;
--vp-c-bg-alt-down: #fff;
--docsearch-container-background: rgba(22,22,32, .4);
}
.dark {