diff --git a/docs/.env.example b/docs/.env.example new file mode 100644 index 000000000..bce0da194 --- /dev/null +++ b/docs/.env.example @@ -0,0 +1,14 @@ +# Copy to `docs/.env`. Every variable is optional. + +# Icon popularity from Plausible. Defaults to 0 for every icon when unset. +LUCIDE_ANALYTICS_TOKEN= + +# Set to `true` to also show icons that are not released yet. +VITE_SHOW_AWAITING_RELEASE= + +# Client-side Algolia icon search (public search-only key). +# Overrides the defaults in docs/.vitepress/theme/utils/algolia.ts, +# e.g. to point the site at another index. The index is filled by the Algolia crawler. +VITE_ALGOLIA_APP_ID= +VITE_ALGOLIA_SEARCH_API_KEY= +VITE_ALGOLIA_INDEX_NAME= diff --git a/docs/.vitepress/config.ts b/docs/.vitepress/config.ts index 21024d431..129260cf4 100644 --- a/docs/.vitepress/config.ts +++ b/docs/.vitepress/config.ts @@ -118,6 +118,14 @@ export default defineConfig({ editLink: { pattern: 'https://github.com/lucide-icons/lucide/edit/main/docs/:path', }, + search: { + provider: 'algolia', + options: { + appId: 'R7KKMCPXOB', + apiKey: 'dd3101054267d35fb28f49c42715f1aa', + indexName: 'docs' + } + }, carbonAds: { code: 'CWYIC53U', placement: 'lucidedev', diff --git a/docs/.vitepress/theme/components/icons/IconsCategoryOverview.vue b/docs/.vitepress/theme/components/icons/IconsCategoryOverview.vue index e3aab9189..5963f4747 100644 --- a/docs/.vitepress/theme/components/icons/IconsCategoryOverview.vue +++ b/docs/.vitepress/theme/components/icons/IconsCategoryOverview.vue @@ -1,20 +1,19 @@