From 993302c28d86080c74e15f5b4c679e6292113286 Mon Sep 17 00:00:00 2001 From: Benjamin Canac Date: Fri, 22 Sep 2023 12:50:15 +0200 Subject: [PATCH 001/116] docs: integrate `@nuxt/ui-pro` --- docs/.env.example | 2 + docs/components/Header.vue | 30 +++++-- .../content/ComponentPlaceholder.vue | 70 ++++++++++++++++ docs/components/content/VoltaEmbed.vue | 17 ---- docs/content/1.getting-started/6.roadmap.md | 7 -- docs/layouts/docs.vue | 4 +- docs/layouts/pro.vue | 0 docs/nuxt.config.ts | 17 +++- docs/pages/pro/components.vue | 59 +++++++++++++ docs/pages/pro/components/[...slug].vue | 67 +++++++++++++++ docs/pages/pro/index.vue | 84 +++++++++++++++++++ docs/pages/roadmap.vue | 31 +++++++ 12 files changed, 354 insertions(+), 34 deletions(-) create mode 100644 docs/components/content/ComponentPlaceholder.vue delete mode 100644 docs/components/content/VoltaEmbed.vue delete mode 100644 docs/content/1.getting-started/6.roadmap.md create mode 100644 docs/layouts/pro.vue create mode 100644 docs/pages/pro/components.vue create mode 100644 docs/pages/pro/components/[...slug].vue create mode 100644 docs/pages/pro/index.vue create mode 100644 docs/pages/roadmap.vue diff --git a/docs/.env.example b/docs/.env.example index b0342bcce9..e67f30731c 100644 --- a/docs/.env.example +++ b/docs/.env.example @@ -4,3 +4,5 @@ NUXT_UI_PRO_PATH= NUXT_UI_PRO_TOKEN= # Used when pre-rendering the docs for dynamic OG images NUXT_PUBLIC_SITE_URL= +# Used to fetch `nuxt/ui-pro` docs content +GITHUB_TOKEN= diff --git a/docs/components/Header.vue b/docs/components/Header.vue index d481b8729e..c9bf8e5517 100644 --- a/docs/components/Header.vue +++ b/docs/components/Header.vue @@ -56,14 +56,30 @@ const links = computed(() => { icon: 'i-heroicons-square-3-stack-3d', to: '/getting-started/examples' }, { - label: 'Playground', - icon: 'i-simple-icons-stackblitz', - to: '/playground' + label: 'Pro', + icon: 'i-heroicons-square-3-stack-3d', + to: '/pro' }, { - label: 'Releases', - icon: 'i-heroicons-rocket-launch-solid', - to: 'https://github.com/nuxt/ui/releases', - target: '_blank' + label: 'Community', + children: [{ + label: 'Playground', + icon: 'i-simple-icons-stackblitz', + to: '/playground' + }, { + label: 'Roadmap', + icon: 'i-heroicons-beaker', + to: '/roadmap' + }, { + label: 'Contribution', + icon: 'i-heroicons-globe-alt', + to: 'https://nuxt.com/docs/community/contribution', + target: '_blank' + }, { + label: 'Releases', + icon: 'i-heroicons-rocket-launch', + to: 'https://github.com/nuxt/ui/releases', + target: '_blank' + }] }] }) diff --git a/docs/components/content/ComponentPlaceholder.vue b/docs/components/content/ComponentPlaceholder.vue new file mode 100644 index 0000000000..d7215664d0 --- /dev/null +++ b/docs/components/content/ComponentPlaceholder.vue @@ -0,0 +1,70 @@ + + + diff --git a/docs/components/content/VoltaEmbed.vue b/docs/components/content/VoltaEmbed.vue deleted file mode 100644 index 986cc982ee..0000000000 --- a/docs/components/content/VoltaEmbed.vue +++ /dev/null @@ -1,17 +0,0 @@ -