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 +0 -2
- package/app/assets/main.css +1 -1
- package/app/components/AppFooterNotes.vue +2 -7
- package/app/components/AppFooterNotesBase.vue +1 -2
- package/app/composables/useSponsors.ts +1 -1
- package/app/nuxt.config.ts +1 -4
- package/app/pages/index.vue +8 -12
- package/cli/setup.mjs +1 -1
- package/package.json +22 -22
package/app/app.config.ts
CHANGED
package/app/assets/main.css
CHANGED
|
@@ -12,12 +12,7 @@ const appConfig = useAppConfig()
|
|
|
12
12
|
>{{ appConfig.site.name }}
|
|
13
13
|
</NuxtLink>
|
|
14
14
|
</span>
|
|
15
|
-
<span class="text-muted">{{ appConfig.docs.shortDescription.replace(/\.$/, '') }}</span
|
|
16
|
-
|
|
17
|
-
· 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
|
+
<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
|
-
>.
|
|
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
|
|
13
|
+
const sponsorsAPI = appConfig.docs.sponsors?.api
|
|
14
14
|
if (sponsorsAPI) {
|
|
15
15
|
return (await $fetch<Sponsors>(sponsorsAPI)) || undefined
|
|
16
16
|
}
|
package/app/nuxt.config.ts
CHANGED
|
@@ -16,7 +16,7 @@ export default defineNuxtConfig({
|
|
|
16
16
|
name: 'undocs',
|
|
17
17
|
},
|
|
18
18
|
ssr,
|
|
19
|
-
modules: ['@nuxt/ui
|
|
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,
|
package/app/pages/index.vue
CHANGED
|
@@ -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-
|
|
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
|
-
<
|
|
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
|
-
<
|
|
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
|
-
</
|
|
229
|
-
<
|
|
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
|
-
<
|
|
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
|
-
</
|
|
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
|
|
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.
|
|
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.
|
|
35
|
-
"@iconify-json/simple-icons": "^1.2.
|
|
36
|
-
"@nuxt/content": "^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
|
|
39
|
-
"@nuxtjs/plausible": "^
|
|
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.
|
|
42
|
-
"c12": "^3.
|
|
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.
|
|
49
|
-
"nitropack": "^2.12.
|
|
50
|
-
"nuxi": "^3.
|
|
51
|
-
"nuxt": "^4.
|
|
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.
|
|
54
|
+
"pkg-types": "^2.3.0",
|
|
55
55
|
"scule": "^1.3.0",
|
|
56
|
-
"shiki": "^3.
|
|
57
|
-
"tailwindcss": "^4.1.
|
|
56
|
+
"shiki": "^3.12.2",
|
|
57
|
+
"tailwindcss": "^4.1.13",
|
|
58
58
|
"unctx": "^2.4.1",
|
|
59
|
-
"unstorage": "^1.
|
|
60
|
-
"vue": "^3.5.
|
|
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.
|
|
64
|
+
"@nuxt/eslint-config": "^1.9.0",
|
|
65
65
|
"@nuxt/image": "^1.11.0",
|
|
66
|
-
"@types/node": "^24.2
|
|
66
|
+
"@types/node": "^24.5.2",
|
|
67
67
|
"changelogen": "^0.6.2",
|
|
68
|
-
"eslint": "^9.
|
|
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.
|
|
73
|
+
"vue-tsc": "^3.0.7"
|
|
74
74
|
},
|
|
75
|
-
"packageManager": "pnpm@10.
|
|
75
|
+
"packageManager": "pnpm@10.17.0"
|
|
76
76
|
}
|