@movk/nuxt-docs 1.17.5 → 1.17.7

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/modules/module.ts CHANGED
@@ -6,6 +6,7 @@ import { getPackageJsonMetadata, inferSiteURL } from '../utils/meta'
6
6
  import { createComponentMetaExcludeFilters } from '../utils/component-meta'
7
7
  import { startCase, kebabCase } from '@movk/core'
8
8
  import { updateSiteConfig } from 'nuxt-site-config/kit'
9
+ import type { SiteConfigInput } from 'nuxt-site-config/kit'
9
10
 
10
11
  export interface ModuleOptions {
11
12
  /**
@@ -116,7 +117,8 @@ export default defineNuxtModule<ModuleOptions>({
116
117
  name: kebabCase(meta.name || gitInfo?.name || ''),
117
118
  debug: false
118
119
  })
119
- updateSiteConfig(site)
120
+
121
+ updateSiteConfig(site as SiteConfigInput)
120
122
 
121
123
  const siteName = (typeof nuxt.options.site === 'object' && nuxt.options.site?.name) || meta.name || gitInfo?.name || ''
122
124
 
package/nuxt.config.ts CHANGED
@@ -167,12 +167,14 @@ export default defineNuxtConfig({
167
167
  ]
168
168
  },
169
169
 
170
+ // for users in China who may have trouble loading Google Fonts.
170
171
  fonts: {
172
+ provider: 'alibaba-puhuiti',
171
173
  providers: {
172
- 'alibaba-puhuiti': createAlibabaPuHuiTiProvider('https://cdn.mhaibaraai.cn/fonts')
174
+ 'alibaba-puhuiti': createAlibabaPuHuiTiProvider('https://cdn.mhaibaraai.cn/fonts', 'Alibaba PuHuiTi')
173
175
  },
174
176
  families: [
175
- { name: 'Alibaba PuHuiTi', provider: 'alibaba-puhuiti', global: true }
177
+ { name: 'Alibaba PuHuiTi', global: true }
176
178
  ]
177
179
  },
178
180
 
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@movk/nuxt-docs",
3
3
  "type": "module",
4
- "version": "1.17.5",
4
+ "version": "1.17.7",
5
5
  "private": false,
6
6
  "description": "Modern Nuxt 4 documentation theme with auto-generated component docs, AI chat assistant, MCP server, and complete developer experience optimization.",
7
7
  "author": "YiXuan <mhaibaraai@gmail.com>",
@@ -39,9 +39,9 @@
39
39
  "README.md"
40
40
  ],
41
41
  "dependencies": {
42
- "@ai-sdk/gateway": "^3.0.93",
42
+ "@ai-sdk/gateway": "^3.0.95",
43
43
  "@ai-sdk/mcp": "^1.0.35",
44
- "@ai-sdk/vue": "^3.0.152",
44
+ "@ai-sdk/vue": "^3.0.156",
45
45
  "@iconify-json/lucide": "^1.2.101",
46
46
  "@iconify-json/simple-icons": "^1.2.77",
47
47
  "@iconify-json/vscode-icons": "^1.2.45",
@@ -63,19 +63,19 @@
63
63
  "@takumi-rs/wasm": "^0.73.1",
64
64
  "@vueuse/core": "^14.2.1",
65
65
  "@vueuse/nuxt": "^14.2.1",
66
- "ai": "^6.0.152",
66
+ "ai": "^6.0.156",
67
67
  "defu": "^6.1.7",
68
68
  "exsolve": "^1.0.8",
69
69
  "git-url-parse": "^16.1.0",
70
70
  "motion-v": "^2.2.0",
71
71
  "nuxt-component-meta": "^0.17.2",
72
72
  "nuxt-llms": "^0.2.0",
73
- "nuxt-og-image": "^6.3.3",
74
- "nuxt-site-config": "^4.0.7",
73
+ "nuxt-og-image": "^6.3.6",
74
+ "nuxt-site-config": "^4.0.8",
75
75
  "ohash": "^2.0.11",
76
76
  "pathe": "^2.0.3",
77
77
  "pkg-types": "^2.3.0",
78
- "prettier": "^3.8.1",
78
+ "prettier": "^3.8.2",
79
79
  "scule": "^1.3.0",
80
80
  "shiki-stream": "^0.1.4",
81
81
  "shiki-transformer-color-highlight": "^1.1.0",
@@ -13,12 +13,10 @@ const WEIGHT_MAP: Record<string, string> = {
13
13
  950: 'Black'
14
14
  }
15
15
 
16
- const FONT_FAMILY = 'Alibaba PuHuiTi'
17
-
18
- export function createAlibabaPuHuiTiProvider(cdnBase: string) {
16
+ export function createAlibabaPuHuiTiProvider(cdnBase: string, name: string) {
19
17
  return defineFontProvider('alibaba-puhuiti', () => ({
20
18
  async resolveFont(fontFamily, options) {
21
- if (fontFamily !== FONT_FAMILY) return undefined
19
+ if (fontFamily !== name) return undefined
22
20
 
23
21
  const weights = options.weights?.length
24
22
  ? options.weights.filter(w => WEIGHT_MAP[w])
@@ -52,7 +52,7 @@ export function createComponentMetaExcludeFilters(
52
52
  resolve('../app/components/content/ComponentProps.vue'),
53
53
  resolve('../app/components/content/ComponentSlots.vue'),
54
54
  resolve('../app/components/content/PageLastCommit.vue'),
55
- resolve('./runtime/components/prose/Mermaid.vue')
55
+ resolve('./components/prose/Mermaid.vue')
56
56
  ]
57
57
 
58
58
  const userComponentPaths = [