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 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
@@ -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 v-if="!isDocs" />
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>
@@ -0,0 +1,15 @@
1
+ <template>
2
+ <UMain>
3
+ <UContainer>
4
+ <UPage>
5
+ <template #left>
6
+ <UPageAside>
7
+ <DocsAsideLeftTop />
8
+ <DocsAsideLeftBody />
9
+ </UPageAside>
10
+ </template>
11
+ <slot />
12
+ </UPage>
13
+ </UContainer>
14
+ </UMain>
15
+ </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()
@@ -1,6 +1,10 @@
1
1
  {
2
2
  "common": {
3
- "or": "o"
3
+ "or": "o",
4
+ "error": {
5
+ "title": "Pagina non trovata",
6
+ "description": "Ci scusiamo, ma sembra che questa pagina non sia disponibile."
7
+ }
4
8
  },
5
9
  "docs": {
6
10
  "copy": {
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.0",
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.68",
26
- "@iconify-json/simple-icons": "^1.2.53",
27
- "@iconify-json/vscode-icons": "^1.2.30",
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.2",
31
- "@nuxt/ui": "^4.0.0",
32
- "@nuxtjs/i18n": "^10.1.0",
33
- "@nuxtjs/mdc": "^0.17.4",
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.13",
45
+ "tailwindcss": "^4.1.14",
46
46
  "ufo": "^1.6.1"
47
47
  },
48
48
  "peerDependencies": {