\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.",[2887],{"name":2888,"color":2889},"question","5D5FAE",3513,"部署到Github Pages之后,如果使用自定义域名的话样式会丢失","2024-02-07T00:04:15Z","https://github.com/vuejs/vitepress/issues/3513",0.6999527,{"description":2896,"labels":2897,"number":2899,"owner":2866,"repository":2867,"state":2868,"title":2900,"updated_at":2901,"url":2902,"score":2903},"### 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.",[2898],{"name":2877,"color":2878},2349,"热更新","2023-05-24T00:03:54Z","https://github.com/vuejs/vitepress/issues/2349",0.7044036,{"description":2905,"labels":2906,"number":2908,"owner":2866,"repository":2867,"state":2868,"title":2909,"updated_at":2910,"url":2911,"score":2912},"### 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.",[2907],{"name":2877,"color":2878},1781,"在内容里使用 {xxx} 就会报错","2023-01-21T14:16:43Z","https://github.com/vuejs/vitepress/issues/1781",0.7046142,{"description":2914,"labels":2915,"number":2917,"owner":2866,"repository":2867,"state":2868,"title":2918,"updated_at":2919,"url":2920,"score":2921},"### Describe the bug\r\n\r\noriginal closed from\r\n- #417\r\n\r\n`__VP_STATIC_END__` is also at bottom of the page.\r\n\r\n### Reproduction\r\n\r\nIt is random, between builds, sometimes `__VP_STATIC_START__` and `__VP_STATIC_END__` will be shown, sometimes no.\r\n\r\nI added some `md` files and forgot to add the `frontmatter` title, it seems adding it will fix the problem, but now it is there again.\r\n\r\nIf we do a hard refresh on page that's showing the `__VP_STATIC_START__` will dissapear, but navigating to another page and back it again `__VP_STATIC_START__` will be displayed.\r\n\r\nThe app is a pwa, but the problem is on the genetared html page, seems there is 2 versions of the md page js, `xxx.js` and `xxx.lean.js`. When the app is loaded using the `xxx.lean.js` version, then `__VP_STATIC_START__` and `__VP_STATIC_END__` will be shown.\r\n\r\nThe repo is here: https://github.com/antfu/vite-plugin-pwa\r\n\r\nI'm using node 15, but should work also with 14.\r\n\r\nThe `vitepress` app can be found on `docs` package on the repo.\r\n\r\nTo test you will need latest `pnpm` installed globally, to generate the `vitepress docs`:\r\n1) clone the repo or download the zip\r\n2) execute `pnpm install && pnpm run build` from root folder\r\n3) run the app\r\n- to start dev, execute `pnpm run docs` from root folder\r\n- to build and run the docs, execute `pnpm run docs:serve` from root folder\r\n\r\n\r\n\r\n### Expected behavior\r\n\r\n`__VP_STATIC_START__` and `__VP_STATIC_END__` should not be displayed.\r\n\r\n### System Info\r\nUsing `vitepress` version `0.19.2`.\r\n\r\nOn dev machine:\r\n\r\n```shell\r\nSystem:\r\n OS: Windows 10 10.0.19042\r\n CPU: (16) x64 Intel(R) Core(TM) i9-9900K CPU @ 3.60GHz\r\n Memory: 49.91 GB / 63.95 GB\r\n Binaries:\r\n Node: 15.11.0 - C:\\Program Files\\nodejs\\node.EXE\r\n Yarn: 1.22.10 - C:\\Program Files\\nodejs\\yarn.CMD\r\n npm: 7.6.0 - C:\\Program Files\\nodejs\\npm.CMD\r\n Browsers:\r\n Chrome: 94.0.4606.81\r\n Edge: Spartan (44.19041.1023.0), Chromium (94.0.992.50)\r\n Internet Explorer: 11.0.19041.1202\r\n```\r\nThe app is deployed on `netlify`.\r\n\r\n### Additional context\r\n\r\nYou can test the app on a private window and so the pwa will not interfere with the problem.\r\n\r\n**TO REPRODUCE THE PROBLEM ON PRODUCTION**\r\n\r\nThe current page with the problem is: https://vite-plugin-pwa.netlify.app/guide/generate.html\r\n\r\nYou can do a hard refresh and check `generate.html` page to see the `guide_generate.md.25c0e6c1.lean.js` is loaded, once the `__VP_STATIC_START__` is shown, clear the network panel, navigate to another page and refresh, clean network panel again, and then back to `Generate Service Worker`, you will see it is using `guide_generate.md.25c0e6c1.js` instead the `lean js` version, and `__VP_STATIC_START__` is gone.\r\n\r\nIf you copy/paste the `js` files for `guide_generate.md.xxx.js` you will see that on lean version there is `__VP_STATIC_START__`.\r\n\r\nA screenshot with the problem on deployed app (https://vite-plugin-pwa.netlify.app/guide/generate.html):\r\n\r\n\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.",[2916],{"name":2877,"color":2878},420,"render `__VP_STATIC_START__`","2023-01-21T16:20:18Z","https://github.com/vuejs/vitepress/issues/420",0.70493656,{"description":2923,"labels":2924,"number":2926,"owner":2866,"repository":2867,"state":2868,"title":2927,"updated_at":2928,"url":2929,"score":2930},"### 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.",[2925],{"name":2877,"color":2878},362,"Strange symbols appear","2023-01-21T16:22:12Z","https://github.com/vuejs/vitepress/issues/362",0.70523965,{"description":2932,"labels":2933,"number":2935,"owner":2866,"repository":2867,"state":2868,"title":2936,"updated_at":2937,"url":2938,"score":2939},"### Describe the bug\n\nyarn docs:dev\r\n\r\nBrowser display error:\r\n\r\n\n\n### Reproduction\n\nFollow the getting started case, which is https://vitepress.vuejs.org/guide/getting-started.html\n\n### Expected behavior\n\nNormal display index.md\n\n### System Info\n\n```shell\n~~~\r\nPS G:\\vitePress> npx envinfo --system --npmPackages vitepress --binaries --browsers\r\nNeed to install the following packages:\r\n envinfo\r\nOk to proceed? (y) y\r\n\r\n System:\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.91 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.15.6 => 0.15.6\r\n~~~\n```\n\n\n### Additional context\n\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.",[2934],{"name":2877,"color":2878},359,"Using the simplest example, an error occurred","2023-01-21T16:22:13Z","https://github.com/vuejs/vitepress/issues/359",0.70556873,{"description":2941,"labels":2942,"number":2944,"owner":2866,"repository":2867,"state":2868,"title":2945,"updated_at":2946,"url":2947,"score":2948},"### Describe the bug\n\nWe are working on an internal knowledgebase with VitePress, and deploying internally works great. But if we pass the resource as an protected application to CloudFlare Tunnels or if we deploy the app to a CloudFlare pages (web site hosting) the home layout appears twice and the links don't clear content before loading new content.\n\n### Reproduction\n\nDeploy with CloudFlare Tunnel or to CloudFlare Pages.\n\n### Expected behavior\n\nTo work like it does when we run it local in dev, like it does when we build and preview, like it does when we use GitHub pages. Works everywhere but CloudFlare.\n\n### System Info\n\n```shell\nSystem:\r\n OS: Windows 10 10.0.22621\r\n CPU: (12) x64 Intel(R) Core(TM) i7-10750H CPU @ 2.60GHz\r\n Memory: 4.66 GB / 39.79 GB\r\n Binaries:\r\n Node: 18.12.1 - C:\\Program Files\\nodejs\\node.EXE\r\n Yarn: 1.22.19 - ~\\AppData\\Roaming\\npm\\yarn.CMD\r\n npm: 9.2.0 - C:\\Program Files\\nodejs\\npm.CMD\r\n Browsers:\r\n Edge: Spartan (44.22621.963.0), Chromium (108.0.1462.54)\r\n Internet Explorer: 11.0.22621.1\r\n npmPackages:\r\n vitepress: ^1.0.0-alpha.31 => 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.",[2943],{"name":2877,"color":2878},1769,"CloudFlare Deploys Disfunctional","2023-01-21T14:16:48Z","https://github.com/vuejs/vitepress/issues/1769",0.70795935,{"description":2950,"labels":2951,"number":2953,"owner":2866,"repository":2867,"state":2868,"title":2954,"updated_at":2955,"url":2956,"score":2957},"### Describe the bug\n\n```\r\n- [/example/](/example/) ❌\r\n- [./example/](./example/) ❌\r\n- [/example/index.md](/example/index.md) ❌\r\n- [./example/index.md](./example/index.md) ❌\r\n- the Left top \"Vitepress\" ❌\r\n- Sidebar \"example\" ❌\r\n- Navbar \"example\" ❌\r\n```\r\nClicking these internal links now triggers non-SPA navigation.\r\n\r\nrelated: https://vitepress.dev/guide/markdown#internal-links\r\n\n\n### Reproduction\n\nhttps://stackblitz.com/edit/vite-tyiztl?file=docs%2Findex.md,docs%2F.vitepress%2Fconfig.ts\n\n### Expected behavior\n\nSPA navigation happens like it does with 1.0.0-rc.27.\n\n### System Info\n\n```Text\nStackblitz\r\n\r\n System:\r\n OS: Linux 5.0 undefined\r\n CPU: (8) 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\n Binaries:\r\n Node: 18.18.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.10.0 - /usr/local/bin/pnpm\r\n npmPackages:\r\n vitepress: 1.0.0-rc.28 => 1.0.0-rc.28\n```\n\n\n### Additional context\n\nThis bug seems to be caused by https://github.com/vuejs/vitepress/pull/3218\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.",[2952],{"name":2877,"color":2878},3225,"Clicking internal links without `.html` pointing a directory now triggers non-SPA navigation","2023-11-27T00:04:47Z","https://github.com/vuejs/vitepress/issues/3225",0.70905656,["Reactive",2959],{},["Set"],["ShallowReactive",2962],{"$fTRc1wZytZ_XrK4EfJfei_Sz-An4H4Yy6syhVxH_PVJc":-1,"$fbMCbwbpo1gMf6ZhuKs_Y0NohUovL2C5Ml942sXVlR8E":-1},"/vuejs/vitepress/2684"]