diff --git a/.cspell/custom-words.txt b/.cspell/custom-words.txt index e0e6b2098..39dc31c30 100644 --- a/.cspell/custom-words.txt +++ b/.cspell/custom-words.txt @@ -9,9 +9,3 @@ strikethrough touchpad ungroup toc - -# Brands -codepen -codesandbox -dribbble -x.com diff --git a/categories/brands.json b/categories/brands.json deleted file mode 100644 index c48c4b3b0..000000000 --- a/categories/brands.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "$schema": "../category.schema.json", - "title": "Brands", - "icon": "facebook" -} diff --git a/docs/.vitepress/data/categoriesData.json b/docs/.vitepress/data/categoriesData.json index 03f5236bd..c579edefe 100644 --- a/docs/.vitepress/data/categoriesData.json +++ b/docs/.vitepress/data/categoriesData.json @@ -15,10 +15,6 @@ "name": "arrows", "title": "Arrows" }, - { - "name": "brands", - "title": "Brands" - }, { "name": "buildings", "title": "Buildings" diff --git a/docs/.vitepress/theme/components/icons/IconShowcase.vue b/docs/.vitepress/theme/components/icons/IconShowcase.vue index a3a9cc25f..4902d286e 100644 --- a/docs/.vitepress/theme/components/icons/IconShowcase.vue +++ b/docs/.vitepress/theme/components/icons/IconShowcase.vue @@ -29,7 +29,12 @@ const props = defineProps<{ const iconComponent = computed(() => { if (!props.name || !props.iconNode) return null; - return createLucideIcon(props.name, props.iconNode); + try { + return createLucideIcon(props.name, props.iconNode); + } catch (error) { + console.warn(`Icon ${props.name} not found, using fallback`); + return null; + } }); const CalendarIcon = createLucideIcon('calendar', Calendar.iconNode); @@ -61,7 +66,7 @@ const prettyName = props.name