@vkuttyp/docus 5.4.7 → 5.4.8

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.
@@ -80,7 +80,7 @@ const editLink = computed(() => {
80
80
  >
81
81
  <template #links>
82
82
  <UButton
83
- v-for="(link, index) in (page as DocsCollectionItem).links"
83
+ v-for="(link, index) in ((page as any).links || [])"
84
84
  :key="index"
85
85
  size="sm"
86
86
  v-bind="link"
package/content.config.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import type { DefinedCollection } from '@nuxt/content'
2
- import { defineContentConfig, defineCollection, z } from '@nuxt/content'
2
+ import { defineContentConfig, defineCollection } from '@nuxt/content'
3
3
  import { useNuxt } from '@nuxt/kit'
4
4
  import { joinURL } from 'ufo'
5
5
 
@@ -7,14 +7,15 @@ const { options } = useNuxt()
7
7
  const cwd = joinURL(options.rootDir, 'content')
8
8
  const locales = options.i18n?.locales
9
9
 
10
- const createDocsSchema = () => z.object({
11
- links: z.array(z.object({
12
- label: z.string(),
13
- icon: z.string(),
14
- to: z.string(),
15
- target: z.string().optional(),
16
- })).optional(),
17
- })
10
+ // TODO: Re-enable when Nuxt Content zod resolution issue is fixed
11
+ // const createDocsSchema = () => z.object({
12
+ // links: z.array(z.object({
13
+ // label: z.string(),
14
+ // icon: z.string(),
15
+ // to: z.string(),
16
+ // target: z.string().optional(),
17
+ // })).optional(),
18
+ // })
18
19
 
19
20
  let collections: Record<string, DefinedCollection>
20
21
 
@@ -39,7 +40,7 @@ if (locales && Array.isArray(locales)) {
39
40
  prefix: `/${code}`,
40
41
  exclude: [`${code}/index.md`],
41
42
  },
42
- schema: createDocsSchema(),
43
+ // schema: createDocsSchema(), // Temporarily disabled
43
44
  })
44
45
  }
45
46
  }
@@ -59,7 +60,7 @@ else {
59
60
  include: '**',
60
61
  exclude: ['index.md'],
61
62
  },
62
- schema: createDocsSchema(),
63
+ // schema: createDocsSchema(), // Temporarily disabled
63
64
  }),
64
65
  }
65
66
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@vkuttyp/docus",
3
3
  "description": "Nuxt layer for Docus documentation theme",
4
- "version": "5.4.7",
4
+ "version": "5.4.8",
5
5
  "type": "module",
6
6
  "main": "./nuxt.config.ts",
7
7
  "repository": {
@@ -45,8 +45,8 @@
45
45
  "scule": "^1.3.0",
46
46
  "tailwindcss": "^4.1.18",
47
47
  "ufo": "^1.6.1",
48
- "zod": "^4.2.1",
49
- "zod-to-json-schema": "^3.25.0"
48
+ "zod": "^4.0.0",
49
+ "zod-to-json-schema": "^3.23.3"
50
50
  },
51
51
  "peerDependencies": {
52
52
  "better-sqlite3": "12.x",