\r\n\u003C/template>\r\n\r\n\u003Cstyle lang=\"scss\">\r\n\r\n\u003C/style>\r\n```\r\n\n\n### Describe the solution you'd like\n\nCurrently, only when rendering Markdown or HTML directly can the `content` parameter be passed to load page content as needed. I hope that when using local files as build data and needing Vue components to render pages, data can also be loaded according to page parameters as needed.\n\n### Describe alternatives you've considered\n\n_No response_\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.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.",[],3269,"closed","Can local file data be loaded on demand based on the page?","2023-12-14T00:04:41Z","https://github.com/vuejs/vitepress/issues/3269",0.6810702,{"description":2891,"labels":2892,"number":2894,"owner":2874,"repository":2875,"state":2885,"title":2895,"updated_at":2896,"url":2897,"score":2898},"### Describe the bug\n\nInstead of italic font rendering, only regular font is displayed in Safari.\n\n### Reproduction\n\nWrite a markdown with _italic rendering_, and open in Safari.\n\n### Expected behavior\n\nExpected to render italic font.\n\n### System Info\n\n```shell\nnot important\n```\n\n\n### Additional context\n\nRelevant issue: https://github.com/vuejs/vitepress/issues/759\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.",[2893],{"name":2868,"color":2869},1558,"Italic font rendering doesn't work in Safari","2023-01-21T14:17:11Z","https://github.com/vuejs/vitepress/issues/1558",0.70620626,{"description":2900,"labels":2901,"number":2905,"owner":2874,"repository":2875,"state":2885,"title":2906,"updated_at":2907,"url":2908,"score":2909},"### Describe the bug\r\n\r\n- 自定义组件的prop类型为Node类型:\r\n```\r\nimport { defineComponent, ref } from 'vue';\r\nimport ProFormItem from '../../pro-form-item';\r\nimport { Upload, Button } from 'ant-design-vue';\r\nimport { UploadOutlined } from '@ant-design/icons-vue';\r\nexport default defineComponent({\r\n name: 'SgProFormUpload',\r\n props: {\r\n icon: {\r\n type: Node,\r\n default: \u003CUploadOutlined>\u003C/UploadOutlined>\r\n },\r\n title: {\r\n type: String,\r\n default: '单击上传'\r\n },\r\n max: {\r\n type: Number,\r\n default: 10\r\n },\r\n action: {\r\n type: String,\r\n default: ''\r\n },\r\n disable: {\r\n type: Boolean,\r\n default: false\r\n },\r\n listType: {\r\n type: String,\r\n default: 'text'\r\n }\r\n },\r\n setup(props, { attrs }) {\r\n const isPictureCard = attrs.fieldProps['listType'] !== ('picture-card' || 'picture');\r\n return () => (\r\n \u003CProFormItem width={'auto'} {...props} {...attrs}>\r\n \u003CUpload fileList={attrs['model'][attrs['name']]} action={props.action}>\r\n {attrs['model'][attrs['name']].length \u003C props.max ? (\r\n isPictureCard ? (\r\n \u003CButton disable={props.disable}>\r\n {props.icon}\r\n {props.title}\r\n \u003C/Button>\r\n ) : (\r\n \u003Cspan>\r\n {' '}\r\n {props.icon}\r\n {props.title}\r\n \u003C/span>\r\n )\r\n ) : null}\r\n \u003C/Upload>\r\n \u003C/ProFormItem>\r\n );\r\n }\r\n});\r\n\r\n```\r\n\r\n- 执行 `pnpm run build` 会报错\r\n```\r\nbuild error:\r\nReferenceError: Node is not defined\r\n```\r\n\r\n### Reproduction\r\n\r\n- 自定义组件库,其中一个组件的prop类型为Node类型:\r\n```\r\nimport { defineComponent, ref } from 'vue';\r\nimport ProFormItem from '../../pro-form-item';\r\nimport { Upload, Button } from 'ant-design-vue';\r\nimport { UploadOutlined } from '@ant-design/icons-vue';\r\nexport default defineComponent({\r\n name: 'SgProFormUpload',\r\n props: {\r\n icon: {\r\n type: Node,\r\n default: \u003CUploadOutlined>\u003C/UploadOutlined>\r\n },\r\n title: {\r\n type: String,\r\n default: '单击上传'\r\n },\r\n max: {\r\n type: Number,\r\n default: 10\r\n },\r\n action: {\r\n type: String,\r\n default: ''\r\n },\r\n disable: {\r\n type: Boolean,\r\n default: false\r\n },\r\n listType: {\r\n type: String,\r\n default: 'text'\r\n }\r\n },\r\n setup(props, { attrs }) {\r\n const isPictureCard = attrs.fieldProps['listType'] !== ('picture-card' || 'picture');\r\n return () => (\r\n \u003CProFormItem width={'auto'} {...props} {...attrs}>\r\n \u003CUpload fileList={attrs['model'][attrs['name']]} action={props.action}>\r\n {attrs['model'][attrs['name']].length \u003C props.max ? (\r\n isPictureCard ? (\r\n \u003CButton disable={props.disable}>\r\n {props.icon}\r\n {props.title}\r\n \u003C/Button>\r\n ) : (\r\n \u003Cspan>\r\n {' '}\r\n {props.icon}\r\n {props.title}\r\n \u003C/span>\r\n )\r\n ) : null}\r\n \u003C/Upload>\r\n \u003C/ProFormItem>\r\n );\r\n }\r\n});\r\n\r\n```\r\n\r\n- 使用 vitepress构建组件库文档,docs/.vitepress/theme/index.js 引入该组件库\r\n```\r\nimport { h } from 'vue';\r\nimport { VPTheme } from '@vue/theme';\r\nimport AntDesignVue from 'ant-design-vue';\r\nimport SinogearVue from '../../../lib/index.js';\r\n\r\nexport default Object.assign({}, VPTheme, {\r\n Layout: () => {\r\n return h(VPTheme.Layout, null);\r\n },\r\n enhanceApp({ app }) {\r\n app.use(AntDesignVue);\r\n app.use(SinogearVue);\r\n }\r\n});\r\n\r\n```\r\n\r\n- 执行 `pnpm run build`\r\n\r\n\r\n### Expected behavior\r\n\r\n无报错\r\n\r\n### System Info\r\n\r\n```shell\r\n\"vitepress\": \"^1.0.0-alpha.31\",\r\n```\r\n\r\n\r\n### Additional context\r\n\r\n_No response_\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] Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.",[2902],{"name":2903,"color":2904},"bug: pending triage","e99695",1728,"Build Error: ReferenceError: Node is not defined","2023-01-21T14:17:00Z","https://github.com/vuejs/vitepress/issues/1728",0.741255,{"description":2911,"labels":2912,"number":2915,"owner":2874,"repository":2875,"state":2885,"title":2916,"updated_at":2917,"url":2918,"score":2919},"### Describe the bug\r\n\r\nSimilar to https://github.com/vuejs/vitepress/issues/849\r\n\r\nVitepress imports `body-scroll-lock` and `@vueuse/core` from the app, rather than from vitepress (which declares the dependency).\r\n\r\nThis is a problem then modules are resolved with pnpm or Yarn which do not allow for resolution of hoisted node_modules. This has historically been not affected Vite because it would ignore the importing context when resolving dependencies (which is fixed in https://github.com/vitejs/vite/pull/9763)\r\n\r\n### Reproduction\r\n\r\nUse https://github.com/vitejs/vite/pull/9763 for Vite when using Vitepress\r\n\r\n### Expected behavior\r\n\r\nVitepress should instead import and/or resolve `body-scroll-lock` and `@vueuse/core` from Vitepress itself rather than the host app (which probably does not declare dependencies on `body-scroll-lock` and `@vueuse/core`.\r\n\r\n### System Info\r\n\r\n```shell\r\nSystem:\r\n OS: macOS 13.3\r\n CPU: (10) arm64 Apple M1 Max\r\n Memory: 18.95 GB / 64.00 GB\r\n Shell: 5.9 - /bin/zsh\r\n Binaries:\r\n Node: 18.6.0 - ~/Library/Caches/fnm_multishells/12267_1680539322066/bin/node\r\n npm: 8.13.2 - /opt/uber/bin/npm\r\n Browsers:\r\n Chrome: 111.0.5563.146\r\n Safari: 16.4\r\n npmPackages:\r\n vitepress: ^1.0.0-alpha.61 => 1.0.0-alpha.61\r\n```\r\n\r\n\r\n### Additional context\r\n\r\n_No response_\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] Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.",[2913,2914],{"name":2903,"color":2904},{"name":2871,"color":2872},2187,"Vitepress relies on node_modules hoisting for body-scroll-lock and @vueuse/core","2023-08-14T00:04:20Z","https://github.com/vuejs/vitepress/issues/2187",0.7424562,{"description":2921,"labels":2922,"number":2926,"owner":2874,"repository":2875,"state":2885,"title":2927,"updated_at":2928,"url":2929,"score":2930},"### Is your feature request related to a problem? Please describe.\r\n\r\nConveniently use content-adaptive layout in components on the home page\r\n\r\n### Describe the solution you'd like\r\n\r\n`.vitepress/theme/index.ts`:\r\n```ts\r\nimport HomePage from './component/HomePage'\r\n\r\nexport default {\r\n Layout: () => {\r\n return h(Theme.Layout, null, {\r\n 'home-features-after': () => h(HomePage),\r\n })\r\n },\r\n```\r\n\r\n---\r\n\r\n`HomePage.vue`:\r\n\r\n```html\r\n\u003Cscript setup lang=\"ts\">\r\nimport{ VPHomeContent } from 'vitepress/theme'\r\n\u003C/script>\r\n\r\n\u003Ctemplate>\r\n\t\u003CVPHomeContent>\r\n\t\t\u003C!-- my custom content -->\r\n\t\u003C/VPHomeContent>\r\n\u003C/template>\r\n```\r\n\r\n### Describe alternatives you've considered\r\n\r\n_No response_\r\n\r\n### Additional context\r\n\r\n_No response_\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.",[2923],{"name":2924,"color":2925},"contribution welcome","11E4B8",3954,"[New feature] export `VPHomeContent` to provide content-adaptive layout","2024-06-22T04:41:46Z","https://github.com/vuejs/vitepress/issues/3954",0.74394315,{"description":2932,"labels":2933,"number":2937,"owner":2874,"repository":2875,"state":2885,"title":2938,"updated_at":2939,"url":2940,"score":2941},"### Describe the bug\n\nThis is not working as intended.\r\n\r\n\r\n\r\n[StackBlitz](https://vitepress.new/)\r\n\r\nWhen you click, it will take you here, and the side terminal will show \"installing dependencies.\"\r\n\r\n\r\n\r\nBut after a few seconds, it crashes.\r\n\r\n\r\n\r\nI checked it with other browsers as well, but the same thing is happening.\n\n### Reproduction\n\nSimply go to this link [StackBlitz](https://vitepress.new/).\r\n\r\nAnd wait for few seconds.\r\n\r\n\r\n \n\n### Expected behavior\n\nIt should not crash.\n\n### System Info\n\n```sh\nSystem:\r\n OS: Linux 5.0 undefined\r\n CPU: (4) x64 Intel(R) Core(TM) i9-9880H CPU @ 2.30GHz\r\n Memory: 0 Bytes / 0 Bytes\r\n Shell: 1.0 - /bin/jsh\r\nBinaries:\r\n Node: 16.20.0 - /usr/local/bin/node\r\n Yarn: 1.22.19 - /usr/local/bin/yarn\r\n npm: 9.4.2 - /usr/local/bin/npm\r\n pnpm: 8.6.10 - /usr/local/bin/pnpm\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.",[2934],{"name":2935,"color":2936},"upstream","BF29ED",2838,"starter template is crashing.","2023-09-01T00:04:33Z","https://github.com/vuejs/vitepress/issues/2838",0.74568355,{"description":2943,"labels":2944,"number":2948,"owner":2874,"repository":2875,"state":2885,"title":2949,"updated_at":2950,"url":2951,"score":2952},"### Describe the bug\n\n使用官方文档的部署脚本成功部署到Github Pages之后,此时如果配置使用自定义域名的话,访问时样式会丢失\n\n### Reproduction\n\n1. 博客目录结构如下所示:\u003Cbr />\r\n2. 配置文件如下所示:\u003Cbr /> \n\n### Expected behavior\n\n使用 Github 自带的 https://xihuanxiaorang.github.io/docs/ 访问就没有任何问题,如果是使用自定义域名 https://docs.xiaorang.fun/ 的话,样式就会丢失\n\n### System Info\n\n```Text\nSystem:\r\n OS: Windows 10 10.0.19045\r\n CPU: (4) x64 Intel(R) Core(TM) i5-5200U CPU @ 2.20GHz\r\n Memory: 659.73 MB / 3.92 GB\r\n Binaries:\r\n Node: 20.11.0 - E:\\nodejs\\node.EXE\r\n Yarn: 1.22.21 - E:\\nodejs\\node_global\\yarn.CMD\r\n npm: 10.2.4 - E:\\nodejs\\npm.CMD\r\n pnpm: 8.14.3 - E:\\nodejs\\node_global\\pnpm.CMD\r\n Browsers:\r\n Edge: Chromium (120.0.2210.144)\r\n Internet Explorer: 11.0.19041.3636\r\n npmPackages:\r\n vitepress: 1.0.0-rc.40 => 1.0.0-rc.40\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.",[2945],{"name":2946,"color":2947},"question","5D5FAE",3513,"部署到Github Pages之后,如果使用自定义域名的话样式会丢失","2024-02-07T00:04:15Z","https://github.com/vuejs/vitepress/issues/3513",0.74666125,{"description":2954,"labels":2955,"number":2957,"owner":2874,"repository":2875,"state":2885,"title":2958,"updated_at":2959,"url":2960,"score":2961},"### Describe the bug\n\n只是开启本地搜索未做任何更改\r\n\r\n\r\n\n\n### Reproduction\n\n\n\n### Expected behavior\n\n\n\n### System Info\n\n```shell\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.dev).\n- [X] Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.",[2956],{"name":2903,"color":2904},2287,"貌似从7.3开始本地搜索报错","2023-05-05T00:04:14Z","https://github.com/vuejs/vitepress/issues/2287",0.7495027,{"description":2963,"labels":2964,"number":2965,"owner":2874,"repository":2875,"state":2885,"title":2966,"updated_at":2967,"url":2968,"score":2969},"### Is your feature request related to a problem? Please describe.\n\nThere is currently no easy way to set the text direction of an entire website. While it is possible to add global CSS, that is [not the recommended approach](https://www.w3.org/International/tutorials/bidi-xhtml/index#browser).\n\n### Describe the solution you'd like\n\nIt would be useful to add a config to set `dir=\"ltr/rtl\"` of the `\u003Chtml>` element, so that docs written in [RTL scripts](https://www.w3.org/International/questions/qa-scripts) using VP can be better supported.\n\n### Describe alternatives you've considered\n\nUse the CSS [direction](https://www.w3.org/TR/css-writing-modes-4/#direction) property to customize the theme.\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] 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.",[],902,"How to set the text direction?","2023-01-25T00:04:23Z","https://github.com/vuejs/vitepress/issues/902",0.751357,["Reactive",2971],{},["Set"],["ShallowReactive",2974],{"$fTRc1wZytZ_XrK4EfJfei_Sz-An4H4Yy6syhVxH_PVJc":-1,"$f1d9HNGkSQIzN662NasNbRYWOQFu9wVfYdWEWPF4rRuA":-1},"/vuejs/vitepress/1532"]