chore(deps): update @nuxt/content

This commit is contained in:
Benjamin Canac
2025-04-24 21:35:59 +02:00
parent 8ab1f75e47
commit fb6cf708a6
3 changed files with 127 additions and 137 deletions

View File

@@ -8,7 +8,7 @@
"@iconify-json/lucide": "^1.2.38",
"@iconify-json/simple-icons": "^1.2.33",
"@iconify-json/vscode-icons": "^1.2.19",
"@nuxt/content": "https://pkg.pr.new/@nuxt/content@754e480",
"@nuxt/content": "^3.5.1",
"@nuxt/image": "^1.10.0",
"@nuxt/ui": "latest",
"@nuxt/ui-pro": "^3.1.0",

View File

@@ -1,6 +1,8 @@
import json5 from 'json5'
import { camelCase, kebabCase } from 'scule'
import { visit } from '@nuxt/content/runtime'
import type { H3Event } from 'h3'
import type { PageCollectionItemBase } from '@nuxt/content'
import * as theme from '../../.nuxt/ui'
import * as themePro from '../../.nuxt/ui-pro'
import meta from '#nuxt-component-meta'
@@ -278,7 +280,7 @@ const generateComponentCode = ({
}
export default defineNitroPlugin((nitroApp) => {
nitroApp.hooks.hook('content:llms:generate:document' as any, async (doc: Document) => {
nitroApp.hooks.hook('content:llms:generate:document', async (_: H3Event, doc: PageCollectionItemBase) => {
const componentName = camelCase(doc.title)
visitAndReplace(doc, 'component-theme', (node) => {