@movk/nuxt-docs 1.17.5 → 1.17.6
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
|
@@ -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',
|
|
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.
|
|
4
|
+
"version": "1.17.6",
|
|
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>",
|
|
@@ -13,12 +13,10 @@ const WEIGHT_MAP: Record<string, string> = {
|
|
|
13
13
|
950: 'Black'
|
|
14
14
|
}
|
|
15
15
|
|
|
16
|
-
|
|
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 !==
|
|
19
|
+
if (fontFamily !== name) return undefined
|
|
22
20
|
|
|
23
21
|
const weights = options.weights?.length
|
|
24
22
|
? options.weights.filter(w => WEIGHT_MAP[w])
|
package/utils/component-meta.ts
CHANGED
|
@@ -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('./
|
|
55
|
+
resolve('./components/prose/Mermaid.vue')
|
|
56
56
|
]
|
|
57
57
|
|
|
58
58
|
const userComponentPaths = [
|