vitepress 1.3.1 → 1.3.3
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 +0 -3
- package/dist/client/theme-default/components/VPLocalSearchBox.vue +1 -2
- package/dist/node/cli.js +1 -1
- package/dist/node/index.d.ts +0 -1
- package/dist/node/index.js +2 -2
- package/dist/node/{serve-oY-f4fXJ.js → serve-lJPQ9bCN.js} +10 -10
- package/package.json +28 -28
package/dist/client/app/index.js
CHANGED
|
@@ -121,9 +121,6 @@ function newRouter() {
|
|
|
121
121
|
return import(/*@vite-ignore*/ path);
|
|
122
122
|
});
|
|
123
123
|
}
|
|
124
|
-
else if (import.meta.env.SSR) {
|
|
125
|
-
pageModule = import(/*@vite-ignore*/ `${pageFilePath}?t=${Date.now()}`);
|
|
126
|
-
}
|
|
127
124
|
else {
|
|
128
125
|
pageModule = import(/*@vite-ignore*/ pageFilePath);
|
|
129
126
|
}
|
|
@@ -781,12 +781,11 @@ function formMarkRegex(terms: Set<string>) {
|
|
|
781
781
|
}
|
|
782
782
|
|
|
783
783
|
.excerpt {
|
|
784
|
-
opacity:
|
|
784
|
+
opacity: 50%;
|
|
785
785
|
pointer-events: none;
|
|
786
786
|
max-height: 140px;
|
|
787
787
|
overflow: hidden;
|
|
788
788
|
position: relative;
|
|
789
|
-
opacity: 0.5;
|
|
790
789
|
margin-top: 4px;
|
|
791
790
|
}
|
|
792
791
|
|
package/dist/node/cli.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as getDefaultExportFromCjs, q as c, t as clearCache, n as init, b as build, o as serve, v as version, p as createServer } from './serve-
|
|
1
|
+
import { a as getDefaultExportFromCjs, q as c, t as clearCache, n as init, b as build, o as serve, v as version, p as createServer } from './serve-lJPQ9bCN.js';
|
|
2
2
|
import { createLogger } from 'vite';
|
|
3
3
|
import 'path';
|
|
4
4
|
import 'shiki';
|
package/dist/node/index.d.ts
CHANGED
package/dist/node/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { normalizePath } from 'vite';
|
|
2
2
|
export { loadEnv } from 'vite';
|
|
3
|
-
import { g as glob, c as createMarkdownRenderer, f as fs, m as matter, a as getDefaultExportFromCjs } from './serve-
|
|
4
|
-
export { S as ScaffoldThemeType, b as build, p as createServer, e as defineConfig, h as defineConfigWithTheme, d as defineLoader, n as init, j as mergeConfig, r as resolveConfig, l as resolvePages, k as resolveSiteData, i as resolveUserConfig, s as scaffold, o as serve } from './serve-
|
|
3
|
+
import { g as glob, c as createMarkdownRenderer, f as fs, m as matter, a as getDefaultExportFromCjs } from './serve-lJPQ9bCN.js';
|
|
4
|
+
export { S as ScaffoldThemeType, b as build, p as createServer, e as defineConfig, h as defineConfigWithTheme, d as defineLoader, n as init, j as mergeConfig, r as resolveConfig, l as resolvePages, k as resolveSiteData, i as resolveUserConfig, s as scaffold, o as serve } from './serve-lJPQ9bCN.js';
|
|
5
5
|
import path from 'path';
|
|
6
6
|
import 'crypto';
|
|
7
7
|
import 'module';
|
|
@@ -31,7 +31,7 @@ import * as qs from 'querystring';
|
|
|
31
31
|
import require$$0$4 from 'tty';
|
|
32
32
|
import require$$0$1 from 'constants';
|
|
33
33
|
import { webcrypto } from 'node:crypto';
|
|
34
|
-
import {
|
|
34
|
+
import { createHighlighter, bundledLanguages, isSpecialLang } from 'shiki';
|
|
35
35
|
import { transformerNotationDiff, transformerNotationFocus, transformerNotationHighlight, transformerNotationErrorLevel, transformerCompactLineOptions } from '@shikijs/transformers';
|
|
36
36
|
import MiniSearch from 'minisearch';
|
|
37
37
|
|
|
@@ -12042,6 +12042,8 @@ function requireBrowser () {
|
|
|
12042
12042
|
return false;
|
|
12043
12043
|
}
|
|
12044
12044
|
|
|
12045
|
+
let m;
|
|
12046
|
+
|
|
12045
12047
|
// Is webkit? http://stackoverflow.com/a/16459606/376773
|
|
12046
12048
|
// document is undefined in react-native: https://github.com/facebook/react-native/pull/1632
|
|
12047
12049
|
return (typeof document !== 'undefined' && document.documentElement && document.documentElement.style && document.documentElement.style.WebkitAppearance) ||
|
|
@@ -12049,7 +12051,7 @@ function requireBrowser () {
|
|
|
12049
12051
|
(typeof window !== 'undefined' && window.console && (window.console.firebug || (window.console.exception && window.console.table))) ||
|
|
12050
12052
|
// Is firefox >= v31?
|
|
12051
12053
|
// https://developer.mozilla.org/en-US/docs/Tools/Web_Console#Styling_messages
|
|
12052
|
-
(typeof navigator !== 'undefined' && undefined && navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/) && parseInt(
|
|
12054
|
+
(typeof navigator !== 'undefined' && undefined && (m = navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)) && parseInt(m[1], 10) >= 31) ||
|
|
12053
12055
|
// Double check webkit in userAgent just in case we are in a worker
|
|
12054
12056
|
(typeof navigator !== 'undefined' && undefined && navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/));
|
|
12055
12057
|
}
|
|
@@ -34573,7 +34575,7 @@ var patterns = options => {
|
|
|
34573
34575
|
const content = token.content;
|
|
34574
34576
|
const attrs = utils$1.getAttrs(content, content.lastIndexOf(options.leftDelimiter), options);
|
|
34575
34577
|
let ii = i + 1;
|
|
34576
|
-
|
|
34578
|
+
do if (tokens[ii] && tokens[ii].nesting === -1) { break; } while (ii++ < tokens.length);
|
|
34577
34579
|
const openingToken = utils$1.getMatchingOpeningToken(tokens, ii);
|
|
34578
34580
|
utils$1.addAttrs(attrs, openingToken);
|
|
34579
34581
|
const trimmed = content.slice(0, content.lastIndexOf(options.leftDelimiter));
|
|
@@ -37253,7 +37255,7 @@ async function highlight(theme, options, logger = console) {
|
|
|
37253
37255
|
defaultHighlightLang: defaultLang = "",
|
|
37254
37256
|
codeTransformers: userTransformers = []
|
|
37255
37257
|
} = options;
|
|
37256
|
-
const highlighter = await
|
|
37258
|
+
const highlighter = await createHighlighter({
|
|
37257
37259
|
themes: typeof theme === "object" && "light" in theme && "dark" in theme ? [theme.light, theme.dark] : [theme],
|
|
37258
37260
|
langs: [...Object.keys(bundledLanguages), ...options.languages || []],
|
|
37259
37261
|
langAlias: options.languageAlias
|
|
@@ -46836,7 +46838,7 @@ async function generateSitemap(siteConfig) {
|
|
|
46836
46838
|
});
|
|
46837
46839
|
}
|
|
46838
46840
|
|
|
46839
|
-
var version = "1.3.
|
|
46841
|
+
var version = "1.3.3";
|
|
46840
46842
|
|
|
46841
46843
|
async function renderPage(render, config, page, result, appChunk, cssChunk, assets, pageToHashMap, metadataScript, additionalHeadTags) {
|
|
46842
46844
|
const routePath = `/${page.replace(/\.md$/, "")}`;
|
|
@@ -46850,9 +46852,7 @@ async function renderPage(render, config, page, result, appChunk, cssChunk, asse
|
|
|
46850
46852
|
let pageData;
|
|
46851
46853
|
let hasCustom404 = true;
|
|
46852
46854
|
try {
|
|
46853
|
-
const { __pageData } = await import(pathToFileURL(
|
|
46854
|
-
path$q.join(config.tempDir, pageServerJsFileName)
|
|
46855
|
-
).toString() + "?t=" + Date.now());
|
|
46855
|
+
const { __pageData } = await import(pathToFileURL(path$q.join(config.tempDir, pageServerJsFileName)).href);
|
|
46856
46856
|
pageData = __pageData;
|
|
46857
46857
|
} catch (e) {
|
|
46858
46858
|
if (page === "404.md") {
|
|
@@ -47048,7 +47048,7 @@ async function build(root, buildOptions = {}) {
|
|
|
47048
47048
|
return;
|
|
47049
47049
|
}
|
|
47050
47050
|
const entryPath = path$q.join(siteConfig.tempDir, "app.js");
|
|
47051
|
-
const { render } = await import(pathToFileURL(entryPath).
|
|
47051
|
+
const { render } = await import(pathToFileURL(entryPath).href);
|
|
47052
47052
|
await task("rendering pages", async () => {
|
|
47053
47053
|
const appChunk = clientResult && clientResult.output.find(
|
|
47054
47054
|
(chunk) => chunk.type === "chunk" && chunk.isEntry && chunk.facadeModuleId?.endsWith(".js")
|
|
@@ -49506,7 +49506,7 @@ function compression ({ threshold = 1024, level = -1, brotli = false, gzip = tru
|
|
|
49506
49506
|
|
|
49507
49507
|
return (req, res, next = NOOP) => {
|
|
49508
49508
|
const accept = req.headers['accept-encoding'] + '';
|
|
49509
|
-
const encoding = ((brotli &&
|
|
49509
|
+
const encoding = ((brotli && /\bbr\b/.exec(accept)) || (gzip && /\bgzip\b/.exec(accept)) || [])[0];
|
|
49510
49510
|
|
|
49511
49511
|
// skip if no response body or no supported encoding:
|
|
49512
49512
|
if (req.method === 'HEAD' || !encoding) return next();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "vitepress",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.3",
|
|
4
4
|
"description": "Vite & Vue powered static site generator",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"vite",
|
|
@@ -60,22 +60,22 @@
|
|
|
60
60
|
"*": "prettier --write --ignore-unknown"
|
|
61
61
|
},
|
|
62
62
|
"dependencies": {
|
|
63
|
-
"@docsearch/css": "^3.6.
|
|
64
|
-
"@docsearch/js": "^3.6.
|
|
65
|
-
"@shikijs/core": "^1.
|
|
66
|
-
"@shikijs/transformers": "^1.
|
|
67
|
-
"@types/markdown-it": "^14.1.
|
|
68
|
-
"@vitejs/plugin-vue": "^5.
|
|
69
|
-
"@vue/devtools-api": "^7.3.
|
|
70
|
-
"@vue/shared": "^3.4.
|
|
71
|
-
"@vueuse/core": "^
|
|
72
|
-
"@vueuse/integrations": "^
|
|
63
|
+
"@docsearch/css": "^3.6.1",
|
|
64
|
+
"@docsearch/js": "^3.6.1",
|
|
65
|
+
"@shikijs/core": "^1.13.0",
|
|
66
|
+
"@shikijs/transformers": "^1.13.0",
|
|
67
|
+
"@types/markdown-it": "^14.1.2",
|
|
68
|
+
"@vitejs/plugin-vue": "^5.1.2",
|
|
69
|
+
"@vue/devtools-api": "^7.3.8",
|
|
70
|
+
"@vue/shared": "^3.4.38",
|
|
71
|
+
"@vueuse/core": "^11.0.0",
|
|
72
|
+
"@vueuse/integrations": "^11.0.0",
|
|
73
73
|
"focus-trap": "^7.5.4",
|
|
74
74
|
"mark.js": "8.11.1",
|
|
75
|
-
"minisearch": "^7.
|
|
76
|
-
"shiki": "^1.
|
|
77
|
-
"vite": "^5.
|
|
78
|
-
"vue": "^3.4.
|
|
75
|
+
"minisearch": "^7.1.0",
|
|
76
|
+
"shiki": "^1.13.0",
|
|
77
|
+
"vite": "^5.4.1",
|
|
78
|
+
"vue": "^3.4.38"
|
|
79
79
|
},
|
|
80
80
|
"devDependencies": {
|
|
81
81
|
"@clack/prompts": "^0.7.0",
|
|
@@ -86,7 +86,7 @@
|
|
|
86
86
|
"@mdit-vue/plugin-title": "^2.1.3",
|
|
87
87
|
"@mdit-vue/plugin-toc": "^2.1.3",
|
|
88
88
|
"@mdit-vue/shared": "^2.1.3",
|
|
89
|
-
"@polka/compression": "^1.0.0-next.
|
|
89
|
+
"@polka/compression": "^1.0.0-next.26",
|
|
90
90
|
"@rollup/plugin-alias": "^5.1.0",
|
|
91
91
|
"@rollup/plugin-commonjs": "^26.0.1",
|
|
92
92
|
"@rollup/plugin-json": "^6.1.0",
|
|
@@ -102,25 +102,25 @@
|
|
|
102
102
|
"@types/markdown-it-emoji": "^3.0.1",
|
|
103
103
|
"@types/micromatch": "^4.0.9",
|
|
104
104
|
"@types/minimist": "^1.2.5",
|
|
105
|
-
"@types/node": "^
|
|
105
|
+
"@types/node": "^22.4.0",
|
|
106
106
|
"@types/postcss-prefix-selector": "^1.16.3",
|
|
107
107
|
"@types/prompts": "^2.4.9",
|
|
108
108
|
"chokidar": "^3.6.0",
|
|
109
109
|
"conventional-changelog-cli": "^5.0.0",
|
|
110
110
|
"cross-spawn": "^7.0.3",
|
|
111
|
-
"debug": "^4.3.
|
|
112
|
-
"esbuild": "^0.23.
|
|
113
|
-
"execa": "^9.3.
|
|
111
|
+
"debug": "^4.3.6",
|
|
112
|
+
"esbuild": "^0.23.1",
|
|
113
|
+
"execa": "^9.3.1",
|
|
114
114
|
"fast-glob": "^3.3.2",
|
|
115
115
|
"fs-extra": "^11.2.0",
|
|
116
116
|
"get-port": "^7.1.0",
|
|
117
117
|
"gray-matter": "^4.0.3",
|
|
118
|
-
"lint-staged": "^15.2.
|
|
118
|
+
"lint-staged": "^15.2.9",
|
|
119
119
|
"lodash.template": "^4.5.0",
|
|
120
120
|
"lru-cache": "^11.0.0",
|
|
121
121
|
"markdown-it": "^14.1.0",
|
|
122
122
|
"markdown-it-anchor": "^9.0.1",
|
|
123
|
-
"markdown-it-attrs": "^4.
|
|
123
|
+
"markdown-it-attrs": "^4.2.0",
|
|
124
124
|
"markdown-it-container": "^4.0.0",
|
|
125
125
|
"markdown-it-emoji": "^3.0.0",
|
|
126
126
|
"markdown-it-mathjax3": "^4.3.2",
|
|
@@ -132,24 +132,24 @@
|
|
|
132
132
|
"path-to-regexp": "^6.2.2",
|
|
133
133
|
"picocolors": "^1.0.1",
|
|
134
134
|
"pkg-dir": "^8.0.0",
|
|
135
|
-
"playwright-chromium": "^1.
|
|
135
|
+
"playwright-chromium": "^1.46.1",
|
|
136
136
|
"polka": "^1.0.0-next.25",
|
|
137
137
|
"postcss-prefix-selector": "^1.16.1",
|
|
138
138
|
"prettier": "^3.3.3",
|
|
139
139
|
"prompts": "^2.4.2",
|
|
140
140
|
"punycode": "^2.3.1",
|
|
141
141
|
"rimraf": "^6.0.1",
|
|
142
|
-
"rollup": "^4.
|
|
142
|
+
"rollup": "^4.20.0",
|
|
143
143
|
"rollup-plugin-dts": "^6.1.1",
|
|
144
144
|
"rollup-plugin-esbuild": "^6.1.1",
|
|
145
|
-
"semver": "^7.6.
|
|
145
|
+
"semver": "^7.6.3",
|
|
146
146
|
"simple-git-hooks": "^2.11.1",
|
|
147
147
|
"sirv": "^2.0.4",
|
|
148
148
|
"sitemap": "^8.0.0",
|
|
149
149
|
"supports-color": "^9.4.0",
|
|
150
|
-
"typescript": "^5.5.
|
|
151
|
-
"vitest": "^2.0.
|
|
152
|
-
"vue-tsc": "^2.0.
|
|
150
|
+
"typescript": "^5.5.4",
|
|
151
|
+
"vitest": "^2.0.5",
|
|
152
|
+
"vue-tsc": "^2.0.29",
|
|
153
153
|
"wait-on": "^7.2.0"
|
|
154
154
|
},
|
|
155
155
|
"peerDependencies": {
|