Skip to content

Commit acc3fa0

Browse files
authored
Merge pull request #564 from vuejs-translations/vitepress-2-upgrade
chore: upgrade toolchain to vitepress 2 (sync deps with upstream)
2 parents 4add944 + 79f64e8 commit acc3fa0

6 files changed

Lines changed: 1932 additions & 898 deletions

File tree

.vitepress/config.ts

Lines changed: 23 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import fs from 'fs'
22
import path from 'path'
33
import { defineConfigWithTheme, type Plugin } from 'vitepress'
44
import type { Config as ThemeConfig } from '@vue/theme'
5-
// import llmstxt from 'vitepress-plugin-llms'
5+
import llmstxt from 'vitepress-plugin-llms'
66
import baseConfig from '@vue/theme/config'
77
import { headerPlugin } from './headerMdPlugin'
88
// import { textAdPlugin } from './textAdMdPlugin'
@@ -804,6 +804,28 @@ export default defineConfigWithTheme<ThemeConfig>({
804804
stringify: true
805805
},
806806
plugins: [
807+
llmstxt({
808+
ignoreFiles: [
809+
'about/team/**/*',
810+
'about/team.md',
811+
'about/privacy.md',
812+
'about/coc.md',
813+
'developers/**/*',
814+
'ecosystem/themes.md',
815+
'examples/**/*',
816+
'partners/**/*',
817+
'sponsor/**/*',
818+
'index.md'
819+
],
820+
customLLMsTxtTemplate: `\
821+
# Vue.js
822+
823+
Vue.js - The Progressive JavaScript Framework
824+
825+
## Table of Contents
826+
827+
{toc}`
828+
}) as unknown as Plugin,
807829
groupIconVitePlugin({
808830
customIcon: {
809831
cypress: 'vscode-icons:file-type-cypress',

.vitepress/theme/styles/vars.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,4 @@
1313
--vp-code-tab-active-text-color: var(--vt-c-text-1);
1414
--vp-code-tab-bg: var(--vt-c-black-mute);
1515
--vp-code-block-bg: var(--vt-c-black-mute);
16-
}
16+
}

netlify.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[build.environment]
2-
NODE_VERSION = "22"
2+
NODE_VERSION = "24"
33

44
[build]
5-
publish = ".vitepress/dist"
6-
command = "pnpm run build"
5+
publish = ".vitepress/dist"
6+
command = "pnpm run build"

package.json

Lines changed: 25 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
{
2-
"engines": {
3-
"node": ">=18.0.0"
4-
},
2+
"private": true,
53
"type": "module",
64
"scripts": {
75
"dev": "vitepress",
@@ -11,20 +9,34 @@
119
"type": "vue-tsc --noEmit"
1210
},
1311
"dependencies": {
14-
"@vue/repl": "^4.4.2",
15-
"@vue/theme": "^2.3.0",
12+
"@vue/repl": "^4.7.1",
13+
"@vue/theme": "^2.4.0",
1614
"dynamics.js": "^1.1.5",
17-
"gsap": "^3.12.5",
18-
"vitepress": "^1.4.3",
19-
"vue": "^3.5.12"
15+
"gsap": "^3.14.2",
16+
"vitepress": "^2.0.0-alpha.17",
17+
"vue": "^3.5.32"
2018
},
2119
"devDependencies": {
2220
"@types/body-scroll-lock": "^3.1.2",
2321
"@types/markdown-it": "^14.1.2",
24-
"@types/node": "^22.7.5",
25-
"typescript": "^5.6.3",
26-
"vitepress-plugin-group-icons": "^1.5.4",
27-
"vue-tsc": "^2.1.6"
22+
"@types/node": "^25.5.2",
23+
"oxc-minify": "^0.124.0",
24+
"typescript": "^5.9.3",
25+
"vitepress-plugin-group-icons": "^1.7.3",
26+
"vitepress-plugin-llms": "^1.12.0",
27+
"vue-tsc": "^3.2.6"
28+
},
29+
"engines": {
30+
"node": ">=20"
2831
},
29-
"packageManager": "pnpm@9.12.1"
32+
"packageManager": "pnpm@10.33.0",
33+
"pnpm": {
34+
"overrides": {
35+
"vitepress>vite": "npm:vite@8.0.7"
36+
},
37+
"onlyBuiltDependencies": [
38+
"esbuild",
39+
"vue-demi"
40+
]
41+
}
3042
}

0 commit comments

Comments
 (0)