Skip to content

Commit af761cb

Browse files
dahliaclaude
andcommitted
Upgrade VitePress to 2.0.0-alpha.15
- Update vitepress from 1.3.4 to 2.0.0-alpha.15 - Update @shikijs/vitepress-twoslash from 1.17.6 to 3.20.0 - Add explicit language preloading for Shiki v3's lazy loading (required for twoslash transformer compatibility) Co-Authored-By: Claude <[email protected]>
1 parent 0e51ba7 commit af761cb

File tree

3 files changed

+692
-912
lines changed

3 files changed

+692
-912
lines changed

docs/.vitepress/config.mts

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -251,6 +251,21 @@ export default defineConfig({
251251
},
252252
head: head,
253253
markdown: {
254+
// Explicitly load these languages for twoslash types highlighting
255+
languages: [
256+
"js",
257+
"jsx",
258+
"ts",
259+
"tsx",
260+
"typescript",
261+
"bash",
262+
"sh",
263+
"shell",
264+
"json",
265+
"ansi",
266+
"text",
267+
"txt",
268+
],
254269
codeTransformers: [
255270
transformerTwoslash({
256271
twoslashOptions: {

docs/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
"@opentelemetry/sdk-logs": "catalog:",
2525
"@opentelemetry/semantic-conventions": "catalog:",
2626
"@sentry/node": "^9.28.1",
27-
"@shikijs/vitepress-twoslash": "^1.17.6",
27+
"@shikijs/vitepress-twoslash": "^3.20.0",
2828
"@sveltejs/kit": "^2.22.0",
2929
"@types/bun": "^1.2.15",
3030
"@types/deno": "^2.3.0",
@@ -41,7 +41,7 @@
4141
"markdown-it-jsr-ref": "^0.4.4",
4242
"pino": "^9.7.0",
4343
"postgres": "^3.4.7",
44-
"vitepress": "^1.3.4",
44+
"vitepress": "^2.0.0-alpha.15",
4545
"vitepress-plugin-group-icons": "^1.6.0",
4646
"vitepress-plugin-llms": "^1.1.0",
4747
"winston": "^3.17.0"

0 commit comments

Comments
 (0)