Skip to content

docs: surface contribution guide #3758

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking β€œ#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Closed
wants to merge 10 commits into from
22 changes: 16 additions & 6 deletions docs/app/composables/useContentNavigation.ts
Original file line number Diff line number Diff line change
@@ -31,9 +31,22 @@ function processNavigationItemIcon(item: ContentNavigationItem) {
export const useContentNavigation = (navigation: Ref<ContentNavigationItem[] | undefined>) => {
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<ContentNavigationItem[] | u
}))

return {
mappedNavigation: computed(() => mappedNavigation.value?.map(item => ({
...item,
children: item.children?.map((child: any) => ({ ...child, icon: undefined }))
}))),
mappedNavigation,
filteredNavigation
}
}
2 changes: 1 addition & 1 deletion docs/app/pages/[...slug].vue
Original file line number Diff line number Diff line change
@@ -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'
}, {
Original file line number Diff line number Diff line change
@@ -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.