From 983ac182bccec6c1c96bd01d0c217320ac47e8a1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Chopin?= Date: Thu, 22 Aug 2024 15:24:32 +0200 Subject: [PATCH] docs: update command palette links --- docs/app.vue | 39 +++++++++++++++++++++-------------- docs/components/AppHeader.vue | 14 ++++++++----- docs/content/0.index.yml | 2 +- docs/content/1.docs/_dir.yml | 2 ++ docs/content/2.templates.yml | 1 + docs/content/3.pricing.yml | 2 +- docs/content/4.changelog.yml | 2 +- docs/content/5.blog.yml | 1 + 8 files changed, 39 insertions(+), 24 deletions(-) create mode 100644 docs/content/1.docs/_dir.yml diff --git a/docs/app.vue b/docs/app.vue index f204424d..1989c505 100644 --- a/docs/app.vue +++ b/docs/app.vue @@ -56,22 +56,29 @@ onMounted(() => { }, 0) }) -const links = [{ - label: 'NuxtHub Admin', - to: 'https://admin.hub.nuxt.com', - target: '_blank', - icon: 'i-simple-icons-nuxtdotjs' -}, { - label: 'NuxtHub repository', - to: 'https://github.com/nuxt-hub/core', - target: '_blank', - icon: 'i-simple-icons-github' -}, { - label: 'NuxtHub on X', - to: 'https://x.com/nuxt_hub', - target: '_blank', - icon: 'i-simple-icons-x' -}] +const links = computed(() => [ + ...navigation.value.map(item => ({ + label: item.title, + icon: item.icon, + to: item._path === '/docs' ? '/docs/getting-started' : item._path + })), + { + label: 'NuxtHub Admin', + to: 'https://admin.hub.nuxt.com', + target: '_blank', + icon: 'i-simple-icons-nuxtdotjs' + }, { + label: 'nuxt-hub/core', + to: 'https://github.com/nuxt-hub/core', + target: '_blank', + icon: 'i-simple-icons-github' + }, { + label: '@nuxt_hub', + to: 'https://x.com/nuxt_hub', + target: '_blank', + icon: 'i-simple-icons-x' + }] +)