Skip to content

Commit 51a58f4

Browse files
committed
docs: fix shiki error
1 parent adbdc98 commit 51a58f4

File tree

3 files changed

+42
-86
lines changed

3 files changed

+42
-86
lines changed

docs/.vitepress/config.ts

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -82,12 +82,15 @@ export default defineConfig({
8282
codeTransformers: [
8383
transformerTwoslash({
8484
twoslashOptions: {
85-
compilerOptions: { paths: {
86-
unplugin: [path.resolve(import.meta.dirname, '../../src/index.ts')],
87-
} },
85+
compilerOptions: {
86+
paths: {
87+
unplugin: [path.resolve(import.meta.dirname, '../../src/index.ts')],
88+
},
89+
},
8890
},
8991
}),
9092
],
93+
languages: ['js', 'jsx', 'ts', 'tsx'],
9194
},
9295
ignoreDeadLinks: true,
9396
})

docs/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
"unplugin": "workspace:*",
2727
"unplugin-icons": "^22.1.0",
2828
"unplugin-vue-components": "^28.8.0",
29-
"vitepress": "2.0.0-alpha.5",
29+
"vitepress": "2.0.0-alpha.7",
3030
"vitepress-plugin-group-icons": "^1.6.1",
3131
"vue": "^3.5.17",
3232
"vue-tsc": "^3.0.0"

pnpm-lock.yaml

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

0 commit comments

Comments
 (0)