Skip to content

Commit 267a6fd

Browse files
dahliaclaude
andcommitted
Upgrade VitePress to 2.0.0-alpha.15
- Update vitepress from 1.5.0 to 2.0.0-alpha.15 - Update @shikijs/vitepress-twoslash from 3.7.0 to 3.20.0 - Add markdown.languages config for Shiki v3 lazy loading compatibility VitePress 2.0 uses lazy loading for Shiki languages, requiring explicit language declarations when using transformers like twoslash. Co-Authored-By: Claude <[email protected]>
1 parent 8388e94 commit 267a6fd

File tree

3 files changed

+530
-735
lines changed

3 files changed

+530
-735
lines changed

docs/.vitepress/config.mts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -168,6 +168,7 @@ export default defineConfig({
168168
ignoreDeadLinks: true,
169169

170170
markdown: {
171+
languages: ["js", "jsx", "ts", "tsx", "typescript", "bash", "sh", "shell", "json", "text", "html"],
171172
codeTransformers: [
172173
transformerTwoslash({
173174
twoslashOptions: {

docs/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"@fedify/redis": "^1.8.7",
88
"@fedify/sqlite": "^1.8.7",
99
"@js-temporal/polyfill": "catalog:",
10-
"@shikijs/vitepress-twoslash": "^3.7.0",
10+
"@shikijs/vitepress-twoslash": "^3.20.0",
1111
"@types/deno": "^2.3.0",
1212
"@types/node": "^24.0.3",
1313
"ioredis": "^5.6.1",
@@ -17,7 +17,7 @@
1717
"postgres": "^3.4.7",
1818
"srvx": "^0.8.0",
1919
"typescript": "^5.8.3",
20-
"vitepress": "^1.5.0",
20+
"vitepress": "^2.0.0-alpha.15",
2121
"vitepress-plugin-group-icons": "^1.3.3",
2222
"vitepress-plugin-llms": "^1.1.0"
2323
},

0 commit comments

Comments
 (0)