@vkuttyp/docus 5.4.8 → 5.5.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.
@@ -80,7 +80,7 @@ const editLink = computed(() => {
80
80
  >
81
81
  <template #links>
82
82
  <UButton
83
- v-for="(link, index) in ((page as any).links || [])"
83
+ v-for="(link, index) in (page as DocsCollectionItem).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 } from '@nuxt/content'
2
+ import { defineContentConfig, defineCollection, z } from '@nuxt/content'
3
3
  import { useNuxt } from '@nuxt/kit'
4
4
  import { joinURL } from 'ufo'
5
5
 
@@ -7,15 +7,14 @@ const { options } = useNuxt()
7
7
  const cwd = joinURL(options.rootDir, 'content')
8
8
  const locales = options.i18n?.locales
9
9
 
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
- // })
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
+ })
19
18
 
20
19
  let collections: Record<string, DefinedCollection>
21
20
 
@@ -40,7 +39,7 @@ if (locales && Array.isArray(locales)) {
40
39
  prefix: `/${code}`,
41
40
  exclude: [`${code}/index.md`],
42
41
  },
43
- // schema: createDocsSchema(), // Temporarily disabled
42
+ schema: createDocsSchema(),
44
43
  })
45
44
  }
46
45
  }
@@ -60,7 +59,7 @@ else {
60
59
  include: '**',
61
60
  exclude: ['index.md'],
62
61
  },
63
- // schema: createDocsSchema(), // Temporarily disabled
62
+ schema: createDocsSchema(),
64
63
  }),
65
64
  }
66
65
  }
package/nuxt.config.ts CHANGED
@@ -21,7 +21,7 @@ export default defineNuxtConfig({
21
21
  config.optimizeDeps.include ||= []
22
22
  config.optimizeDeps.include.push('@nuxt/content > slugify')
23
23
  config.optimizeDeps.include = config.optimizeDeps.include
24
- .map(id => id.replace(/^@nuxt\/content > /, 'docus > @nuxt/content > '))
24
+ .map(id => id.replace(/^@nuxt\/content > /, '@vkuttyp/docus > @nuxt/content > '))
25
25
  })
26
26
  },
27
27
  ],
package/package.json CHANGED
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@vkuttyp/docus",
3
3
  "description": "Nuxt layer for Docus documentation theme",
4
- "version": "5.4.8",
4
+ "version": "5.5.1",
5
5
  "type": "module",
6
6
  "main": "./nuxt.config.ts",
7
7
  "repository": {
8
8
  "type": "git",
9
- "url": "git+https://github.com/nuxt-content/docus.git"
9
+ "url": "git+https://github.com/vkuttyp/docus.git"
10
10
  },
11
11
  "private": false,
12
12
  "license": "MIT",
@@ -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.0.0",
49
- "zod-to-json-schema": "^3.23.3"
48
+ "zod": "^4.2.1",
49
+ "zod-to-json-schema": "^3.25.0"
50
50
  },
51
51
  "peerDependencies": {
52
52
  "better-sqlite3": "12.x",