docus 5.1.0 → 5.2.1
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.vue +2 -0
- package/app/layouts/default.vue +1 -26
- package/app/layouts/docs.vue +15 -0
- package/app/pages/[[lang]]/[...slug].vue +4 -0
- package/i18n/locales/it.json +5 -1
- package/package.json +9 -9
package/app/app.vue
CHANGED
|
@@ -61,9 +61,11 @@ provide('navigation', navigation)
|
|
|
61
61
|
<UApp :locale="nuxtUiLocales[locale as keyof typeof nuxtUiLocales]">
|
|
62
62
|
<NuxtLoadingIndicator color="var(--ui-primary)" />
|
|
63
63
|
|
|
64
|
+
<AppHeader v-if="$route.meta.header !== false" />
|
|
64
65
|
<NuxtLayout>
|
|
65
66
|
<NuxtPage />
|
|
66
67
|
</NuxtLayout>
|
|
68
|
+
<AppFooter v-if="$route.meta.footer !== false" />
|
|
67
69
|
|
|
68
70
|
<ClientOnly>
|
|
69
71
|
<LazyUContentSearch
|
package/app/layouts/default.vue
CHANGED
|
@@ -1,30 +1,5 @@
|
|
|
1
|
-
<script setup lang="ts">
|
|
2
|
-
import type { ContentNavigationItem } from '@nuxt/content'
|
|
3
|
-
import { flattenNavigation } from '../utils/navigation'
|
|
4
|
-
|
|
5
|
-
const route = useRoute()
|
|
6
|
-
const docsNavigation = inject<Ref<ContentNavigationItem[]>>('navigation')
|
|
7
|
-
const docsLink = computed(() => flattenNavigation(docsNavigation?.value))
|
|
8
|
-
const isDocs = computed(() => docsLink.value.findIndex(item => item.path === route.path) !== -1)
|
|
9
|
-
</script>
|
|
10
|
-
|
|
11
1
|
<template>
|
|
12
|
-
<AppHeader />
|
|
13
2
|
<UMain>
|
|
14
|
-
<slot
|
|
15
|
-
<UContainer v-else>
|
|
16
|
-
<UPage>
|
|
17
|
-
<template #left>
|
|
18
|
-
<UPageAside>
|
|
19
|
-
<DocsAsideLeftTop />
|
|
20
|
-
|
|
21
|
-
<DocsAsideLeftBody />
|
|
22
|
-
</UPageAside>
|
|
23
|
-
</template>
|
|
24
|
-
|
|
25
|
-
<slot />
|
|
26
|
-
</UPage>
|
|
27
|
-
</UContainer>
|
|
3
|
+
<slot />
|
|
28
4
|
</UMain>
|
|
29
|
-
<AppFooter />
|
|
30
5
|
</template>
|
|
@@ -4,6 +4,10 @@ import type { ContentNavigationItem, Collections, DocsCollectionItem } from '@nu
|
|
|
4
4
|
import { findPageHeadline } from '@nuxt/content/utils'
|
|
5
5
|
import { addPrerenderPath } from '../../utils/prerender'
|
|
6
6
|
|
|
7
|
+
definePageMeta({
|
|
8
|
+
layout: 'docs',
|
|
9
|
+
})
|
|
10
|
+
|
|
7
11
|
const route = useRoute()
|
|
8
12
|
const { locale, isEnabled, t } = useDocusI18n()
|
|
9
13
|
const appConfig = useAppConfig()
|
package/i18n/locales/it.json
CHANGED
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "docus",
|
|
3
3
|
"description": "Nuxt layer for Docus documentation theme",
|
|
4
|
-
"version": "5.1
|
|
4
|
+
"version": "5.2.1",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./nuxt.config.ts",
|
|
7
7
|
"repository": {
|
|
@@ -22,15 +22,15 @@
|
|
|
22
22
|
"README.md"
|
|
23
23
|
],
|
|
24
24
|
"dependencies": {
|
|
25
|
-
"@iconify-json/lucide": "^1.2.
|
|
26
|
-
"@iconify-json/simple-icons": "^1.2.
|
|
27
|
-
"@iconify-json/vscode-icons": "^1.2.
|
|
25
|
+
"@iconify-json/lucide": "^1.2.69",
|
|
26
|
+
"@iconify-json/simple-icons": "^1.2.54",
|
|
27
|
+
"@iconify-json/vscode-icons": "^1.2.32",
|
|
28
28
|
"@nuxt/content": "^3.7.1",
|
|
29
29
|
"@nuxt/image": "^1.11.0",
|
|
30
|
-
"@nuxt/kit": "^4.1.
|
|
31
|
-
"@nuxt/ui": "^4.0.
|
|
32
|
-
"@nuxtjs/i18n": "^10.1.
|
|
33
|
-
"@nuxtjs/mdc": "^0.
|
|
30
|
+
"@nuxt/kit": "^4.1.3",
|
|
31
|
+
"@nuxt/ui": "^4.0.1",
|
|
32
|
+
"@nuxtjs/i18n": "^10.1.1",
|
|
33
|
+
"@nuxtjs/mdc": "^0.18.0",
|
|
34
34
|
"@nuxtjs/robots": "^5.5.5",
|
|
35
35
|
"@vueuse/core": "^13.9.0",
|
|
36
36
|
"defu": "^6.1.4",
|
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
"nuxt-og-image": "^5.1.11",
|
|
43
43
|
"pkg-types": "^2.3.0",
|
|
44
44
|
"scule": "^1.3.0",
|
|
45
|
-
"tailwindcss": "^4.1.
|
|
45
|
+
"tailwindcss": "^4.1.14",
|
|
46
46
|
"ufo": "^1.6.1"
|
|
47
47
|
},
|
|
48
48
|
"peerDependencies": {
|