Skip to content

Commit fb6cf70

Browse files
committed
chore(deps): update @nuxt/content
1 parent 8ab1f75 commit fb6cf70

File tree

3 files changed

+127
-137
lines changed

3 files changed

+127
-137
lines changed

docs/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
"@iconify-json/lucide": "^1.2.38",
99
"@iconify-json/simple-icons": "^1.2.33",
1010
"@iconify-json/vscode-icons": "^1.2.19",
11-
"@nuxt/content": "https://pkg.pr.new/@nuxt/content@754e480",
11+
"@nuxt/content": "^3.5.1",
1212
"@nuxt/image": "^1.10.0",
1313
"@nuxt/ui": "latest",
1414
"@nuxt/ui-pro": "^3.1.0",

docs/server/plugins/llms.ts

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
import json5 from 'json5'
22
import { camelCase, kebabCase } from 'scule'
33
import { visit } from '@nuxt/content/runtime'
4+
import type { H3Event } from 'h3'
5+
import type { PageCollectionItemBase } from '@nuxt/content'
46
import * as theme from '../../.nuxt/ui'
57
import * as themePro from '../../.nuxt/ui-pro'
68
import meta from '#nuxt-component-meta'
@@ -278,7 +280,7 @@ const generateComponentCode = ({
278280
}
279281

280282
export default defineNitroPlugin((nitroApp) => {
281-
nitroApp.hooks.hook('content:llms:generate:document' as any, async (doc: Document) => {
283+
nitroApp.hooks.hook('content:llms:generate:document', async (_: H3Event, doc: PageCollectionItemBase) => {
282284
const componentName = camelCase(doc.title)
283285

284286
visitAndReplace(doc, 'component-theme', (node) => {

0 commit comments

Comments
 (0)