Skip to content

Commit 6f51997

Browse files
authored
docs(deps): update to vitepress v2 alpha (vitejs#20275)
1 parent 8c9840f commit 6f51997

File tree

4 files changed

+186
-264
lines changed

4 files changed

+186
-264
lines changed

docs/.vitepress/config.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -459,6 +459,8 @@ export default defineConfig({
459459
return pageData
460460
},
461461
markdown: {
462+
// languages used for twoslash and jsdocs in twoslash
463+
languages: ['ts', 'js', 'json'],
462464
codeTransformers: [transformerTwoslash()],
463465
config(md) {
464466
md.use(groupIconMdPlugin)

docs/guide/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
## Overview
88

9-
Vite (French word for "quick", pronounced `/vit/`<button style="border:none;padding:3px;border-radius:4px;vertical-align:bottom" id="play-vite-audio" onclick="document.getElementById('vite-audio').play();"><svg style="height:2em;width:2em"><use href="/voice.svg#voice" /></svg></button>, like "veet") is a build tool that aims to provide a faster and leaner development experience for modern web projects. It consists of two major parts:
9+
Vite (French word for "quick", pronounced `/vit/`<button style="border:none;padding:3px;border-radius:4px;vertical-align:bottom" id="play-vite-audio" onclick="document.getElementById('vite-audio').play();"><svg style="height:2em;width:2em"><use href="/voice.svg?no-inline#voice" /></svg></button>, like "veet") is a build tool that aims to provide a faster and leaner development experience for modern web projects. It consists of two major parts:
1010

1111
- A dev server that provides [rich feature enhancements](./features) over [native ES modules](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Modules), for example extremely fast [Hot Module Replacement (HMR)](./features#hot-module-replacement).
1212

docs/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,11 @@
88
"docs-serve": "vitepress serve"
99
},
1010
"devDependencies": {
11-
"@shikijs/vitepress-twoslash": "^2.5.0",
11+
"@shikijs/vitepress-twoslash": "^3.7.0",
1212
"@types/express": "^5.0.3",
1313
"feed": "^5.1.0",
1414
"gsap": "^3.13.0",
15-
"vitepress": "^1.6.3",
15+
"vitepress": "^2.0.0-alpha.6",
1616
"vitepress-plugin-group-icons": "^1.6.0",
1717
"vitepress-plugin-llms": "^1.5.1",
1818
"vue": "^3.5.17"

0 commit comments

Comments
 (0)