\r\n \u003C/template>\r\n \u003C/Layout>\r\n\u003C/template>\r\n\r\n\u003Cstyle>\r\ndiv.aside {\r\n\tdisplay: none !important;\r\n}\r\n\u003C/style>\r\n```\r\n\r\nhttps://github.com/user-attachments/assets/68de0b4b-def2-4304-995c-fc8a09482138\r\n\r\nHowever, it's even better if we can have it show underneath the active link like so:\r\n\r\n\r\n\r\nThe exact feature request to achieve this is:\r\n\r\n1. Add `#sidebar-nav-active-link-after` slot to layout\r\n2. expose `VPDocAside`, because currently it's only importable via `dist`\r\n\r\n### Describe alternatives you've considered\r\n\r\n_No response_\r\n\r\n### Additional context\r\n\r\nI can make a PR to achieve this if the proposal is accepted\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.dev).\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.",[2867],{"name":2868,"color":2869},"stale","ededed",4048,"vuejs","vitepress","open","Add `#sidebar-nav-active-link-after` slot + expose `VPDocAside`","2024-09-29T09:06:04Z","https://github.com/vuejs/vitepress/issues/4048",0.6988891,{"description":2879,"labels":2880,"number":2885,"owner":2871,"repository":2872,"state":2873,"title":2886,"updated_at":2887,"url":2888,"score":2889},"As mentioned in #253, we probably should add a community examples page. Here are the things that we can add:\r\n\r\n- Markdown Extensions\r\n * Code Groups\r\n * Footnotes\r\n * Task Lists\r\n * Maths, Diagrams, Charts\r\n\r\n- SEO Improvement\r\n * Sitemaps\r\n * Meta Tags\r\n\r\n- Image Extensions\r\n * Zoom on Click\r\n * Image Gallary\r\n * Figures and Captions\r\n\r\n- Complex Use-Cases\r\n * Building PWA\r\n * CSS Isolation\r\n * Dynamic Sidebar\r\n * Multiple Bases\r\n * Offline Search\r\n * Writing Blogs\r\n * Versioning\r\n\r\n- Integration with other libraries:\r\n * TailwindCSS\r\n * Styleguidist (might be tricky)\r\n * Pinia\r\n\r\nI created this list based on popular VuePress plugins and VitePress issues. Having such a page before v1 will significantly ease up migration. If you think the list is missing something common then please comment.\r\n\r\nSome of these can be officially supported too, especially the markdown extensions.",[2881,2884],{"name":2882,"color":2883},"docs","0075ca",{"name":2868,"color":2869},883,"Add examples","2024-03-07T11:20:19Z","https://github.com/vuejs/vitepress/issues/883",0.7552097,{"description":2891,"labels":2892,"number":2897,"owner":2871,"repository":2872,"state":2873,"title":2898,"updated_at":2899,"url":2900,"score":2901},"### Is your feature request related to a problem? Please describe.\n\nWhenever I execute pnpm docs:build, I always fail to package successfully and get an error ReferenceError: document is not defined.\n\n### Describe the solution you'd like\n\ndocs system is built successfully! No error is reported when executing pnpm docs:build. And a successful dist package is packaged.\n\n### Describe alternatives you've considered\n\n_No response_\n\n### Additional context\n\ngithub : https://github.com/Hollelihanqi/qh-ui.git\r\n/** @type {import('vitepress').Theme} */\r\n\r\nimport { h } from \"vue\";\r\nimport VPApp, { NotFound, globals } from \"../vitepress\";\r\nimport DefaultTheme from \"vitepress/theme\";\r\n// import { define } from '../utils/types'\r\n\r\n// import 'uno.css'\r\nimport \"virtual:uno.css\";\r\nimport './style.css'\r\n\r\nimport \"../vitepress/styles/base.scss\";\r\n\r\nimport ElementPlus from \"element-plus\";\r\nimport \"element-plus/dist/index.css\";\r\nimport YtoUplus from '@yto/custom'\r\nimport '@yto/custom/index.css'\r\n\r\n// import type { Theme } from 'vitepress'\r\nexport default {\r\n extends: DefaultTheme,\r\n NotFound,\r\n Layout: VPApp,\r\n async enhanceApp({ app }) {\r\n globals.forEach(([name, Comp]) => {\r\n app.component(name, Comp);\r\n });\r\n app.use(ElementPlus);\r\n app.use(YtoUplus);\r\n // @ts-ignore\r\n // if (!import.meta.env.SSR) {\r\n // const custom = await import('@yto/custom').then((m) => m)\r\n // app.use(custom.default)\r\n // }\r\n },\r\n // Layout() {\r\n // return h(DefaultTheme.Layout, null, {\r\n // \"aside-outline-before\": () => h(\"div\", {}, \"我是前置内容\"),\r\n // });\r\n // },\r\n};\n\n### Validations\n\n- [X] Follow our [Code of Conduct](https://vuejs.org/about/coc.html)\n- [X] Read the [docs](https://vitepress.dev).\n- [X] Read the [Contributing Guidelines](https://github.com/vuejs/vitepress/blob/main/.github/contributing.md).\n- [X] Check that there isn't already an issue that asks for the same feature to avoid creating a duplicate.",[2893,2896],{"name":2894,"color":2895},"need more info","bdbefc",{"name":2868,"color":2869},4269,"Build error: ReferenceError: document is not defined","2025-03-02T18:08:24Z","https://github.com/vuejs/vitepress/issues/4269",0.79160213,{"description":2903,"labels":2904,"number":2909,"owner":2871,"repository":2872,"state":2873,"title":2910,"updated_at":2911,"url":2912,"score":2913},"**Describe the bug**\r\nVitepress uses a regex function to help generate \"lean\" versions of the js files used to load content into a page. The .lean.js files are stripped of the static page content and are used to [avoid redundancy](https://github.com/vuejs/vitepress/blob/v0.13.0/src/client/app/index.ts#L94).\r\n\r\nThe [regex function](https://github.com/vuejs/vitepress/blob/v0.13.0/src/node/plugin.ts#L11) looks for a specific pattern generated by the Vue compiler, however there seems to be a number of scenarios where the code that is generated doesn't match this pattern.\r\n\r\nVitepress expects the code to look like this, with a single sting of text for all the HTML.\r\n```\r\nconst _hoisted_1 = /*#__PURE__*/createStaticVNode(\"\u003Cp>With a new year upon us, we also have a new blog! In this post...\r\n```\r\nHowever, depending on the content of the .md file, sometimes it gets generated as a large number of `createVNode` functions instead of a single `createStaticVNode` function. e.g.\r\n```\r\nconst _hoisted_1 = /*#__PURE__*/createVNode(\"p\", { align: \"center\" }, [\r\n /*#__PURE__*/createVNode(\"img\", {\r\n width: \"200\",\r\n src: _imports_0\r\n })\r\n], -1 /* HOISTED */);\r\nconst _hoisted_2 = /*#__PURE__*/createVNode(\"p\", null, \"Today we are proud to announce the official release of Vue.js 3.0 \\\"One Piece\\\". This new major version of the framework provides improved performance, smaller bundle sizes, better TypeScript integration, new APIs for tackling large scale use cases, and a solid foundation for long-term future iterations of the framework.\", -1 /* HOISTED */);\r\nconst _hoisted_3 = /*#__PURE__*/createVNode(\"hr\", null, null, -1 /* HOISTED */);\r\n```\r\nWhen the generated code looks like that, the regex fails to match, and the .lean.js files ends up being exactly the same size as the corresponding .js file. This can be significant for content-heavy pages and it causes unnecessary processing on the client side.\r\n\r\n**To Reproduce**\r\nI encountered two easy ways to trigger the unwanted behavior, but there are likely many more. I used the [Vue Blog](https://github.com/vuejs/blog) as a reference to validate that the issue wasn't specific to my project.\r\n\r\n1) Simple/Small pages. If you modify [hello-2021.md](https://github.com/vuejs/blog/blob/master/posts/hello-2021.md) So that it only contains the first heading and first paragraph the lean.js file ends up being identical to the full version.\r\n\r\n2) Reference a local image file. If you modify [vue-3-one-piece.md](https://github.com/vuejs/blog/blob/master/posts/vue-3-one-piece.md) so that the image on the page points to the local logo.svg file, the corresponding .lean.js file goes from less than 1KB to almost 15KB\r\n\r\nChange this:\r\n```\r\n\u003Cp align=\"center\">\r\n \u003Cimg width=\"200\" src=\"https://user-images.githubusercontent.com/499550/93624428-53932780-f9ae-11ea-8d16-af949e16a09f.png\">\r\n\u003C/p>\r\n```\r\nTo this:\r\n```\r\n\u003Cp align=\"center\">\r\n \u003Cimg width=\"200\" src=\"/logo.svg\">\r\n\u003C/p>\r\n```\r\n\r\n**Expected behavior**\r\nThe `posts_vue-3-one-piece.md.12345abcd.lean.js` file should always be much smaller than `posts_vue-3-one-piece.md.12345abcd.js`\r\n\r\n**System Info**\r\n- vitepress version: v0.13.0\r\n- vite version: v2.1.5\r\n- Node version: v12.20.0\r\n- OS version: Windows 10\r\n",[2905,2908],{"name":2906,"color":2907},"build","377ba8",{"name":2868,"color":2869},289,"Stripped page assets (.lean.js) are not actually being stripped","2025-03-02T18:11:49Z","https://github.com/vuejs/vitepress/issues/289",0.80736357,{"description":2915,"labels":2916,"number":2920,"owner":2871,"repository":2872,"state":2921,"title":2922,"updated_at":2923,"url":2924,"score":2925},"### Describe the bug\n\nhoistedTags undefined appears after install vitepress-theme-demoblock configures the markdown slot\n\n### Reproduction\n\nimport DefaultTheme from 'vitepress/theme'\r\nimport HqUI from '../../../src/entry'\r\nimport 'vitepress-theme-demoblock/theme/styles/index.css'\r\nimport { registerComponents } from './register-components'\r\n\r\nexport default {\r\n ...DefaultTheme,\r\n enhanceApp({app}){\r\n app.use(HqUI)\r\n registerComponents(app)\r\n }\r\n}\r\nimport Demo from 'vitepress-theme-demoblock/components/Demo.vue'\r\nimport DemoBlock from 'vitepress-theme-demoblock/components/DemoBlock.vue'\r\nexport function registerComponents(app) {\r\n app.component('Demo', Demo)\r\n app.component('DemoBlock', DemoBlock)\r\n}\r\n\n\n### Expected behavior\n\nimport DefaultTheme from 'vitepress/theme'\r\nimport HqUI from '../../../src/entry'\r\nimport 'vitepress-theme-demoblock/theme/styles/index.css'\r\nimport { registerComponents } from './register-components'\r\n\r\nexport default {\r\n ...DefaultTheme,\r\n enhanceApp({app}){\r\n app.use(HqUI)\r\n registerComponents(app)\r\n }\r\n}\r\nimport Demo from 'vitepress-theme-demoblock/components/Demo.vue'\r\nimport DemoBlock from 'vitepress-theme-demoblock/components/DemoBlock.vue'\r\nexport function registerComponents(app) {\r\n app.component('Demo', Demo)\r\n app.component('DemoBlock', DemoBlock)\r\n}\r\n\n\n### System Info\n\n```shell\nimport DefaultTheme from 'vitepress/theme'\r\nimport HqUI from '../../../src/entry'\r\nimport 'vitepress-theme-demoblock/theme/styles/index.css'\r\nimport { registerComponents } from './register-components'\r\n\r\nexport default {\r\n ...DefaultTheme,\r\n enhanceApp({app}){\r\n app.use(HqUI)\r\n registerComponents(app)\r\n }\r\n}\r\nimport Demo from 'vitepress-theme-demoblock/components/Demo.vue'\r\nimport DemoBlock from 'vitepress-theme-demoblock/components/DemoBlock.vue'\r\nexport function registerComponents(app) {\r\n app.component('Demo', Demo)\r\n app.component('DemoBlock', DemoBlock)\r\n}\n```\n\n\n### Additional context\n\n_No response_\n\n### Validations\n\n- [X] Follow our [Code of Conduct](https://vuejs.org/about/coc.html)\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.",[2917],{"name":2918,"color":2919},"bug: pending triage","e99695",1420,"closed","Cannot read properties of undefined (reading 'hoistedTags')","2023-01-21T14:25:18Z","https://github.com/vuejs/vitepress/issues/1420",0.76772755,{"description":2927,"labels":2928,"number":2930,"owner":2871,"repository":2872,"state":2921,"title":2931,"updated_at":2932,"url":2933,"score":2934},"### Describe the bug\n\nWhen the title has the badge, the generated catalog contains badge text (but not when you click on the anchor of the title).\n\n### Reproduction\n\nDocs:\r\n``` md\r\n## success \u003CBadge type=\"danger\" text=\"2.5.0\" />\r\n```\r\nPreview:\r\n\r\n\n\n### Expected behavior\n\nWhen the title has the badge, the corresponding directory text should not have badge text.\n\n### System Info\n\n```shell\nSystem:\r\n OS: Windows 10 10.0.19044\r\n CPU: (4) x64 Intel(R) Core(TM) i7-7500U CPU @ 2.70GHz\r\n Memory: 1.70 GB / 15.43 GB\r\nBinaries:\r\n Node: 14.20.0 - D:\\nodejs\\node.EXE\r\n Yarn: 1.22.19 - D:\\nodejs\\yarn.CMD\r\n npm: 6.14.17 - D:\\nodejs\\npm.CMD\r\nBrowsers:\r\n Edge: Spartan (44.19041.1266.0), Chromium (108.0.1462.54)\r\n Internet Explorer: 11.0.19041.1566\r\nnpmPackages:\r\n vitepress: ^1.0.0-alpha.36 => 1.0.0-alpha.36\n```\n\n\n### Additional context\n\n_No response_\n\n### Validations\n\n- [X] Follow our [Code of Conduct](https://vuejs.org/about/coc.html)\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.",[2929],{"name":2918,"color":2919},1789,"Outline has badge text","2023-01-21T14:16:43Z","https://github.com/vuejs/vitepress/issues/1789",0.7729084,{"description":2936,"labels":2937,"number":2939,"owner":2871,"repository":2872,"state":2921,"title":2940,"updated_at":2941,"url":2942,"score":2943},"",[2938],{"name":2894,"color":2895},2911,"我应当如何升级我的模板,目前是v1.0.0-beta.2","2023-09-15T00:04:13Z","https://github.com/vuejs/vitepress/issues/2911",0.77997154,{"description":2945,"labels":2946,"number":2951,"owner":2871,"repository":2872,"state":2921,"title":2952,"updated_at":2953,"url":2954,"score":2955},"Currently there are lot of repeated icons in generated dist/**/*.html files. Those can be avoided by these.",[2947,2948],{"name":2868,"color":2869},{"name":2949,"color":2950},"perf","378A61",3399,"Switch to CSS icons or SVG sprites","2024-02-25T00:05:04Z","https://github.com/vuejs/vitepress/issues/3399",0.7811846,{"description":2957,"labels":2958,"number":2960,"owner":2871,"repository":2872,"state":2921,"title":2961,"updated_at":2962,"url":2963,"score":2964},"### Describe the bug\n\nVersion: vitepress 1.0.0 -alpha.50\r\n\r\nAfter I use `vitepress init` to create template project, and use it, I found that `Site Data` show error\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\nI think the display maybe need to fixed\n\n### Reproduction\n\n- vitepress init\r\n- pnpm docs:dev\r\n- click to Examples - Runtime API Examples\n\n### Expected behavior\n\nMaybe need to fixed\n\n### System Info\n\n```shell\nSystem:\r\n OS: Windows 10 10.0.22000\r\n CPU: (16) x64 AMD Ryzen 7 5800H with Radeon Graphics\r\n Memory: 5.58 GB / 13.87 GB\r\n Binaries:\r\n Node: 18.14.2 - D:\\nodejs\\node.EXE\r\n Yarn: 1.22.19 - D:\\ENVIRONMENT\\nodejs\\node_global\\yarn.CMD\r\n npm: 9.5.0 - D:\\nodejs\\npm.CMD\r\n Browsers:\r\n Edge: Spartan (44.22000.120.0), Chromium (110.0.1587.63)\r\n Internet Explorer: 11.0.22000.120\r\n npmPackages:\r\n vitepress: 1.0.0-alpha.50 => 1.0.0-alpha.50\n```\n\n\n### Additional context\n\n_No response_\n\n### Validations\n\n- [X] Follow our [Code of Conduct](https://vuejs.org/about/coc.html)\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.",[2959],{"name":2918,"color":2919},2051,"A display error about `vitepress init` template project","2023-03-17T00:04:22Z","https://github.com/vuejs/vitepress/issues/2051",0.7848135,{"description":2966,"labels":2967,"number":2969,"owner":2871,"repository":2872,"state":2921,"title":2970,"updated_at":2971,"url":2972,"score":2973},"### Describe the bug\n\n\r\n复现方式,在服务器部署后,访问具体的某一个子菜单后,鼠标选中浏览器地址,按下enter键。就会导致如图效果,首页会和选中页面重合\n\n### Reproduction\n\n在服务器部署后,访问具体的某一个子菜单后,鼠标选中浏览器地址,按下enter键\r\n例如 :\r\n我已经定位到这个具体的菜单 : http://127.0.0.1:80/demo/specify01\r\n\r\n当我在浏览器地址栏使用鼠标选中地址栏并且按下enter键的时候,就会出现上面的情况\n\n### Expected behavior\n\n我希望我在定位到具体的菜单后,在浏览器快速访问时,会帮我定位到具体的菜单,而不是和首页重合\n\n### System Info\n\n```sh\n1.0.0-beta.3\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.",[2968],{"name":2918,"color":2919},2556,"页面与首页重合","2023-07-07T00:04:41Z","https://github.com/vuejs/vitepress/issues/2556",0.7856008,["Reactive",2975],{},["Set"],["ShallowReactive",2978],{"$fTRc1wZytZ_XrK4EfJfei_Sz-An4H4Yy6syhVxH_PVJc":-1,"$flGRSG-7dkVkNeyLpNJpoaih0drs-oUosSp3ldTwf_x4":-1},"/vuejs/vitepress/3259"]