Skip to content

Commit 983ac18

Browse files
committed
docs: update command palette links
1 parent ba7b541 commit 983ac18

File tree

8 files changed

+39
-24
lines changed

8 files changed

+39
-24
lines changed

docs/app.vue

+23-16
Original file line numberDiff line numberDiff line change
@@ -56,22 +56,29 @@ onMounted(() => {
5656
}, 0)
5757
})
5858
59-
const links = [{
60-
label: 'NuxtHub Admin',
61-
to: 'https://admin.hub.nuxt.com',
62-
target: '_blank',
63-
icon: 'i-simple-icons-nuxtdotjs'
64-
}, {
65-
label: 'NuxtHub repository',
66-
to: 'https://github.com/nuxt-hub/core',
67-
target: '_blank',
68-
icon: 'i-simple-icons-github'
69-
}, {
70-
label: 'NuxtHub on X',
71-
to: 'https://x.com/nuxt_hub',
72-
target: '_blank',
73-
icon: 'i-simple-icons-x'
74-
}]
59+
const links = computed(() => [
60+
...navigation.value.map(item => ({
61+
label: item.title,
62+
icon: item.icon,
63+
to: item._path === '/docs' ? '/docs/getting-started' : item._path
64+
})),
65+
{
66+
label: 'NuxtHub Admin',
67+
to: 'https://admin.hub.nuxt.com',
68+
target: '_blank',
69+
icon: 'i-simple-icons-nuxtdotjs'
70+
}, {
71+
label: 'nuxt-hub/core',
72+
to: 'https://github.com/nuxt-hub/core',
73+
target: '_blank',
74+
icon: 'i-simple-icons-github'
75+
}, {
76+
label: '@nuxt_hub',
77+
to: 'https://x.com/nuxt_hub',
78+
target: '_blank',
79+
icon: 'i-simple-icons-x'
80+
}]
81+
)
7582
</script>
7683

7784
<template>

docs/components/AppHeader.vue

+9-5
Original file line numberDiff line numberDiff line change
@@ -5,20 +5,24 @@ const navigation = inject('navigation')
55
const links = [
66
{
77
label: 'Docs',
8-
to: '/docs/getting-started'
8+
to: '/docs/getting-started',
9+
icon: 'i-ph-books'
910
}, {
1011
label: 'Templates',
1112
to: '/templates',
12-
color: 'cyan'
13+
icon: 'i-ph-layout'
1314
}, {
1415
label: 'Pricing',
15-
to: '/pricing'
16+
to: '/pricing',
17+
icon: 'i-ph-credit-card'
1618
}, {
1719
label: 'Changelog',
18-
to: '/changelog'
20+
to: '/changelog',
21+
icon: 'i-ph-pulse'
1922
}, {
2023
label: 'Blog',
21-
to: '/blog'
24+
to: '/blog',
25+
icon: 'i-ph-newspaper'
2226
}
2327
]
2428
const navLinks = links.map((link) => {

docs/content/0.index.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
title: 'Build, deploy & manage Nuxt apps, globally.'
2+
navigation: false
23
description: 'NuxtHub is a deployment and administration platform for Nuxt, powered by Cloudflare. Deploy your Nuxt applications with a database, key-value and blob storage with zero configuration, on your Cloudflare account.
34
NuxtHub lets you affordably run your high performance Nuxt apps everywhere.'
4-
navigation: false
55
hero:
66
title: 'Build, deploy & manage <br /> <span class="text-primary">Nuxt apps</span>, globally.'
77
description: 'NuxtHub is a deployment and administration platform for Nuxt, powered by Cloudflare.<br />Deploy your app with a database, key-value and blob storage with zero configuration, on your Cloudflare account.<br />NuxtHub lets you affordably run your high performance Nuxt apps everywhere.'

docs/content/1.docs/_dir.yml

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
icon: i-ph-books
2+
title: Docs

docs/content/2.templates.yml

+1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
title: Templates
22
description: 'Explore full-stack Nuxt templates to get up and running in a few seconds.'
3+
icon: i-ph-layout
34
hero:
45
title: 'NuxtHub Templates'
56
description: 'Explore full-stack Nuxt templates to get up and running in a few seconds.'

docs/content/3.pricing.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
title: 'Pricing'
22
description: 'Get started with NuxtHub for free and upgrade as you grow.'
3-
navigation: false
3+
icon: i-ph-credit-card
44
hero:
55
headline: '2 months off with yearly plan'
66
title: 'Start for free, upgrade <span class="text-primary">as you grow</span>'

docs/content/4.changelog.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
title: 'Changelog'
22
description: 'Follow the latest updates and improvements of NuxtHub.'
3-
navigation: false
3+
icon: i-ph-pulse
44
hero:
55
title: 'Changelog'
66
description: 'Follow the latest updates and improvements of NuxtHub.'

docs/content/5.blog.yml

+1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
title: The NuxtHub Blog
22
navigation.title: Blog
33
description: 'Read the latest news about NuxtHub or articles about fullstack development with Nuxt.'
4+
icon: i-ph-newspaper
45
hero:
56
title: 'Blog'
67
description: 'Read the latest news about NuxtHub.'

0 commit comments

Comments
 (0)