\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.",[3051],{"name":3052,"color":3053},"question","5D5FAE",3513,"部署到Github Pages之后,如果使用自定义域名的话样式会丢失","2024-02-07T00:04:15Z","https://github.com/vuejs/vitepress/issues/3513",0.6502557,{"description":3060,"labels":3061,"number":3062,"owner":3023,"repository":3024,"state":3025,"title":3063,"updated_at":3064,"url":3065,"score":3066},"### Describe the bug\n\nWhen running build, the browser API reports an error undefined, and the dependent package will also warn, how should I solve this problem\r\n\r\n\u003Cimg width=\"482\" alt=\"Snipaste_2023-06-05_18-14-50\" src=\"https://github.com/vuejs/vitepress/assets/37688666/3c95deee-928b-47c7-8738-fd33e28aff89\">\r\n\n\n### Reproduction\n\nhttps://github.com/peiyanlu/vite-press/ ,run pnpm build\n\n### Expected behavior\n\nThe browser API does not report an error\n\n### System Info\n\n```sh\nSystem: \r\n OS: Windows 10 10.0.19044 \r\n CPU: (16) x64 11th Gen Intel(R) Core(TM) i7-11800H @ 2.30GHz\r\n Memory: 34.75 GB / 63.71 GB \r\n Binaries: \r\n Node: 14.18.2 - C:\\Program Files\\nodejs\\node.EXE \r\n Yarn: 1.22.19 - C:\\Program Files (x86)\\Yarn\\bin\\yarn.CMD \r\n npm: 6.14.15 - C:\\Program Files\\nodejs\\npm.CMD \r\n Browsers: \r\n Edge: Spartan (44.19041.1266.0), Chromium (114.0.1823.37) \r\n Internet Explorer: 11.0.19041.1566 \r\n npmPackages: \r\n vitepress: 1.0.0-beta.1 => 1.0.0-beta.1\n```\n\n\n### Additional context\n\n\u003Cimg width=\"336\" alt=\"Snipaste_2023-06-05_18-21-13\" src=\"https://github.com/vuejs/vitepress/assets/37688666/c2980cf1-4b52-413b-bb5f-5546bdda51f8\">\r\n\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.",[],2478,"The browser API reports an error","2023-06-14T00:04:16Z","https://github.com/vuejs/vitepress/issues/2478",0.65155214,{"description":3068,"labels":3069,"number":3071,"owner":3023,"repository":3024,"state":3025,"title":3072,"updated_at":3073,"url":3074,"score":3075},"### Describe the bug\r\n\r\n\r\n\r\n\r\n\r\n\r\n### Reproduction\r\n\r\nyarn add vitepress\r\n\r\nedit package.json\r\n\r\n~~~\r\n \"scripts\": {\r\n \"docs:dev\": \"vitepress dev docs\",\r\n \"docs:build\": \"vitepress build docs\",\r\n \"docs:serve\": \"vitepress serve docs\"\r\n }\r\n~~~\r\n\r\nyarn docs:dev\r\n\r\n### Expected behavior\r\n\r\nnormal display\r\n\r\n### System Info\r\n\r\n```shell\r\nSystem:\r\n OS: Windows 10 10.0.17763\r\n CPU: (8) x64 Intel(R) Xeon(R) CPU E3-1230 V2 @ 3.30GHz\r\n Memory: 3.25 GB / 7.93 GB\r\n Binaries:\r\n Node: 16.5.0 - C:\\Program Files\\nodejs\\node.EXE\r\n Yarn: 1.22.10 - ~\\AppData\\Roaming\\npm\\yarn.CMD\r\n npm: 7.20.5 - C:\\Program Files\\nodejs\\npm.CMD\r\n Browsers:\r\n Chrome: 92.0.4515.107\r\n Edge: Spartan (44.17763.831.0)\r\n Internet Explorer: 11.0.17763.771\r\n npmPackages:\r\n vitepress: ^0.16.1 => 0.16.1\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/coc)\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.",[3070],{"name":3020,"color":3021},362,"Strange symbols appear","2023-01-21T16:22:12Z","https://github.com/vuejs/vitepress/issues/362",0.65246385,{"description":3077,"labels":3078,"number":3080,"owner":3023,"repository":3024,"state":3025,"title":3081,"updated_at":3082,"url":3083,"score":3084},"### Describe the bug\r\n\r\n之前我一直在使用 `vitepress: ^1.0.0-beta.5` 版本,近期升级最新版本之后发现 `withBase` 出现了问题,某些地方的 `withBase` 不生效了,当我回退到 `1.0.0-beta.5` 版本,`withBase` 表现恢复正常。查看版本更新记录发现并没有对 `withBase` 作出更改。\r\n\r\n### Reproduction\r\n\r\nhttps://github.com/peiyanlu/vite-press/blob/docs-deploy/docs/archive/components/DocTimeline.vue#L125\r\n\r\n### Expected behavior\r\n\r\n`withBase` 表现正常\r\n\r\n### System Info\r\n\r\n```Text\r\nSystem:\r\n OS: Windows 11 10.0.26100\r\n CPU: (32) x64 13th Gen Intel(R) Core(TM) i9-13980HX\r\n Memory: 13.04 GB / 31.63 GB\r\n Binaries:\r\n Node: 16.20.0 - C:\\Program Files\\nodejs\\node.EXE\r\n Yarn: 1.22.22 - C:\\Program Files\\nodejs\\yarn.CMD\r\n npm: 8.19.4 - C:\\Program Files\\nodejs\\npm.CMD\r\n pnpm: 9.4.0 - ~\\AppData\\Local\\pnpm\\pnpm.EXE\r\n Browsers:\r\n Edge: Chromium (126.0.2592.87)\r\n Internet Explorer: 11.0.26100.1\r\n npmPackages:\r\n vitepress: 1.3.0 => 1.3.0\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] Check if you're on the [latest VitePress version](https://github.com/vuejs/vitepress/releases/latest).\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.",[3079],{"name":3020,"color":3021},4034,"withBase 表现异常","2024-07-19T04:42:27Z","https://github.com/vuejs/vitepress/issues/4034",0.6582351,{"description":3086,"labels":3087,"number":3089,"owner":3023,"repository":3024,"state":3025,"title":3090,"updated_at":3091,"url":3092,"score":3093},"### Describe the bug\n\nSo I installed VitePress, but when I just wanted it to say on the home page 'Hello World', it showed this: \r\n\r\nAnd I just entered this:\r\n\r\n\r\nDon't know why, I think this is a bug\n\n### Reproduction\n\nI installed it and made an index.md file, with 'Hello World' in it.\n\n### Expected behavior\n\nJust to show 'Hello World'\n\n### System Info\n\n```shell\nSystem:\r\n OS: Windows 10 10.0.19042 \r\n CPU: (4) x64 Intel(R) Core(TM) i5-3437U CPU @ 1.90GHz\r\n Memory: 655.02 MB / 3.87 GB \r\n Binaries:\r\n Node: 16.6.1 - C:\\Program Files\\nodejs\\node.EXE\r\n npm: 7.16.0 - ~\\AppData\\Roaming\\npm\\npm.CMD\r\n Browsers:\r\n Chrome: 96.0.4664.110\r\n Edge: Spartan (44.19041.1266), Chromium (96.0.1054.62)\r\n Internet Explorer: 11.0.19041.1202\r\n npmPackages:\r\n vitepress: ^0.20.9 => 0.20.9\n```\n\n\n### Additional context\n\n_No response_\n\n### Validations\n\n- [X] Read the [docs](https://vitepress.vuejs.org/).\n- [x] Follow our [Code of Conduct](https://vuejs.org/coc)\n- [X] Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.\n",[3088],{"name":3020,"color":3021},475,"Text bugging out","2023-01-21T16:04:33Z","https://github.com/vuejs/vitepress/issues/475",0.6587928,{"description":3095,"labels":3096,"number":3098,"owner":3023,"repository":3024,"state":3025,"title":3099,"updated_at":3100,"url":3101,"score":3102},"### Describe the bug\n\n```js\r\nexport default {\r\n paths() {\r\n return [\r\n {\r\n params: {\r\n title: \"test1\",\r\n content: `tttt\r\n yyyy\r\n qqq`,\r\n\r\n },\r\n },\r\n ]\r\n },\r\n }\r\n```\r\n\r\n```md\r\n# {{ $params.title }}\r\n\r\n11111 content ↓↓↓\r\n\r\n\u003C!-- @content -->\r\n\r\n\r\n2222 content ↑↑↑\r\n\r\n```\n\n### Reproduction\n\nhttps://stackblitz.com/~/edit/vite-sqe6dh?file=docs%2Findex.md\n\n### Expected behavior\n\nContent displayed normally\n\n### System Info\n\n```Text\nSystem:\r\n OS: Windows 11 10.0.22621\r\n CPU: (12) x64 12th Gen Intel(R) Core(TM) i5-1235U\r\n Memory: 7.25 GB / 15.64 GB\r\n Binaries:\r\n Node: 21.6.1 - C:\\Program Files\\nodejs\\node.EXE\r\n npm: 10.2.4 - C:\\Program Files\\nodejs\\npm.CMD\r\n pnpm: 8.15.1 - C:\\Program Files\\nodejs\\pnpm.CMD\r\n Browsers:\r\n Edge: Chromium (121.0.2277.98)\r\n Internet Explorer: 11.0.22621.1\r\n npmPackages:\r\n vitepress: 1.0.0-rc.41 => 1.0.0-rc.41\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.",[3097],{"name":3020,"color":3021},3543,"\"\u003C! -- @ content -->\" is not available in the Rendering Raw Content","2024-02-13T00:04:48Z","https://github.com/vuejs/vitepress/issues/3543",0.66546285,{"description":3104,"labels":3105,"number":3109,"owner":3023,"repository":3024,"state":3025,"title":3110,"updated_at":3111,"url":3112,"score":3113},"### Describe the bug\n\n我在使用 `createContentLoader()` 加载 Markdown 文件时,尝试通过 `!**/index.md` 和 `!**/*-ignore.md` 排除某些文件,但这些排除规则没有生效\n\n```ts\nexport default createContentLoader(\n [\n '**/*.md',\n '!**/*-ignore.md',\n '!**/index.md',\n ],\n)\n```\n\n直接使用 `tinyglobby ` 是正常的\n\n```ts\nimport { glob } from 'tinyglobby'\n\n\nglob(\n [\n '**/*.md',\n '!**/*-ignore.md',\n '!**/index.md',\n ],\n { cwd: 'docs' },\n).then((res) => {\n console.log(res.length)\n})\n\n```\n\n\n### Reproduction\n\nhttps://stackblitz.com/edit/vite-createcontentloader?file=docs%2Ftest.data.js\n\n### Expected behavior\n\n正确的排除文件\n\n### System Info\n\n```Text\nSystem:\n OS: Windows 11 10.0.26120\n CPU: (32) x64 13th Gen Intel(R) Core(TM) i9-13980HX\n Memory: 35.99 GB / 63.63 GB\n Binaries:\n Node: 22.14.0 - C:\\Program Files\\nodejs\\node.EXE\n npm: 10.9.2 - C:\\Program Files\\nodejs\\npm.CMD\n pnpm: 10.11.0 - ~\\AppData\\Local\\pnpm\\pnpm.EXE\n Browsers:\n Edge: Chromium (134.0.3124.19)\n Internet Explorer: 11.0.26100.1\n npmPackages:\n vitepress: 2.0.0-alpha.6 => 2.0.0-alpha.6\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.",[3106],{"name":3107,"color":3108},"build","377ba8",4807,"createContentLoader() 排除文件的 glob 模式不生效","2025-06-23T16:28:40Z","https://github.com/vuejs/vitepress/issues/4807",0.6668023,["Reactive",3115],{},["Set"],["ShallowReactive",3118],{"$fTRc1wZytZ_XrK4EfJfei_Sz-An4H4Yy6syhVxH_PVJc":-1,"$fshj2hpSwXHqMauNvQ0O8jUIH3hzN_yEHV0ykxOXIvz4":-1},"/vuejs/vitepress/3185"]