Skip to content

Commit 4692f2b

Browse files
committed
fix: build
1 parent 9b2f008 commit 4692f2b

File tree

6 files changed

+26
-8
lines changed

6 files changed

+26
-8
lines changed

docs/.vitepress/config.ts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -188,6 +188,15 @@ export default defineConfig({
188188
},
189189
},
190190
markdown: {
191+
languages: [
192+
'javascript',
193+
'typescript',
194+
'js',
195+
'ts',
196+
'shell',
197+
'bash',
198+
'json',
199+
],
191200
codeTransformers: noTwoslash()
192201
? []
193202
: [

docs/package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,8 @@
5252
"typescript": "^5.8.3",
5353
"unlazy": "^0.12.4",
5454
"vite": "catalog:",
55-
"vite-plugin-vue-devtools": "^7.7.7"
55+
"vite-plugin-vue-devtools": "^7.7.7",
56+
"vitepress": "^2.0.0-alpha.7",
57+
"vue": "catalog:"
5658
}
5759
}

package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,6 @@
7272
"unplugin-vue-macros": "^2.14.5",
7373
"vite": "catalog:",
7474
"vite-plugin-inspect": "^11.3.0",
75-
"vitepress": "2.0.0-alpha.7",
7675
"vitest": "^3.2.4",
7776
"vue": "catalog:",
7877
"vue-tsc": "^2.2.10"

packages/vitepress-plugin-meta/src/vitepress/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ function updateMetaOrCreateMeta(head: HeadConfig[], fromKey: string, withValue:
8080
return head
8181
}
8282

83-
export function transformHeadMeta(options?: TransformHeadMetaOptions): (head: HeadConfig[], context: Readonly<TransformContext>) => Promise<HeadConfig[] | void> {
83+
export function transformHeadMeta(options?: TransformHeadMetaOptions): (head: HeadConfig[], context: TransformContext) => Promise<HeadConfig[] | void> {
8484
const opts = defu(options, {
8585
length: 200,
8686
contentSelector: '#VPContent div.content main .vp-doc div',

pnpm-lock.yaml

Lines changed: 11 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pnpm-workspace.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ packages:
22
- packages/**
33
- '!**/dist/**'
44
- docs
5+
56
catalog:
67
vite: ^7.0.0
7-
vue: ^3.5.17
8+
vue: 3.5.17

0 commit comments

Comments
 (0)