undocs 0.4.0 → 0.4.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/app/app.config.ts CHANGED
@@ -11,8 +11,6 @@ export default defineAppConfig({
11
11
  important: 'violet',
12
12
  neutral: 'neutral',
13
13
  },
14
- },
15
- uiPro: {
16
14
  prose: {
17
15
  codeIcon: {
18
16
  '.config': 'vscode-icons:file-type-config',
@@ -1,5 +1,5 @@
1
1
  @import 'tailwindcss';
2
- @import '@nuxt/ui-pro';
2
+ @import '@nuxt/ui';
3
3
 
4
4
  @theme static {
5
5
  --font-sans: 'Inter', sans-serif;
@@ -12,12 +12,7 @@ const appConfig = useAppConfig()
12
12
  >{{ appConfig.site.name }}
13
13
  </NuxtLink>
14
14
  </span>
15
- &nbsp;<span class="text-muted">{{ appConfig.docs.shortDescription.replace(/\.$/, '') }}</span>
16
-
17
- &middot; Generated with
18
- <NuxtLink class="font-medium hover:text-primary" to="https://undocs.unjs.io" target="_blank">UnDocs </NuxtLink>
19
- and
20
- <NuxtLink class="font-medium hover:text-primary" to="https://ui.nuxt.com/pro" target="_blank">Nuxt UI Pro</NuxtLink>
21
- .
15
+ &nbsp;<span class="text-muted">{{ appConfig.docs.shortDescription.replace(/\.$/, '') }}</span
16
+ >.
22
17
  </p>
23
18
  </template>
@@ -5,7 +5,6 @@ const appConfig = useAppConfig()
5
5
  <template>
6
6
  <p class="text-sm text-gray-500 dark:text-gray-400">
7
7
  <span class="text-gray-900 dark:text-white">{{ appConfig.site.name }}</span
8
- >. Website made with
9
- <NuxtLink class="text-gray-900 dark:text-white" to="https://ui.nuxt.com/pro" target="_blank">Nuxt UI Pro</NuxtLink>.
8
+ >.
10
9
  </p>
11
10
  </template>
@@ -10,7 +10,7 @@ export interface Sponsors {
10
10
 
11
11
  export async function useSponsors(): Promise<Sponsors | undefined> {
12
12
  const appConfig = useAppConfig()
13
- const sponsorsAPI = appConfig.docs.sponsors.api
13
+ const sponsorsAPI = appConfig.docs.sponsors?.api
14
14
  if (sponsorsAPI) {
15
15
  return (await $fetch<Sponsors>(sponsorsAPI)) || undefined
16
16
  }
@@ -16,7 +16,7 @@ export default defineNuxtConfig({
16
16
  name: 'undocs',
17
17
  },
18
18
  ssr,
19
- modules: ['@nuxt/ui-pro', '@nuxt/content', isProd && '@nuxtjs/plausible'],
19
+ modules: ['@nuxt/ui', '@nuxt/content', isProd && '@nuxtjs/plausible'],
20
20
  css: [resolve('./assets/main.css')],
21
21
  ui: {
22
22
  theme: {
@@ -66,9 +66,6 @@ export default defineNuxtConfig({
66
66
  devtools: {
67
67
  enabled: dev,
68
68
  },
69
- uiPro: {
70
- license: process.env.NUXT_UI_PRO_LICENSE || 'oss',
71
- },
72
69
  typescript: {
73
70
  strict: false,
74
71
  includeWorkspace: true,
@@ -192,11 +192,11 @@ const { data: contributors } = await useAsyncData(() => useContributors())
192
192
  </UPageSection>
193
193
 
194
194
  <UPageSection v-if="sponsors?.sponsors.length" title="Sponsors">
195
- <div id="sponsors" class="flex flex-col items-center">
195
+ <div id="sponsors" class="flex flex-col items-center gap-8">
196
196
  <div
197
197
  v-for="(tier, i) of sponsors.sponsors.slice(0, 2)"
198
198
  :key="i"
199
- class="flex flex-wrap justify-center gap-4 max-w-4xl mb-8 mt-8"
199
+ class="flex flex-wrap justify-center gap-4 max-w-4xl mb-4"
200
200
  >
201
201
  <div v-for="s in tier" :key="s.name" class="flex items-center gap-2 max-w-[300px]">
202
202
  <a
@@ -219,20 +219,16 @@ const { data: contributors } = await useAsyncData(() => useContributors())
219
219
  </a>
220
220
  </div>
221
221
  </div>
222
- <UAvatarGroup class="flex flex-wrap justify-center gap-4">
222
+ <div class="flex flex-wrap justify-center gap-4">
223
223
  <UTooltip v-for="s in sponsors.sponsors[2]" :key="s.name" :text="s.name" placement="top">
224
- <a :href="s.website" target="_blank">
225
- <UAvatar :alt="s.name" :src="s.image" size="lg" />
226
- </a>
224
+ <UAvatar :alt="s.name" :src="s.image" size="2xl" :to="s.website" target="_blank" />
227
225
  </UTooltip>
228
- </UAvatarGroup>
229
- <UAvatarGroup class="flex flex-wrap justify-center gap-4">
226
+ </div>
227
+ <div class="flex flex-wrap justify-center gap-4">
230
228
  <UTooltip v-for="s in sponsors.sponsors[3]" :key="s.name" :text="s.name">
231
- <a :href="s.website" target="_blank">
232
- <UAvatar :alt="s.name" :src="s.image" style="opacity: 0.5" />
233
- </a>
229
+ <UAvatar :alt="s.name" :src="s.image" :to="s.website" target="_blank" />
234
230
  </UTooltip>
235
- </UAvatarGroup>
231
+ </div>
236
232
  </div>
237
233
  <div class="text-center">
238
234
  <UButton
package/cli/setup.mjs CHANGED
@@ -85,7 +85,7 @@ export async function setupDocs(docsDir, opts = {}) {
85
85
  srcDir: docsSrcDir,
86
86
  extends: [...(opts.extends || []), appDir],
87
87
  modulesDir: [resolve(pkgDir, 'node_modules'), resolve(docsDir, 'node_modules')],
88
- modules: ['@nuxt/ui-pro', fixLayers, docsconfig.buildCache ? 'nuxt-build-cache' : undefined].filter(Boolean),
88
+ modules: ['@nuxt/ui', fixLayers, docsconfig.buildCache ? 'nuxt-build-cache' : undefined].filter(Boolean),
89
89
  // @ts-ignore
90
90
  docs: docsconfig,
91
91
  // @ts-ignore
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "undocs",
3
- "version": "0.4.0",
3
+ "version": "0.4.2",
4
4
  "repository": "unjs/undocs",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -31,46 +31,46 @@
31
31
  },
32
32
  "dependencies": {
33
33
  "@headlessui/vue": "^1.7.23",
34
- "@iconify-json/logos": "^1.2.5",
35
- "@iconify-json/simple-icons": "^1.2.46",
36
- "@nuxt/content": "^3.6.3",
34
+ "@iconify-json/logos": "^1.2.9",
35
+ "@iconify-json/simple-icons": "^1.2.52",
36
+ "@nuxt/content": "^3.7.1",
37
37
  "@nuxt/fonts": "^0.11.4",
38
- "@nuxt/ui-pro": "^3.3.0",
39
- "@nuxtjs/plausible": "^1.2.0",
38
+ "@nuxt/ui": "4.0.0-alpha.2",
39
+ "@nuxtjs/plausible": "^2.0.1",
40
40
  "@resvg/resvg-wasm": "^2.6.2",
41
- "automd": "^0.4.0",
42
- "c12": "^3.2.0",
41
+ "automd": "^0.4.2",
42
+ "c12": "^3.3.0",
43
43
  "citty": "^0.1.6",
44
44
  "consola": "^3.4.2",
45
45
  "defu": "^6.1.4",
46
46
  "is-buffer": "^2.0.5",
47
47
  "md4w": "^0.2.7",
48
- "mermaid": "^11.9.0",
49
- "nitropack": "^2.12.4",
50
- "nuxi": "^3.27.0",
51
- "nuxt": "^4.0.3",
48
+ "mermaid": "^11.12.0",
49
+ "nitropack": "^2.12.6",
50
+ "nuxi": "^3.28.0",
51
+ "nuxt": "^4.1.2",
52
52
  "nuxt-build-cache": "^0.1.1",
53
53
  "nuxt-llms": "^0.1.3",
54
- "pkg-types": "^2.2.0",
54
+ "pkg-types": "^2.3.0",
55
55
  "scule": "^1.3.0",
56
- "shiki": "^3.9.2",
57
- "tailwindcss": "^4.1.11",
56
+ "shiki": "^3.12.2",
57
+ "tailwindcss": "^4.1.13",
58
58
  "unctx": "^2.4.1",
59
- "unstorage": "^1.16.1",
60
- "vue": "^3.5.18",
59
+ "unstorage": "^1.17.1",
60
+ "vue": "^3.5.21",
61
61
  "vue-router": "^4.5.1"
62
62
  },
63
63
  "devDependencies": {
64
- "@nuxt/eslint-config": "^1.8.0",
64
+ "@nuxt/eslint-config": "^1.9.0",
65
65
  "@nuxt/image": "^1.11.0",
66
- "@types/node": "^24.2.0",
66
+ "@types/node": "^24.5.2",
67
67
  "changelogen": "^0.6.2",
68
- "eslint": "^9.32.0",
68
+ "eslint": "^9.35.0",
69
69
  "eslint-config-unjs": "^0.5.0",
70
70
  "jiti": "^2.5.1",
71
71
  "prettier": "^3.6.2",
72
72
  "typescript": "^5.9.2",
73
- "vue-tsc": "^3.0.5"
73
+ "vue-tsc": "^3.0.7"
74
74
  },
75
- "packageManager": "pnpm@10.14.0"
75
+ "packageManager": "pnpm@10.17.0"
76
76
  }