vitepress 1.1.4 → 1.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/client/app/index.js +15 -2
- package/dist/client/app/router.js +7 -1
- package/dist/client/shared.js +7 -4
- package/dist/client/theme-default/NotFound.vue +13 -37
- package/dist/client/theme-default/components/VPHomeContent.vue +5 -2
- package/dist/client/theme-default/components/VPLink.vue +5 -1
- package/dist/client/theme-default/components/VPLocalSearchBox.vue +1 -5
- package/dist/client/theme-default/composables/langs.js +2 -4
- package/dist/client/theme-default/styles/vars.css +4 -4
- package/dist/node/cli.js +17 -11
- package/dist/node/index.d.ts +373 -232
- package/dist/node/index.js +11 -9
- package/dist/node/{serve-CXVdC751.js → serve-DF70M2uf.js} +235 -260
- package/package.json +32 -35
- package/types/shared.d.ts +6 -1
package/package.json
CHANGED
|
@@ -1,20 +1,17 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "vitepress",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.2.0",
|
|
4
4
|
"description": "Vite & Vue powered static site generator",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"vite",
|
|
7
7
|
"vue",
|
|
8
8
|
"vitepress"
|
|
9
9
|
],
|
|
10
|
-
"homepage": "https://
|
|
10
|
+
"homepage": "https://vitepress.dev/",
|
|
11
11
|
"bugs": {
|
|
12
12
|
"url": "https://github.com/vuejs/vitepress/issues"
|
|
13
13
|
},
|
|
14
|
-
"repository":
|
|
15
|
-
"type": "git",
|
|
16
|
-
"url": "git+https://github.com/vuejs/vitepress.git"
|
|
17
|
-
},
|
|
14
|
+
"repository": "github:vuejs/vitepress",
|
|
18
15
|
"license": "MIT",
|
|
19
16
|
"author": "Evan You",
|
|
20
17
|
"type": "module",
|
|
@@ -66,29 +63,30 @@
|
|
|
66
63
|
"dependencies": {
|
|
67
64
|
"@docsearch/css": "^3.6.0",
|
|
68
65
|
"@docsearch/js": "^3.6.0",
|
|
69
|
-
"@shikijs/core": "^1.
|
|
70
|
-
"@shikijs/transformers": "^1.
|
|
71
|
-
"@types/markdown-it": "^14.
|
|
66
|
+
"@shikijs/core": "^1.5.2",
|
|
67
|
+
"@shikijs/transformers": "^1.5.2",
|
|
68
|
+
"@types/markdown-it": "^14.1.1",
|
|
72
69
|
"@vitejs/plugin-vue": "^5.0.4",
|
|
73
|
-
"@vue/devtools-api": "^7.0
|
|
70
|
+
"@vue/devtools-api": "^7.2.0",
|
|
71
|
+
"@vue/shared": "^3.4.27",
|
|
74
72
|
"@vueuse/core": "^10.9.0",
|
|
75
73
|
"@vueuse/integrations": "^10.9.0",
|
|
76
74
|
"focus-trap": "^7.5.4",
|
|
77
75
|
"mark.js": "8.11.1",
|
|
78
76
|
"minisearch": "^6.3.0",
|
|
79
|
-
"shiki": "^1.
|
|
80
|
-
"vite": "^5.2.
|
|
81
|
-
"vue": "^3.4.
|
|
77
|
+
"shiki": "^1.5.2",
|
|
78
|
+
"vite": "^5.2.11",
|
|
79
|
+
"vue": "^3.4.27"
|
|
82
80
|
},
|
|
83
81
|
"devDependencies": {
|
|
84
82
|
"@clack/prompts": "^0.7.0",
|
|
85
|
-
"@mdit-vue/plugin-component": "^2.1.
|
|
86
|
-
"@mdit-vue/plugin-frontmatter": "^2.1.
|
|
87
|
-
"@mdit-vue/plugin-headers": "^2.1.
|
|
88
|
-
"@mdit-vue/plugin-sfc": "^2.1.
|
|
89
|
-
"@mdit-vue/plugin-title": "^2.1.
|
|
90
|
-
"@mdit-vue/plugin-toc": "^2.1.
|
|
91
|
-
"@mdit-vue/shared": "^2.1.
|
|
83
|
+
"@mdit-vue/plugin-component": "^2.1.3",
|
|
84
|
+
"@mdit-vue/plugin-frontmatter": "^2.1.3",
|
|
85
|
+
"@mdit-vue/plugin-headers": "^2.1.3",
|
|
86
|
+
"@mdit-vue/plugin-sfc": "^2.1.3",
|
|
87
|
+
"@mdit-vue/plugin-title": "^2.1.3",
|
|
88
|
+
"@mdit-vue/plugin-toc": "^2.1.3",
|
|
89
|
+
"@mdit-vue/shared": "^2.1.3",
|
|
92
90
|
"@polka/compression": "1.0.0-next.25",
|
|
93
91
|
"@rollup/plugin-alias": "^5.1.0",
|
|
94
92
|
"@rollup/plugin-commonjs": "^25.0.7",
|
|
@@ -103,29 +101,28 @@
|
|
|
103
101
|
"@types/mark.js": "^8.11.12",
|
|
104
102
|
"@types/markdown-it-attrs": "^4.1.3",
|
|
105
103
|
"@types/markdown-it-container": "^2.0.10",
|
|
106
|
-
"@types/markdown-it-emoji": "^
|
|
104
|
+
"@types/markdown-it-emoji": "^3.0.1",
|
|
107
105
|
"@types/micromatch": "^4.0.7",
|
|
108
106
|
"@types/minimist": "^1.2.5",
|
|
109
|
-
"@types/node": "^20.12.
|
|
107
|
+
"@types/node": "^20.12.12",
|
|
110
108
|
"@types/postcss-prefix-selector": "^1.16.3",
|
|
111
109
|
"@types/prompts": "^2.4.9",
|
|
112
|
-
"@vue/shared": "^3.4.25",
|
|
113
110
|
"chokidar": "^3.6.0",
|
|
114
|
-
"conventional-changelog-cli": "^
|
|
111
|
+
"conventional-changelog-cli": "^5.0.0",
|
|
115
112
|
"cross-spawn": "^7.0.3",
|
|
116
113
|
"debug": "^4.3.4",
|
|
117
|
-
"esbuild": "^0.
|
|
114
|
+
"esbuild": "^0.21.3",
|
|
118
115
|
"escape-html": "^1.0.3",
|
|
119
|
-
"execa": "^
|
|
116
|
+
"execa": "^9.1.0",
|
|
120
117
|
"fast-glob": "^3.3.2",
|
|
121
118
|
"fs-extra": "^11.2.0",
|
|
122
119
|
"get-port": "^7.1.0",
|
|
123
120
|
"gray-matter": "^4.0.3",
|
|
124
121
|
"lint-staged": "^15.2.2",
|
|
125
122
|
"lodash.template": "^4.5.0",
|
|
126
|
-
"lru-cache": "^10.2.
|
|
123
|
+
"lru-cache": "^10.2.2",
|
|
127
124
|
"markdown-it": "^14.1.0",
|
|
128
|
-
"markdown-it-anchor": "^
|
|
125
|
+
"markdown-it-anchor": "^9.0.1",
|
|
129
126
|
"markdown-it-attrs": "^4.1.6",
|
|
130
127
|
"markdown-it-container": "^4.0.0",
|
|
131
128
|
"markdown-it-emoji": "^3.0.0",
|
|
@@ -137,27 +134,27 @@
|
|
|
137
134
|
"ora": "^8.0.1",
|
|
138
135
|
"p-map": "^7.0.2",
|
|
139
136
|
"path-to-regexp": "^6.2.2",
|
|
140
|
-
"picocolors": "^1.0.
|
|
137
|
+
"picocolors": "^1.0.1",
|
|
141
138
|
"pkg-dir": "^8.0.0",
|
|
142
|
-
"playwright-chromium": "^1.
|
|
139
|
+
"playwright-chromium": "^1.44.0",
|
|
143
140
|
"polka": "1.0.0-next.25",
|
|
144
141
|
"postcss-prefix-selector": "^1.16.1",
|
|
145
142
|
"prettier": "^3.2.5",
|
|
146
143
|
"prompts": "^2.4.2",
|
|
147
144
|
"punycode": "^2.3.1",
|
|
148
|
-
"rimraf": "^5.0.
|
|
149
|
-
"rollup": "^4.17.
|
|
145
|
+
"rimraf": "^5.0.7",
|
|
146
|
+
"rollup": "^4.17.2",
|
|
150
147
|
"rollup-plugin-dts": "^6.1.0",
|
|
151
148
|
"rollup-plugin-esbuild": "^6.1.1",
|
|
152
|
-
"semver": "^7.6.
|
|
149
|
+
"semver": "^7.6.2",
|
|
153
150
|
"simple-git-hooks": "^2.11.1",
|
|
154
151
|
"sirv": "^2.0.4",
|
|
155
152
|
"sitemap": "^7.1.1",
|
|
156
153
|
"sort-package-json": "^2.10.0",
|
|
157
154
|
"supports-color": "^9.4.0",
|
|
158
155
|
"typescript": "^5.4.5",
|
|
159
|
-
"vitest": "^1.
|
|
160
|
-
"vue-tsc": "^2.0.
|
|
156
|
+
"vitest": "^1.6.0",
|
|
157
|
+
"vue-tsc": "^2.0.19",
|
|
161
158
|
"wait-on": "^7.2.0"
|
|
162
159
|
},
|
|
163
160
|
"peerDependencies": {
|
package/types/shared.d.ts
CHANGED
|
@@ -7,7 +7,11 @@ export type Awaitable<T> = T | PromiseLike<T>
|
|
|
7
7
|
|
|
8
8
|
export interface PageData {
|
|
9
9
|
relativePath: string
|
|
10
|
-
|
|
10
|
+
/**
|
|
11
|
+
* differs from relativePath in case of path rewrites
|
|
12
|
+
* empty string if the page is virtual (e.g. 404 page)
|
|
13
|
+
*/
|
|
14
|
+
filePath: string
|
|
11
15
|
title: string
|
|
12
16
|
titleTemplate?: string | boolean
|
|
13
17
|
description: string
|
|
@@ -196,4 +200,5 @@ export interface MarkdownEnv {
|
|
|
196
200
|
links?: string[]
|
|
197
201
|
includes?: string[]
|
|
198
202
|
realPath?: string
|
|
203
|
+
localeIndex?: string
|
|
199
204
|
}
|