docs-please 0.2.2-beta.0 → 0.2.3
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/nuxt.config.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { createResolver, useNuxt } from '@nuxt/kit'
|
|
1
|
+
import { createResolver, extendViteConfig, useNuxt } from '@nuxt/kit'
|
|
2
2
|
import tailwindcss from '@tailwindcss/vite'
|
|
3
3
|
|
|
4
4
|
const { resolve } = createResolver(import.meta.url)
|
|
@@ -13,9 +13,20 @@ export default defineNuxtConfig({
|
|
|
13
13
|
'@nuxt/image',
|
|
14
14
|
'@nuxt/icon',
|
|
15
15
|
'nuxt-og-image',
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
16
|
+
'@nuxtjs/robots',
|
|
17
|
+
'nuxt-llms',
|
|
18
|
+
() => {
|
|
19
|
+
// Update @nuxt/content optimizeDeps options for layer compatibility
|
|
20
|
+
extendViteConfig((config) => {
|
|
21
|
+
config.optimizeDeps ||= {}
|
|
22
|
+
config.optimizeDeps.include ||= []
|
|
23
|
+
const includes = new Set(config.optimizeDeps.include)
|
|
24
|
+
includes.add('@nuxt/content > slugify')
|
|
25
|
+
config.optimizeDeps.include = Array.from(includes).map(id =>
|
|
26
|
+
id.startsWith('@nuxt/content > ') ? `docs-please > ${id}` : id,
|
|
27
|
+
)
|
|
28
|
+
})
|
|
29
|
+
},
|
|
19
30
|
],
|
|
20
31
|
devtools: { enabled: true },
|
|
21
32
|
css: [resolve('./app/assets/css/main.css')],
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "docs-please",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.2.
|
|
4
|
+
"version": "0.2.3",
|
|
5
5
|
"description": "Nuxt layer for documentation sites using shadcn-vue",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"repository": {
|
|
@@ -80,8 +80,5 @@
|
|
|
80
80
|
"nuxt-llms": "^0.1.3",
|
|
81
81
|
"typescript": "^5.9.3",
|
|
82
82
|
"vue-tsc": "^2.0.0"
|
|
83
|
-
},
|
|
84
|
-
"publishConfig": {
|
|
85
|
-
"tag": "beta"
|
|
86
83
|
}
|
|
87
84
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { withLeadingSlash } from 'ufo'
|
|
2
2
|
import { stringify } from 'minimark/stringify'
|
|
3
|
-
import { queryCollection } from '@nuxt/content/
|
|
3
|
+
import { queryCollection } from '@nuxt/content/server'
|
|
4
4
|
import type { Collections } from '@nuxt/content'
|
|
5
5
|
|
|
6
6
|
export default eventHandler(async (event) => {
|