From 844b3185e9b26ec76ade74f43fb9ca1ba06d3bbe Mon Sep 17 00:00:00 2001 From: Benjamin Canac Date: Thu, 2 Nov 2023 16:44:44 +0100 Subject: [PATCH 01/14] docs: integrate `@nuxt/ui-pro` (#739) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Pooya Parsa Co-authored-by: Florent Delerue Co-authored-by: Sébastien Chopin --- .github/workflows/ci-dev.yml | 3 + .github/workflows/ci.yml | 3 + .vscode/settings.json | 3 + docs/.env.example | 8 +- docs/app.vue | 67 ++- docs/components/Footer.vue | 20 +- docs/components/Header.vue | 45 +- docs/components/content/ComponentCard.vue | 24 +- docs/components/content/ComponentExample.vue | 32 +- docs/components/content/ComponentProps.vue | 14 +- .../content/ComponentPropsField.vue | 9 +- docs/components/content/ComponentSlots.vue | 23 +- docs/components/content/Placeholder.vue | 2 +- docs/components/content/VoltaEmbed.vue | 17 - .../CommandPaletteExampleThemeAlgolia.vue} | 0 .../CommandPaletteExampleThemeRaycast.vue} | 0 .../PaginationExampleThemeRounded.vue} | 0 .../content/examples/TableExampleAdvanced.vue | 4 +- ...erticalNavigationExampleThemeTailwind.vue} | 0 .../1.getting-started/2.installation.md | 9 + docs/content/1.getting-started/5.examples.md | 12 +- docs/content/1.getting-started/7.roadmap.md | 7 - docs/content/2.elements/11.meter.md | 4 +- docs/content/2.elements/3.avatar.md | 6 +- docs/content/2.elements/5.button.md | 6 +- docs/content/3.forms/6.radio-group.md | 12 +- docs/content/4.data/1.table.md | 15 - .../content/5.navigation/2.command-palette.md | 1 - docs/content/index.yml | 2 +- docs/error.vue | 52 ++- docs/layouts/docs.vue | 4 +- docs/modules/content-examples-code.ts | 6 +- docs/nuxt.config.ts | 43 +- docs/package.json | 12 +- docs/pages/[...slug].vue | 3 +- docs/pages/examples/[...slug].vue | 11 + docs/pages/index.vue | 33 +- docs/pages/playground.vue | 2 +- docs/pages/pro.vue | 91 ---- docs/pages/roadmap.vue | 31 ++ docs/utils/pro.ts | 31 -- pnpm-lock.yaml | 436 ++++++++++-------- 42 files changed, 606 insertions(+), 497 deletions(-) create mode 100644 .vscode/settings.json delete mode 100644 docs/components/content/VoltaEmbed.vue rename docs/components/content/{themes/CommandPaletteThemeAlgolia.vue => examples/CommandPaletteExampleThemeAlgolia.vue} (100%) rename docs/components/content/{themes/CommandPaletteThemeRaycast.vue => examples/CommandPaletteExampleThemeRaycast.vue} (100%) rename docs/components/content/{themes/PaginationThemeRounded.vue => examples/PaginationExampleThemeRounded.vue} (100%) rename docs/components/content/{themes/VerticalNavigationThemeTailwind.vue => examples/VerticalNavigationExampleThemeTailwind.vue} (100%) delete mode 100644 docs/content/1.getting-started/7.roadmap.md create mode 100644 docs/pages/examples/[...slug].vue delete mode 100644 docs/pages/pro.vue create mode 100644 docs/pages/roadmap.vue delete mode 100644 docs/utils/pro.ts diff --git a/.github/workflows/ci-dev.yml b/.github/workflows/ci-dev.yml index 2b5e7c270b..e05f1f704d 100644 --- a/.github/workflows/ci-dev.yml +++ b/.github/workflows/ci-dev.yml @@ -21,6 +21,9 @@ jobs: os: [ubuntu-latest] # macos-latest, windows-latest node: [18] + env: + NUXT_GITHUB_TOKEN: ${{ secrets.NUXT_GITHUB_TOKEN }} + steps: - uses: actions/setup-node@v4 with: diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 357cfa5f75..1de84d185a 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -14,6 +14,9 @@ jobs: os: [ubuntu-latest] # macos-latest, windows-latest node: [18] + env: + NUXT_GITHUB_TOKEN: ${{ secrets.NUXT_GITHUB_TOKEN }} + steps: - uses: actions/setup-node@v4 with: diff --git a/.vscode/settings.json b/.vscode/settings.json new file mode 100644 index 0000000000..50aead7325 --- /dev/null +++ b/.vscode/settings.json @@ -0,0 +1,3 @@ +{ + "prettier.enable": false +} diff --git a/docs/.env.example b/docs/.env.example index b0342bcce9..8856c6ef66 100644 --- a/docs/.env.example +++ b/docs/.env.example @@ -1,6 +1,8 @@ -# To link Nuxt UI Pro in development +# Specify the path of @nuxt/ui-pro locally NUXT_UI_PRO_PATH= -# To use Nuxt UI Pro in production -NUXT_UI_PRO_TOKEN= +# Production token for @nuxt/ui-pro, purchase on https://ui.nuxt.com/pro/purchase +NUXT_UI_PRO_LICENSE= # Used when pre-rendering the docs for dynamic OG images NUXT_PUBLIC_SITE_URL= +# Used to fetch `nuxt/ui-pro` docs content +NUXT_GITHUB_TOKEN= diff --git a/docs/app.vue b/docs/app.vue index 67802987fa..759f07df38 100644 --- a/docs/app.vue +++ b/docs/app.vue @@ -1,16 +1,16 @@