\r\n\u003C/VPTeamPage>\r\n\n\n### Expected behavior\n\nit suppose to change Sponsor word like this but didn't work\r\n\r\n\r\n\r\n\n\n### System Info\n\n```Text\nSystem\n```\n\n\n### Additional context\n\n_No response_\n\n### Validations\n\n- [X] Check if you're on the [latest VitePress version](https://github.com/vuejs/vitepress/releases/latest).\n- [X] Follow our [Code of Conduct](https://vuejs.org/about/coc.html)\n- [X] Read the [docs](https://vitepress.dev).\n- [X] Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.",[3083],{"name":3084,"color":3085},"need more info","bdbefc",4124,"actionText prop on VPTeamMembers components doesn't works","2024-08-20T04:43:16Z","https://github.com/vuejs/vitepress/issues/4124",0.800855,{"description":3092,"labels":3093,"number":3097,"owner":3033,"repository":3034,"state":3066,"title":3098,"updated_at":3099,"url":3100,"score":3101},"### Describe the bug\n\nFrom version 1.0.0.0-rc.30 (includes 1.0.0.0-rc.31) custom language syntax highlighting aliases do not work.\n\n### Reproduction\n\nInto the config.js add:\r\n\r\n```js\r\nimport { BUNDLED_LANGUAGES } from 'shiki';\r\nconst graphaneLanguageGrammar = JSON.parse(readFileSync(\"./src/.vitepress/shiki/graphane.tmLanguage.json\"))\r\nconst html = BUNDLED_LANGUAGES.find(lang => lang.id === 'html')\r\nhtml.scopeName = 'source.graphane';\r\nhtml.grammar = graphaneLanguageGrammar;\r\nhtml.aliases = html.aliases || [];\r\nhtml.aliases.push('svg');\r\n```\r\n\r\n\n\n### Expected behavior\n\nHighlight the SVG as HTML and it is now displayed as TXT, and this warning is thrown in the console:\r\n\r\n```txt\r\nThe language 'svg' is not loaded, falling back to 'txt' for syntax highlighting. \r\n```\n\n### System Info\n\n```Text\nSystem:\r\n OS: Windows 11 10.0.22635\r\n CPU: (16) x64 Intel(R) Core(TM) i9-10885H CPU @ 2.40GHz\r\n Memory: 10.91 GB / 31.75 GB\r\n Binaries:\r\n Node: 20.9.0 - C:\\Program Files\\nodejs\\node.EXE\r\n Yarn: 1.22.15 - ~\\AppData\\Roaming\\npm\\yarn.CMD\r\n npm: 10.1.0 - C:\\Program Files\\nodejs\\npm.CMD\r\n pnpm: 7.27.0 - ~\\AppData\\Roaming\\npm\\pnpm.CMD\r\n Browsers:\r\n Edge: Chromium (120.0.2210.22)\r\n Internet Explorer: 11.0.22621.1\r\n npmPackages:\r\n vitepress: ^1.0.0-rc.31 => 1.0.0-rc.31\n```\n\n\n### Additional context\n\nWorks perfectly on Vitepress 1.0.0-rc.29 and earlier.\n\n### Validations\n\n- [X] Check if you're on the [latest VitePress version](https://github.com/vuejs/vitepress/releases/latest).\n- [X] Follow our [Code of Conduct](https://vuejs.org/about/coc.html)\n- [X] Read the [docs](https://vitepress.dev).\n- [X] Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.",[3094],{"name":3095,"color":3096},"bug: pending triage","e99695",3259,"The language is not loaded in syntax highlighting","2023-12-03T00:04:51Z","https://github.com/vuejs/vitepress/issues/3259",0.80491716,{"description":3103,"labels":3104,"number":3106,"owner":3033,"repository":3034,"state":3066,"title":3107,"updated_at":3108,"url":3109,"score":3110},"### Describe the bug\n\nRunning `npm run docs:build` results in an error when using latest (`-rc.2`) packaged version:\r\n\r\n```\r\n$ npm run docs:build\r\n\r\n> docs:build\r\n> vitepress build docs\r\n\r\n\r\n vitepress v1.0.0-rc.3\r\n\r\n✘ [ERROR] \"vitepress\" resolved to an ESM file. ESM file cannot be loaded by `require`. See http://vitejs.dev/guide/troubleshooting.html#this-package-is-esm-only for more details. [plugin externalize-deps]\r\n\r\n node_modules/esbuild/lib/main.js:1373:27:\r\n 1373 │ let result = await callback({\r\n ╵ ^\r\n\r\n at file:///tmp/vpress/node_modules/vite/dist/node/chunks/dep-df561101.js:66190:35\r\n at requestCallbacks.on-resolve (/tmp/vpress/node_modules/esbuild/lib/main.js:1373:28)\r\n at handleRequest (/tmp/vpress/node_modules/esbuild/lib/main.js:729:19)\r\n at handleIncomingPacket (/tmp/vpress/node_modules/esbuild/lib/main.js:755:7)\r\n at Socket.readFromStdout (/tmp/vpress/node_modules/esbuild/lib/main.js:679:7)\r\n at Socket.emit (node:events:513:28)\r\n at addChunk (node:internal/streams/readable:315:12)\r\n at readableAddChunk (node:internal/streams/readable:289:9)\r\n at Socket.Readable.push (node:internal/streams/readable:228:10)\r\n at Pipe.onStreamRead (node:internal/stream_base_commons:190:23)\r\n\r\n This error came from the \"onResolve\" callback registered here:\r\n\r\n node_modules/esbuild/lib/main.js:1292:20:\r\n 1292 │ let promise = setup({\r\n ╵ ^\r\n\r\n at setup (file:///tmp/vpress/node_modules/vite/dist/node/chunks/dep-df561101.js:66158:27)\r\n at handlePlugins (/tmp/vpress/node_modules/esbuild/lib/main.js:1292:21)\r\n at buildOrContextImpl (/tmp/vpress/node_modules/esbuild/lib/main.js:978:5)\r\n at Object.buildOrContext (/tmp/vpress/node_modules/esbuild/lib/main.js:786:5)\r\n at /tmp/vpress/node_modules/esbuild/lib/main.js:2177:15\r\n at new Promise (\u003Canonymous>)\r\n at Object.build (/tmp/vpress/node_modules/esbuild/lib/main.js:2176:25)\r\n at build (/tmp/vpress/node_modules/esbuild/lib/main.js:2025:51)\r\n at bundleConfigFile (file:///tmp/vpress/node_modules/vite/dist/node/chunks/dep-df561101.js:66109:26)\r\n\r\n The plugin \"externalize-deps\" was triggered by this import\r\n\r\n docs/.vitepress/config.ts:1:278:\r\n 1 │ ...import_meta_url = \"file:///tmp/vpress/docs/.vitepress/config.ts\";import { defineConfig } from 'vitepress'\r\n ╵ ~~~~~~~~~~~\r\n\r\nfailed to load config from /tmp/vpress/docs/.vitepress/config.ts\r\nbuild error:\r\nError: Build failed with 1 error:\r\nnode_modules/esbuild/lib/main.js:1373:27: ERROR: [plugin: externalize-deps] \"vitepress\" resolved to an ESM file. ESM file cannot be loaded by `require`. See http://vitejs.dev/guide/troubleshooting.html#this-package-is-esm-only for more details.\r\n at failureErrorWithLog (/tmp/vpress/node_modules/esbuild/lib/main.js:1649:15)\r\n at /tmp/vpress/node_modules/esbuild/lib/main.js:1058:25\r\n at runOnEndCallbacks (/tmp/vpress/node_modules/esbuild/lib/main.js:1484:45)\r\n at buildResponseToResult (/tmp/vpress/node_modules/esbuild/lib/main.js:1056:7)\r\n at /tmp/vpress/node_modules/esbuild/lib/main.js:1085:16\r\n at responseCallbacks.\u003Ccomputed> (/tmp/vpress/node_modules/esbuild/lib/main.js:703:9)\r\n at handleIncomingPacket (/tmp/vpress/node_modules/esbuild/lib/main.js:762:9)\r\n at Socket.readFromStdout (/tmp/vpress/node_modules/esbuild/lib/main.js:679:7)\r\n at Socket.emit (node:events:513:28)\r\n at addChunk (node:internal/streams/readable:315:12)\r\n```\n\n### Reproduction\n\n```\r\nmkdir vpress\r\ncd vpress\r\nnpm install -D vitepress\r\nnpx vitepress init\r\n#│ ./docs\r\n#│ My Awesome Project\r\n#│ A VitePress Site\r\n#│ Default Theme\r\n#│ Yes\r\n#│ Yes\r\nnpm run docs:build\r\n```\n\n### Expected behavior\n\nBuild runs successfully.\n\n### System Info\n\n```sh\nSystem:\r\n OS: Linux 6.4 Fedora Linux 38.20230806.0 (Silverblue)\r\n CPU: (12) x64 11th Gen Intel(R) Core(TM) i5-11400H @ 2.70GHz\r\n Memory: 8.91 GB / 15.25 GB\r\n Container: Yes\r\n Shell: 5.2.15 - /bin/bash\r\n Binaries:\r\n Node: 16.19.0 - ~/.nvm/versions/node/v16.19.0/bin/node\r\n npm: 8.19.3 - ~/.nvm/versions/node/v16.19.0/bin/npm\r\n npmPackages:\r\n vitepress: ^1.0.0-rc.3 => 1.0.0-rc.3\r\n```\n```\n\n\n### Additional context\n\n_No response_\n\n### Validations\n\n- [X] Check if you're on the [latest VitePress version](https://github.com/vuejs/vitepress/releases/latest).\n- [X] Follow our [Code of Conduct](https://vuejs.org/about/coc.html)\n- [X] Read the [docs](https://vitepress.dev).\n- [X] Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.",[3105],{"name":3095,"color":3096},2754,"[ERROR] \"vitepress\" resolved to an ESM file.","2023-08-16T00:04:18Z","https://github.com/vuejs/vitepress/issues/2754",0.80815667,{"description":3112,"labels":3113,"number":3114,"owner":3033,"repository":3034,"state":3066,"title":3115,"updated_at":3116,"url":3117,"score":3118},"### Is your feature request related to a problem? Please describe.\r\n\r\n[shiki v0.14.0](https://github.com/shikijs/shiki/releases) support [ANSI code lang support](https://github.com/shikijs/shiki/pull/386#issuecomment-1404347813).\r\n\r\nThis is a great improvement over **CLI documentation** like `--help` or `output result` with colorized. Such code display can better distinguish and highlight the key points. Allows users to have more custom highlighting behavior.\r\n\r\n\r\n### Describe the solution you'd like\r\n\r\n```md\r\n```ansi\r\n\u001b[90m$\u001b[0m \u001b[32mczg\u001b[0m --help\r\n...\r\n\u001b[33mSUBCOMMAND:\u001b[0m\r\n \u001b[36mbreak\u001b[0m \u001b[31mTurn on appends a ! after the type/scope\u001b[0m\r\n \u001b[36memoji\u001b[0m \u001b[31mTurn on output message with emoji mode\u001b[0m\r\n \u001b[36mcheckbox\u001b[0m \u001b[31mTurn on scope checkbox mode\u001b[0m\r\n \u001b[36mgpg\u001b[0m \u001b[31mTurn on use GPG sign commit message\u001b[0m\r\n...\r\n``\r\n```\r\n\r\n==>\r\n\r\n\u003Cimg width=\"800\" alt=\"image\" src=\"https://user-images.githubusercontent.com/40693636/215975574-621fee05-161d-4709-bcf0-7dc6474a68e0.png\">\r\n\r\n\r\n### Describe alternatives you've considered\r\n\r\nhttps://github.com/shikijs/shiki/pull/386#issuecomment-1404347813\r\n\r\n```js\r\nconst fs = require('fs')\r\nconst markdown = require('markdown-it')\r\nconst shiki = require('shiki')\r\n\r\nshiki.getHighlighter().then(highlighter => {\r\n const md = markdown({\r\n highlight: (code, lang) => {\r\n if (lang === 'ansi') {\r\n highlighter.ansiToHtml(...)\r\n }\r\n return highlighter.codeToHtml(code, { lang })\r\n }\r\n })\r\n})\r\n```\r\n\r\n### Additional context\r\n\r\nI would like to submit a PR if possible\r\n\r\n### Validations\r\n\r\n- [X] Follow our [Code of Conduct](https://vuejs.org/about/coc.html)\r\n- [X] Read the [docs](https://vitepress.vuejs.org).\r\n- [X] Read the [Contributing Guidelines](https://github.com/vuejs/vitepress/blob/main/.github/contributing.md).\r\n- [X] Check that there isn't already an issue that asks for the same feature to avoid creating a duplicate.",[],1876,"(shiki v0.14.0): ANSI `ansi` code lang support","2023-02-09T00:04:51Z","https://github.com/vuejs/vitepress/issues/1876",0.81391484,{"description":3120,"labels":3121,"number":3125,"owner":3033,"repository":3034,"state":3066,"title":3126,"updated_at":3127,"url":3128,"score":3129},"### Describe the bug\n\nI built and published vitepress pages to my server, but got `Hydration completed but contains mismatches` error when i review, and the index page rendered nothing but blank, and other pages show correctlly.\r\n\r\n\r\nBut it runs perfectly on my local within dev mode\n\n### Reproduction\n\n* type `run npm docs:build` and wait.\r\n* zip all release files under destination folder and push it to server\r\n* unzip and place to the nginx root folder\r\n* visit the site\n\n### Expected behavior\n\nthe index page displays correctlly.\n\n### System Info\n\n```shell\nSystem:\r\n OS: macOS 11.4\r\n CPU: (8) x64 Intel(R) Core(TM) i7-7700HQ CPU @ 2.80GHz\r\n Memory: 1.22 GB / 16.00 GB\r\n Shell: 5.8 - /bin/zsh\r\n Binaries:\r\n Node: 14.15.1 - /usr/local/opt/nvm/versions/node/v14.15.1/bin/node\r\n Yarn: 1.22.10 - /usr/local/opt/nvm/versions/node/v14.15.1/bin/yarn\r\n npm: 6.14.8 - /usr/local/opt/nvm/versions/node/v14.15.1/bin/npm\r\n Browsers:\r\n Chrome: 92.0.4515.131\r\n Safari: 14.1.1\r\n npmPackages:\r\n vitepress: ^0.16.1 => 0.16.1\n```\n\n\n### Additional context\n\n```sh\r\nvitepress v0.16.1\r\nvite v2.4.4\r\n⠴ building client + server bundles...Use of eval is strongly discouraged, as it poses security risks and may cause issues with minification\r\n⠦ building client + server bundles...Use of eval is strongly discouraged, as it poses security risks and may cause issues with minification\r\n⠸ building client + server bundles...\r\n(!) Some chunks are larger than 500kb after minification. Consider:\r\n- Using dynamic import() to code-split the application\r\n- Use build.rollupOptions.output.manualChunks to improve chunking: https://rollupjs.org/guide/en/#outputmanualchunks\r\n- Adjust chunk size limit for this warning via build.chunkSizeWarningLimit.\r\n✓ building client + server bundles...\r\n⠙ rendering pages...Warning: Setting up fake worker.\r\nError: Setting up fake worker failed: \"document is not defined\".\r\n at /Users/mpanda/Documents/GitHub/MPC-Documention/node_modules/vitepress/dist/client/app/temp/assets/mpc.umd.7d0f3985.js:41728:54\r\n✓ rendering pages...\r\nbuild complete in 25.90s.\r\n``` \r\n\r\nI do get some warning when runing build process, my vue components library depends to PDF.js and some of my customized directives are using `document` for creting DOM, I'm not sure if it due to SSR of vitpress.\r\n\r\nAnd following are the configuration of my vitepress project.\r\n\r\n`docs/.vitepress/config.js`\r\n```js\r\nconst vue = require('@vitejs/plugin-vue')\r\n// import { Options as VuePluginOptions } from '@vitejs/plugin-vue'\r\nconst ssrTransformCustomDir = () => {\r\n return {\r\n props: [],\r\n needRuntime: true,\r\n }\r\n}\r\nmodule.exports = {\r\n title: 'MpandaStudio Components Library', // 顶部左侧标题\r\n base: '/', // 项目的根路径\r\n lang: 'zh-CN',\r\n head: [\r\n // 设置 描述 和 关键词\r\n [\r\n 'meta',\r\n {\r\n name: 'keywords',\r\n content:\r\n 'MPanda Studio Vue3 UI Components Library/MPanda Studio Vue3 UI组件库',\r\n },\r\n ],\r\n [\r\n 'meta',\r\n {\r\n name: 'description',\r\n content:\r\n '此UI组件库基于Vue3开发, 从之前开发的项目中提取并转换为Vue3组件。',\r\n },\r\n ],\r\n ],\r\n themeConfig: {\r\n sidebar: {\r\n // 侧边栏\r\n '/': [\r\n {\r\n text: 'Introduction 介绍',\r\n children: [\r\n { text: \"What's MPC 什么是MPC?\", link: '/' },\r\n { text: 'Start 从起步到芜湖', link: '/guide/start' },\r\n // { text: \"Configuration 文件配置\", link: \"/guide/configuration\" },\r\n ],\r\n },\r\n {\r\n text: 'Components 组件',\r\n children: [\r\n { text: 'Card 卡片', link: '/guide/Components/Card' },\r\n { text: 'Carousel 轮播图', link: '/guide/Components/Carousel' },\r\n { text: 'Modal 弹窗', link: '/guide/Components/Modal' },\r\n {\r\n text: 'PDFReader PDF阅读器',\r\n link: '/guide/Components/PDFReader',\r\n },\r\n ],\r\n },\r\n {\r\n text: 'Directives 命令',\r\n children: [\r\n { text: 'Suspend 悬浮', link: '/guide/Directives/Suspend' },\r\n { text: 'Tooltips 提示框', link: '/guide/Directives/Tooltips' },\r\n { text: 'Blur 模糊', link: '/guide/Directives/Blur' },\r\n ],\r\n },\r\n {\r\n text: 'Utils 工具包',\r\n children: [\r\n {\r\n text: 'isElementInViewport ',\r\n link: '/guide/Utils/isElementInViewport',\r\n },\r\n ],\r\n },\r\n ],\r\n },\r\n nav: [\r\n // 顶部右侧导航栏\r\n { text: '介绍', link: '/', activeMatch: '^/$|^/guide/' },\r\n {\r\n text: '更多',\r\n link: '/contact/',\r\n },\r\n ],\r\n },\r\n vue: { \r\n template: {\r\n compilerOptions: {\r\n directiveTransforms: {\r\n tooltips: ssrTransformCustomDir,\r\n suspend: ssrTransformCustomDir,\r\n blur: ssrTransformCustomDir,\r\n },\r\n },\r\n },\r\n },\r\n}\r\n\r\n```\r\n\r\n`docs/.vitepress/theme/index.js`\r\n```js\r\nimport DefaultTheme from 'vitepress/theme'\r\nimport MPC from '@mpanda/mpc'\r\nimport '@mpanda/mpc/lib/mpc.css'\r\nexport default {\r\n ...DefaultTheme,\r\n enhanceApp({ app }) {\r\n app.use(MPC)\r\n }\r\n}\r\n```\n\n### Validations\n\n- [X] Follow our [Code of Conduct](https://vuejs.org/coc)\n- [X] Read the [docs](https://vitepress.vuejs.org/).\n- [X] Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.",[3122],{"name":3123,"color":3124},"docs","0075ca",369,"hydration mismatch when using auto minify","2023-01-21T14:34:08Z","https://github.com/vuejs/vitepress/issues/369",0.8186736,["Reactive",3131],{},["Set"],["ShallowReactive",3134],{"$fTRc1wZytZ_XrK4EfJfei_Sz-An4H4Yy6syhVxH_PVJc":-1,"$fde-Unk0NXF3821V16Ex-NCSgDiCDfHr-fMHdztBc12A":-1},"/vuejs/vitepress/1523"]