diff --git a/docs/.vitepress/config.ts b/docs/.vitepress/config.ts index db8268b20..f573a190a 100644 --- a/docs/.vitepress/config.ts +++ b/docs/.vitepress/config.ts @@ -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)) { diff --git a/docs/.vitepress/theme/style.css b/docs/.vitepress/theme/style.css index 91c61521b..2c5de730d 100644 --- a/docs/.vitepress/theme/style.css +++ b/docs/.vitepress/theme/style.css @@ -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 {