\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.",[2899],{"name":2900,"color":2901},"question","5D5FAE",3513,"部署到Github Pages之后,如果使用自定义域名的话样式会丢失","2024-02-07T00:04:15Z","https://github.com/vuejs/vitepress/issues/3513",0.6757986,{"description":2908,"labels":2909,"number":2911,"owner":2869,"repository":2870,"state":2871,"title":2912,"updated_at":2913,"url":2914,"score":2915},"### Describe the bug\r\n\r\n指定端口号后热更新失效,恢复默认之后热更新依旧不生效\r\n\r\n### Reproduction\r\n\r\nvitepress dev docs --host --port 9999\r\n\r\n### Expected behavior\r\n\r\n热更新生效\r\n\r\n### System Info\r\n\r\n```sh\r\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: 44.27 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 (112.0.1722.68)\r\n Internet Explorer: 11.0.19041.1566\r\n npmPackages:\r\n vitepress: 1.0.0-alpha.75 => 1.0.0-alpha.75\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.",[2910],{"name":2866,"color":2867},2349,"热更新","2023-05-24T00:03:54Z","https://github.com/vuejs/vitepress/issues/2349",0.67990804,{"description":2917,"labels":2918,"number":2920,"owner":2869,"repository":2870,"state":2871,"title":2921,"updated_at":2922,"url":2923,"score":2924},"### Describe the bug\r\n\r\nThis only happens to `pnpm`. `npm` is fine.\r\nI've no idea about this, can you please have a look?\r\n***Note: it always resolve to `v1.0.0-draft.1` with or without `lockfile`***\r\n\r\n\r\n\r\n### Reproduction\r\n\r\n\r\n\r\n\r\n### Expected behavior\r\n\r\nResolve to `v1.0.0-beta.6`\r\n\r\n### System Info\r\n\r\n```sh\r\nN/A\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.",[2919],{"name":2866,"color":2867},2670,"[❗Bug]: `pnpm` will resolve `v1.0.0-beta.6` to `v1.0.0-draft.1`","2023-07-30T00:04:45Z","https://github.com/vuejs/vitepress/issues/2670",0.6810025,{"description":2926,"labels":2927,"number":2929,"owner":2869,"repository":2870,"state":2871,"title":2930,"updated_at":2931,"url":2932,"score":2933},"### Describe the bug\n\n版本:\"vitepress\": \"^1.0.0-alpha.35\", \r\n里面没有多余的东西。就是按照官网https://vitepress.vuejs.org/guide/getting-started 走到了第三步。然后将 index.md 的内容添加了 {1}\r\n\r\n\r\n\r\n\n\n### Reproduction\n\n按照官网https://vitepress.vuejs.org/guide/getting-started 走到了第三步。然后将 index.md 的内容添加了 {1}\n\n### Expected behavior\n\n正常渲染 {1} 标签的内容\n\n### System Info\n\n```shell\nSystem:\r\n OS: Windows 10 10.0.22621\r\n CPU: (20) x64 12th Gen Intel(R) Core(TM) i7-12700H\r\n Memory: 1.50 GB / 15.73 GB\r\n Binaries:\r\n Node: 16.15.1 - C:\\Program Files\\nodejs\\node.EXE\r\n Yarn: 1.22.19 - ~\\AppData\\Roaming\\npm\\yarn.CMD\r\n npm: 8.11.0 - C:\\Program Files\\nodejs\\npm.CMD\r\n Browsers:\r\n Edge: Spartan (44.22621.963.0), Chromium (108.0.1462.76)\r\n Internet Explorer: 11.0.22621.1\r\n npmPackages:\r\n vitepress: ^1.0.0-alpha.35 => 1.0.0-alpha.35\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.",[2928],{"name":2866,"color":2867},1781,"在内容里使用 {xxx} 就会报错","2023-01-21T14:16:43Z","https://github.com/vuejs/vitepress/issues/1781",0.6839761,{"description":2935,"labels":2936,"number":2940,"owner":2869,"repository":2870,"state":2871,"title":2941,"updated_at":2942,"url":2943,"score":2944},"### Describe the bug\n\n## Description\r\n\r\nI followed [this VitePress Contributing Guide](https://github.com/vuejs/vitepress/blob/main/.github/contributing.md) and ran `pnpm run dev`.\r\nI got the following error.\r\n\r\n```sh\r\nsrc/node/cli.ts:2:22 - error TS7016: Could not find a declaration file for module 'minimist'. '/Users/username/repo/vitepress/node_modules/.pnpm/minimist@1.2.5/node_modules/minimist/index.js' implicitly has an 'any' type.\r\n Try `npm i --save-dev @types/minimist` if it exists or add a new declaration (.d.ts) file containing `declare module 'minimist';`\r\n```\r\n\r\nMy running environment is as follows.\r\n\r\n```sh\r\n$node -v\r\nv16.14.0\r\n$ pnpm -v\r\n7.0.0\r\n```\r\n\r\n## Steps to Resolve\r\nPerforming the following according to the error message will resolve the problem.\r\n\r\n```sh\r\npnpm add -D -w @types/minimist\r\n```\r\nIs this happening only in my environment?\r\n\r\nIf this is a problem that is occurring in this project, I am considering to pull request a diff of this response.\r\n\r\n```diff\r\ndiff --git a/package.json b/package.json\r\nindex ceb50b9..55ed6a4 100644\r\n--- a/package.json\r\n+++ b/package.json\r\n@@ -94,6 +94,7 @@\r\n \"@types/lru-cache\": \"^5.1.0\",\r\n \"@types/markdown-it\": \"^12.0.1\",\r\n \"@types/micromatch\": \"^4.0.2\",\r\n+ \"@types/minimist\": \"^1.2.2\",\r\n \"@types/node\": \"^15.6.1\",\r\n \"@types/polka\": \"^0.5.3\",\r\n \"chalk\": \"^4.1.1\",\r\n```\n\n### Reproduction\n\nThis occurred by executing the following command.\r\n\r\n```sh\r\ngit clone https://github.com/vuejs/vitepress.git\r\ncd vitepress\r\npnpm install\r\npnpm run dev\r\n```\r\n\n\n### Expected behavior\n\nSuccessful completion of the following commands.\r\n\r\n```sh\r\npnpm run dev\r\n```\n\n### System Info\n\n```shell\nSystem:\r\n OS: macOS 11.6.5\r\n CPU: (8) arm64 Apple M1\r\n Memory: 70.13 MB / 8.00 GB\r\n Shell: 5.8 - /opt/homebrew/bin/zsh\r\n Binaries:\r\n Node: 16.14.0 - ~/.nvm/versions/node/v16.14.0/bin/node\r\n Yarn: 1.22.17 - ~/.nvm/versions/node/v16.14.0/bin/yarn\r\n npm: 8.3.1 - ~/.nvm/versions/node/v16.14.0/bin/npm\r\n Browsers:\r\n Chrome: 100.0.4896.127\r\n Chrome Canary: 103.0.5036.0\r\n Firefox: 96.0.2\r\n Safari: 15.4\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.",[2937],{"name":2938,"color":2939},"build","377ba8",618,"[pnpm run dev] error TS7016: Could not find a declaration file for module 'minimist'","2023-01-21T16:04:24Z","https://github.com/vuejs/vitepress/issues/618",0.69142324,{"description":2946,"labels":2947,"number":2949,"owner":2869,"repository":2870,"state":2871,"title":2950,"updated_at":2951,"url":2952,"score":2953},"### Describe the bug\n\nWhen I import something from vitepress in markdown files with a custom theme and then run `pnpm build`, I get the following warning:\r\n\r\n\u003Csamp>\r\nExport \"Content\" of module \"node_modules/.pnpm/vitepress@1.0.0-rc.4_search-insights@2.7.0/node_modules/vitepress/dist/client/app/components/Content.js\" was reexported through module \"node_modules/.pnpm/vitepress@1.0.0-rc.4_search-insights@2.7.0/node_modules/vitepress/dist/client/index.js\" while both modules are dependencies of each other and will end up in different chunks by current Rollup settings. This scenario is not well supported at the moment as it will produce a circular dependency between chunks and will likely lead to broken execution order.\r\nEither change the import in \".vitepress/theme/Layout.vue\" to point directly to the exporting module or reconfigure \"output.manualChunks\" to ensure these modules end up in the same chunk.\r\n\u003C/samp>\n\n### Reproduction\n\nThe file structure is the following:\r\n\r\n- `.vitepress/config.js`:\r\n\r\n```js\r\nimport { defineConfig } from 'vitepress'\r\nexport default defineConfig({\r\n lang: 'en-US',\r\n title: 'VitePress',\r\n cleanUrls: true,\r\n})\r\n```\r\n\r\n- `.vitepress/theme/index.js`:\r\n\r\n```js\r\nimport Layout from './Layout.vue'\r\nexport default { Layout }\r\n```\r\n\r\n- `.vitepress/theme/Layout.vue`:\r\n\r\n```vue\r\n\u003Cscript setup>\r\nimport { Content } from 'vitepress'\r\n\u003C/script>\r\n\r\n\u003Ctemplate>\r\n \u003CContent />\r\n\u003C/template>\r\n\r\n```\r\n\r\n- `index.md`:\r\n\r\n```md\r\n---\r\nlayout: home\r\n---\r\n\r\n\u003Cscript setup>\r\nimport { useData } from 'vitepress'\r\n\u003C/script>\r\n\r\n{{ useData() }}\r\n```\r\n\r\nSee \u003Chttps://stackblitz.com/edit/vite-x3jrgk>.\n\n### Expected behavior\n\nThere should be no such warning.\n\n### System Info\n\n```sh\nSystem:\r\n OS: macOS 13.5\r\n CPU: (4) x64 Intel(R) Core(TM) i5-7360U CPU @ 2.30GHz\r\n Memory: 224.85 MB / 16.00 GB\r\n Shell: 5.9 - /bin/zsh\r\n Binaries:\r\n Node: 20.5.1 - /usr/local/bin/node\r\n npm: 9.8.0 - /usr/local/bin/npm\r\n pnpm: 8.6.6 - /usr/local/bin/pnpm\r\n Browsers:\r\n Chrome: 116.0.5845.110\r\n Edge: 115.0.1901.188\r\n Safari: 16.6\r\n npmPackages:\r\n vitepress: 1.0.0-rc.4 => 1.0.0-rc.4\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.",[2948],{"name":2866,"color":2867},2856,"Imports from vitepress in markdown files lead to reexport warning","2023-09-03T00:04:43Z","https://github.com/vuejs/vitepress/issues/2856",0.69164085,{"description":2955,"labels":2956,"number":2958,"owner":2869,"repository":2870,"state":2871,"title":2959,"updated_at":2960,"url":2961,"score":2962},"### Describe the bug\n\nfollow up to #2612\n\n### Reproduction\n\ndiscussed in #2612\n\n### Expected behavior\n\nclearer instructions\n\n### System Info\n\n```sh\nnpm 8.19.4\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.",[2957],{"name":2866,"color":2867},2781,"follow up to #2612 - missing documentation information","2023-08-21T00:04:10Z","https://github.com/vuejs/vitepress/issues/2781",0.6918927,["Reactive",2964],{},["Set"],["ShallowReactive",2967],{"$fTRc1wZytZ_XrK4EfJfei_Sz-An4H4Yy6syhVxH_PVJc":-1,"$fUE9ciNgZwln9kAQZamzl3G13UQSe1bZ3QAbNi09Z2j0":-1},"/vuejs/vitepress/525"]