diff --git a/docs/app/composables/useContentNavigation.ts b/docs/app/composables/useContentNavigation.ts index 579a2b4041..392036cea7 100644 --- a/docs/app/composables/useContentNavigation.ts +++ b/docs/app/composables/useContentNavigation.ts @@ -31,9 +31,22 @@ function processNavigationItemIcon(item: ContentNavigationItem) { export const useContentNavigation = (navigation: Ref) => { const { framework, module } = useSharedData() - const mappedNavigation = computed(() => navigation.value?.map(item => processNavigationItem(item))) + const processedNavigation = navigation.value?.map(item => processNavigationItem(item)) - const filteredNavigation = computed(() => mappedNavigation.value?.map((item) => { + const mappedNavigation = computed(() => processedNavigation?.map((item) => { + return { + ...item, + children: item.children?.filter((child: any) => { + if (child.path === '/getting-started/contribution') { + return false + } + return true + }) + .map((child: any) => ({ ...child, icon: undefined })) + } + })) + + const filteredNavigation = computed(() => processedNavigation?.map((item) => { return { ...item, children: item.children?.filter((child: any) => { @@ -53,10 +66,7 @@ export const useContentNavigation = (navigation: Ref mappedNavigation.value?.map(item => ({ - ...item, - children: item.children?.map((child: any) => ({ ...child, icon: undefined })) - }))), + mappedNavigation, filteredNavigation } } diff --git a/docs/app/pages/[...slug].vue b/docs/app/pages/[...slug].vue index c974caa8dd..991e8e537b 100644 --- a/docs/app/pages/[...slug].vue +++ b/docs/app/pages/[...slug].vue @@ -112,7 +112,7 @@ const communityLinks = computed(() => [{ to: 'https://nuxt.lemonsqueezy.com/affiliates', target: '_blank' }, { - icon: 'i-lucide-life-buoy', + icon: 'i-lucide-git-pull-request-arrow', label: 'Contribution', to: '/getting-started/contribution' }, { diff --git a/docs/content/1.getting-started/contribution.md b/docs/content/1.getting-started/8.contribution.md similarity index 99% rename from docs/content/1.getting-started/contribution.md rename to docs/content/1.getting-started/8.contribution.md index 1aecf5d368..4ceb02ecee 100644 --- a/docs/content/1.getting-started/contribution.md +++ b/docs/content/1.getting-started/8.contribution.md @@ -1,7 +1,6 @@ --- -title: Contribution Guide +title: Contribution description: 'A comprehensive guide on contributing to Nuxt UI, including project structure, development workflow, and best practices.' -navigation: false --- Nuxt UI thrives thanks to its incredible community ❤️. We welcome all contributions through bug reports, pull requests, and feedback to help make this library even better.