perf: update vuepress to rc.9
This commit is contained in:
parent
c1a9868ead
commit
3cada0bfd2
@ -5,19 +5,22 @@ export const zhNavbar = [
|
||||
{
|
||||
text: '指南',
|
||||
icon: 'icon-park-outline:guide-board',
|
||||
link: '/guide/intro/',
|
||||
// link: '/guide/intro/',
|
||||
link: '/notes/theme/guide/介绍.md',
|
||||
activeMatch: '^/guide/',
|
||||
},
|
||||
{
|
||||
text: '配置',
|
||||
icon: 'icon-park-outline:setting-two',
|
||||
link: '/config/intro/',
|
||||
// link: '/config/intro/',
|
||||
link: '/notes/theme/config/配置说明.md',
|
||||
activeMatch: '^/config/',
|
||||
},
|
||||
{
|
||||
text: '插件',
|
||||
icon: 'clarity:plugin-line',
|
||||
link: '/plugins/',
|
||||
// link: '/plugins/',
|
||||
link: '/notes/plugins/README.md',
|
||||
activeMatch: '^/plugins/',
|
||||
},
|
||||
{
|
||||
|
||||
@ -79,7 +79,16 @@ export default defineUserConfig({
|
||||
|
||||
```ts
|
||||
type NavItem = string | {
|
||||
/**
|
||||
* 导航栏文本
|
||||
*/
|
||||
text: string
|
||||
/**
|
||||
* 导航栏链接
|
||||
* - 可以是外部链接
|
||||
* - 可以是 frontmatter 中的 permalink
|
||||
* - 可以是相对于 `sourceDir` 的 markdown文件路径,请注意需要以 `/` 开头
|
||||
*/
|
||||
link: string
|
||||
/**
|
||||
* 支持 iconify 图标,直接使用 iconify name 即可自动加载
|
||||
|
||||
@ -9,10 +9,10 @@
|
||||
"docs:serve": "anywhere -s -h localhost -d .vuepress/dist"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"vuepress": "2.0.0-rc.8"
|
||||
"vuepress": "2.0.0-rc.9"
|
||||
},
|
||||
"dependencies": {
|
||||
"@vuepress/bundler-vite": "2.0.0-rc.8",
|
||||
"@vuepress/bundler-vite": "2.0.0-rc.9",
|
||||
"anywhere": "^1.6.0",
|
||||
"chart.js": "^4.4.2",
|
||||
"echarts": "^5.5.0",
|
||||
|
||||
12
package.json
12
package.json
@ -3,7 +3,7 @@
|
||||
"type": "module",
|
||||
"version": "1.0.0-rc.45",
|
||||
"private": true,
|
||||
"packageManager": "pnpm@8.15.4",
|
||||
"packageManager": "pnpm@8.15.5",
|
||||
"author": "pengzhanbo <q942450674@outlook.com> (https://github.com/pengzhanbo/)",
|
||||
"license": "MIT",
|
||||
"keywords": [
|
||||
@ -15,7 +15,7 @@
|
||||
],
|
||||
"engines": {
|
||||
"node": "^18 || >=20.0.0",
|
||||
"pnpm": ">=7"
|
||||
"pnpm": ">=8"
|
||||
},
|
||||
"scripts": {
|
||||
"build": "pnpm run clean && pnpm run build:package",
|
||||
@ -39,7 +39,7 @@
|
||||
"release:version": "bumpp package.json plugins/*/package.json theme/package.json --execute=\"pnpm release:changelog\" --commit \"build: publish v%s\" --all --tag --push"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@commitlint/cli": "^19.1.0",
|
||||
"@commitlint/cli": "^19.2.1",
|
||||
"@commitlint/config-conventional": "^19.1.0",
|
||||
"@pengzhanbo/eslint-config-vue": "^1.7.0",
|
||||
"@pengzhanbo/stylelint-config": "^1.7.0",
|
||||
@ -58,12 +58,12 @@
|
||||
"rimraf": "^5.0.5",
|
||||
"stylelint": "^16.2.1",
|
||||
"tsconfig-vuepress": "^4.5.0",
|
||||
"typescript": "^5.4.2",
|
||||
"vite": "^5.1.6"
|
||||
"typescript": "^5.4.3",
|
||||
"vite": "^5.2.4"
|
||||
},
|
||||
"pnpm": {
|
||||
"patchedDependencies": {
|
||||
"@vuepress/markdown@2.0.0-rc.8": "patches/@vuepress__markdown@2.0.0-rc.8.patch"
|
||||
"@vuepress/markdown@2.0.0-rc.9": "patches/@vuepress__markdown@2.0.0-rc.9.patch"
|
||||
}
|
||||
},
|
||||
"lint-staged": {
|
||||
|
||||
13
patches/@vuepress__markdown@2.0.0-rc.9.patch
Normal file
13
patches/@vuepress__markdown@2.0.0-rc.9.patch
Normal file
@ -0,0 +1,13 @@
|
||||
diff --git a/dist/index.js b/dist/index.js
|
||||
index 057c2897fdb1a01960724b83707a9c9d28205988..169e64c5e1d4b40aa48cdf07d0fb807e404f000e 100644
|
||||
--- a/dist/index.js
|
||||
+++ b/dist/index.js
|
||||
@@ -267,7 +267,7 @@ var codePlugin = (md, {
|
||||
const info = token.info ? md.utils.unescapeAll(token.info).trim() : "";
|
||||
const language = resolveLanguage(info);
|
||||
const languageClass = `${options.langPrefix}${language.name}`;
|
||||
- const code = options.highlight?.(token.content, language.name, "") || md.utils.escapeHtml(token.content);
|
||||
+ const code = options.highlight?.(token.content, language.name, info || "") || md.utils.escapeHtml(token.content);
|
||||
token.attrJoin("class", languageClass);
|
||||
let result = code.startsWith("<pre") ? code : `<pre${slf.renderAttrs(token)}><code>${code}</code></pre>`;
|
||||
const useVPre = resolveVPre(info) ?? vPreBlock;
|
||||
@ -33,7 +33,7 @@
|
||||
"ts": "tsc -b tsconfig.build.json"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"vuepress": "2.0.0-rc.8"
|
||||
"vuepress": "2.0.0-rc.9"
|
||||
},
|
||||
"dependencies": {
|
||||
"chokidar": "^3.6.0",
|
||||
|
||||
@ -33,7 +33,7 @@
|
||||
"ts": "tsc -b tsconfig.build.json"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"vuepress": "2.0.0-rc.8"
|
||||
"vuepress": "2.0.0-rc.9"
|
||||
},
|
||||
"publishConfig": {
|
||||
"access": "public"
|
||||
|
||||
@ -37,7 +37,7 @@
|
||||
"ts": "tsc -b tsconfig.build.json"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"vuepress": "2.0.0-rc.8"
|
||||
"vuepress": "2.0.0-rc.9"
|
||||
},
|
||||
"dependencies": {
|
||||
"@vue/devtools-api": "6.5.1",
|
||||
|
||||
@ -43,7 +43,7 @@
|
||||
"ts": "tsc -b tsconfig.build.json"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"vuepress": "2.0.0-rc.8"
|
||||
"vuepress": "2.0.0-rc.9"
|
||||
},
|
||||
"dependencies": {
|
||||
"markdown-it-container": "^4.0.0"
|
||||
|
||||
@ -37,7 +37,7 @@
|
||||
"ts": "tsc -b tsconfig.build.json"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"vuepress": "2.0.0-rc.8"
|
||||
"vuepress": "2.0.0-rc.9"
|
||||
},
|
||||
"dependencies": {
|
||||
"vue": "^3.4.21"
|
||||
|
||||
@ -37,7 +37,7 @@
|
||||
"ts": "tsc -b tsconfig.build.json"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"vuepress": "2.0.0-rc.8"
|
||||
"vuepress": "2.0.0-rc.9"
|
||||
},
|
||||
"dependencies": {
|
||||
"@vuepress-plume/plugin-content-update": "workspace:*",
|
||||
|
||||
@ -37,7 +37,7 @@
|
||||
"ts": "tsc -b tsconfig.build.json"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"vuepress": "2.0.0-rc.8"
|
||||
"vuepress": "2.0.0-rc.9"
|
||||
},
|
||||
"dependencies": {
|
||||
"@iconify/vue": "^4.1.1",
|
||||
|
||||
@ -41,7 +41,7 @@
|
||||
"ts": "tsc -b tsconfig.build.json"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"vuepress": "2.0.0-rc.8"
|
||||
"vuepress": "2.0.0-rc.9"
|
||||
},
|
||||
"dependencies": {
|
||||
"@iarna/toml": "^2.2.5",
|
||||
@ -50,13 +50,13 @@
|
||||
"chokidar": "^3.6.0",
|
||||
"cpx2": "^7.0.1",
|
||||
"dotenv": "^16.4.5",
|
||||
"esbuild": "^0.20.1",
|
||||
"esbuild": "^0.20.2",
|
||||
"execa": "^8.0.1",
|
||||
"netlify-cli": "^17.19.3",
|
||||
"netlify-cli": "^17.20.1",
|
||||
"portfinder": "^1.0.32"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@types/node": "^20.11.27"
|
||||
"@types/node": "^20.11.30"
|
||||
},
|
||||
"publishConfig": {
|
||||
"access": "public"
|
||||
|
||||
@ -37,7 +37,7 @@
|
||||
"ts": "tsc -b tsconfig.build.json"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"vuepress": "2.0.0-rc.8"
|
||||
"vuepress": "2.0.0-rc.9"
|
||||
},
|
||||
"dependencies": {
|
||||
"@vue/devtools-api": "6.5.1",
|
||||
|
||||
@ -31,13 +31,13 @@
|
||||
"ts": "tsc -b tsconfig.build.json"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"vuepress": "2.0.0-rc.8"
|
||||
"vuepress": "2.0.0-rc.9"
|
||||
},
|
||||
"dependencies": {
|
||||
"@netlify/functions": "^2.6.0",
|
||||
"leancloud-storage": "^4.15.2",
|
||||
"vue": "^3.4.21",
|
||||
"vue-router": "4.2.5",
|
||||
"vue-router": "4.3.0",
|
||||
"vuepress-plugin-netlify-functions": "workspace:*"
|
||||
},
|
||||
"publishConfig": {
|
||||
|
||||
@ -37,10 +37,10 @@
|
||||
"ts": "tsc -b tsconfig.build.json"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"vuepress": "2.0.0-rc.8"
|
||||
"vuepress": "2.0.0-rc.9"
|
||||
},
|
||||
"dependencies": {
|
||||
"@vuepress/helper": "2.0.0-rc.15",
|
||||
"@vuepress/helper": "2.0.0-rc.19",
|
||||
"@vueuse/core": "^10.9.0",
|
||||
"@vueuse/integrations": "^10.9.0",
|
||||
"chokidar": "^3.6.0",
|
||||
|
||||
@ -33,20 +33,20 @@
|
||||
"ts": "tsc -b tsconfig.build.json"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"vuepress": "2.0.0-rc.8"
|
||||
"vuepress": "2.0.0-rc.9"
|
||||
},
|
||||
"dependencies": {
|
||||
"@shikijs/transformers": "^1.1.7",
|
||||
"@shikijs/twoslash": "^1.1.7",
|
||||
"@shikijs/transformers": "^1.2.0",
|
||||
"@shikijs/twoslash": "^1.2.0",
|
||||
"@types/hast": "^3.0.4",
|
||||
"floating-vue": "^5.2.2",
|
||||
"mdast-util-from-markdown": "^2.0.0",
|
||||
"mdast-util-gfm": "^3.0.0",
|
||||
"mdast-util-to-hast": "^13.1.0",
|
||||
"nanoid": "^5.0.6",
|
||||
"shiki": "^1.1.7",
|
||||
"twoslash": "^0.2.4",
|
||||
"twoslash-vue": "^0.2.4"
|
||||
"shiki": "^1.2.0",
|
||||
"twoslash": "^0.2.5",
|
||||
"twoslash-vue": "^0.2.5"
|
||||
},
|
||||
"publishConfig": {
|
||||
"access": "public"
|
||||
|
||||
1762
pnpm-lock.yaml
generated
1762
pnpm-lock.yaml
generated
File diff suppressed because it is too large
Load Diff
@ -3,6 +3,8 @@
|
||||
<img src="/preview/plume.svg" width="200px" alt="plume" />
|
||||
</p>
|
||||
|
||||
[](https://www.npmjs.com/package/vuepress-theme-plume)
|
||||
[](https://www.npmjs.com/package/vuepress-theme-plume)
|
||||

|
||||

|
||||
|
||||
|
||||
@ -52,7 +52,7 @@
|
||||
"ts:watch": "tsc -b tsconfig.build.json --watch"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"vuepress": "2.0.0-rc.8"
|
||||
"vuepress": "2.0.0-rc.9"
|
||||
},
|
||||
"dependencies": {
|
||||
"@pengzhanbo/utils": "^1.1.2",
|
||||
@ -66,28 +66,28 @@
|
||||
"@vuepress-plume/plugin-notes-data": "workspace:*",
|
||||
"@vuepress-plume/plugin-search": "workspace:*",
|
||||
"@vuepress-plume/plugin-shikiji": "workspace:*",
|
||||
"@vuepress/plugin-active-header-links": "2.0.0-rc.17",
|
||||
"@vuepress/plugin-active-header-links": "2.0.0-rc.18",
|
||||
"@vuepress/plugin-comment": "2.0.0-rc.20",
|
||||
"@vuepress/plugin-container": "2.0.0-rc.15",
|
||||
"@vuepress/plugin-docsearch": "2.0.0-rc.15",
|
||||
"@vuepress/plugin-external-link-icon": "2.0.0-rc.15",
|
||||
"@vuepress/plugin-docsearch": "2.0.0-rc.19",
|
||||
"@vuepress/plugin-external-link-icon": "2.0.0-rc.18",
|
||||
"@vuepress/plugin-git": "2.0.0-rc.15",
|
||||
"@vuepress/plugin-medium-zoom": "2.0.0-rc.17",
|
||||
"@vuepress/plugin-nprogress": "2.0.0-rc.15",
|
||||
"@vuepress/plugin-medium-zoom": "2.0.0-rc.19",
|
||||
"@vuepress/plugin-nprogress": "2.0.0-rc.18",
|
||||
"@vuepress/plugin-palette": "2.0.0-rc.15",
|
||||
"@vuepress/plugin-reading-time": "2.0.0-rc.17",
|
||||
"@vuepress/plugin-seo": "2.0.0-rc.17",
|
||||
"@vuepress/plugin-sitemap": "2.0.0-rc.17",
|
||||
"@vuepress/plugin-theme-data": "2.0.0-rc.15",
|
||||
"@vuepress/plugin-toc": "2.0.0-rc.15",
|
||||
"@vuepress/plugin-reading-time": "2.0.0-rc.19",
|
||||
"@vuepress/plugin-seo": "2.0.0-rc.19",
|
||||
"@vuepress/plugin-sitemap": "2.0.0-rc.19",
|
||||
"@vuepress/plugin-theme-data": "2.0.0-rc.18",
|
||||
"@vuepress/plugin-toc": "2.0.0-rc.18",
|
||||
"@vueuse/core": "^10.9.0",
|
||||
"bcrypt-ts": "^5.0.2",
|
||||
"date-fns": "^3.4.0",
|
||||
"date-fns": "^3.6.0",
|
||||
"katex": "^0.16.9",
|
||||
"lodash.merge": "^4.6.2",
|
||||
"nanoid": "^5.0.6",
|
||||
"vue": "^3.4.21",
|
||||
"vue-router": "4.2.5",
|
||||
"vue-router": "4.3.0",
|
||||
"vuepress-plugin-md-enhance": "2.0.0-rc.25"
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user