\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.",[2867],{"name":2868,"color":2869},"question","5D5FAE",3513,"vuejs","vitepress","closed","部署到Github Pages之后,如果使用自定义域名的话样式会丢失","2024-02-07T00:04:15Z","https://github.com/vuejs/vitepress/issues/3513",0.63630116,{"description":2879,"labels":2880,"number":2884,"owner":2871,"repository":2872,"state":2873,"title":2885,"updated_at":2886,"url":2887,"score":2888},"### Describe the bug\n\nI have `.github/workflows/deploy.yml` set up in my project root as doc instructed. And Github action succeeds. However, when I visit my pages, its not vitepress that I see but regular github pages.\r\n\r\nIs there some settings I have to alter in github repository itself?\n\n### Reproduction\n\n\r\nThis is my app structure \r\n\r\n```\r\n- root\r\n - docs (vitepress)\r\n - theme/index.js\r\n - config.js\r\n - index.md \r\n - src (src for my vue component lib)\r\n - dist (for my vue component lib)\r\n```\r\n\r\nThis is my github workflow deploy.yml\r\n```\r\nname: Deploy\r\n\r\non:\r\n push:\r\n branches:\r\n - master\r\n\r\njobs:\r\n deploy:\r\n runs-on: ubuntu-latest\r\n steps:\r\n - uses: actions/checkout@v2\r\n - uses: actions/setup-node@v3\r\n with:\r\n node-version: 16\r\n cache: npm\r\n - run: npm ci\r\n\r\n - name: Build\r\n run: npm run docs:build\r\n\r\n - name: Deploy\r\n uses: peaceiris/actions-gh-pages@v3\r\n with:\r\n github_token: ${{ secrets.GITHUB_TOKEN }}\r\n publish_dir: docs/.vitepress/dist\r\n```\n\n### Expected behavior\n\nBuilt vitepress in github pages.\n\n### System Info\n\n```shell\n(Local)\r\nSystem:\r\n OS: macOS 12.2\r\n CPU: (8) arm64 Apple M1 Pro\r\n Memory: 99.72 MB / 16.00 GB\r\n Shell: 5.8 - /bin/zsh\n```\n\n\n### Additional context\n\nMy repository is in an organization.\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.",[2881],{"name":2882,"color":2883},"bug: pending triage","e99695",1144,"Github pages shows index.md natively","2023-01-21T14:26:58Z","https://github.com/vuejs/vitepress/issues/1144",0.6629966,{"description":2890,"labels":2891,"number":2893,"owner":2871,"repository":2872,"state":2873,"title":2894,"updated_at":2895,"url":2896,"score":2897},"### Describe the bug\r\n\r\nWhen I deployed my website to Vercel, I tried to access the website via specific url like https://rule.xfisxf.top/policy/charter.html to check out an article. But the content missed in less 1s and it threw `framework.gkMttBBc.js:2 Hydration completed but contains mismatches.` error in console.\r\n\r\n\r\n\r\n\r\n### Reproduction\r\n\r\nDeploy website to Vercel\r\n\r\n### Expected behavior\r\n\r\nChecked out complete content in browser\r\n\r\n\r\n\r\n\r\n### System Info\r\n\r\n```Text\r\nSystem:\r\n OS: Windows 11 10.0.22631\r\n CPU: (4) x64 Intel(R) Pentium(R) CPU GOLD 6500Y @ 1.10GHz\r\n Memory: 1.46 GB / 7.92 GB\r\n Binaries:\r\n Node: 18.19.0 - ~\\scoop\\apps\\nvm\\current\\nodejs\\nodejs\\node.EXE\r\n Yarn: 1.22.21 - ~\\scoop\\apps\\nvm\\current\\nodejs\\nodejs\\yarn.CMD\r\n npm: 10.2.5 - ~\\scoop\\apps\\nvm\\current\\nodejs\\nodejs\\npm.CMD\r\n pnpm: 8.15.1 - ~\\scoop\\shims\\pnpm.EXE\r\n Browsers:\r\n Edge: Chromium (121.0.2277.112), ChromiumDev (123.0.2380.1)\r\n Internet Explorer: 11.0.22621.1\r\n npmPackages:\r\n vitepress: 1.0.0-rc.42 => 1.0.0-rc.42\r\n```\r\n\r\n\r\n### Additional context\r\n\r\nThe error only appears in production env.\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.",[2892],{"name":2882,"color":2883},3570,"Content missing when being deployed to Vercel","2024-02-20T00:05:12Z","https://github.com/vuejs/vitepress/issues/3570",0.6657893,{"description":2899,"labels":2900,"number":2904,"owner":2871,"repository":2872,"state":2873,"title":2905,"updated_at":2906,"url":2907,"score":2908},"### Describe the bug\n\n当没有sidebar,有footer和outline时,滚动轴在底部,outline将会显示异常\n\n### Reproduction\n\n\r\n\n\n### Expected behavior\n\n修复outline显示异常,固定在原位不动\n\n### System Info\n\n```shell\nSystem:\r\n OS: Windows 10 10.0.22000\r\n CPU: (8) x64 11th Gen Intel(R) Core(TM) i7-1165G7 @ 2.80GHz\r\n Memory: 8.82 GB / 15.69 GB\r\n Binaries:\r\n Node: 16.17.0 - D:\\developer_tools\\nodejs\\node.EXE\r\n npm: 8.19.1 - D:\\developer_tools\\nodejs\\npm.CMD\r\n Browsers:\r\n Edge: Spartan (44.22000.120.0)\r\n Internet Explorer: 11.0.22000.120\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.",[2901],{"name":2902,"color":2903},"theme","0754FB",1464,"outline显示异常","2023-01-21T14:22:49Z","https://github.com/vuejs/vitepress/issues/1464",0.6697036,{"description":2910,"labels":2911,"number":2915,"owner":2871,"repository":2872,"state":2873,"title":2916,"updated_at":2917,"url":2918,"score":2919},"### Describe the bug\n\nI was deploying my project with GitHub Pages as indicated in the documentation using a `deploy.sh` file and everything works correctly until I open my web from the GH pages link.\r\n\r\nHere a preview https://dev.adonys.me/vitepress/\r\n\r\nI am using a custom domain with CNAME which redirects me from https://dev.adonys.me to https://adonyssantos.github.io.\n\n### Reproduction\n\nThe only thing I did was to deploy the page with GitHub Page using a `deploy.sh` file as indicated in the official documentation.\n\n### Expected behavior\n\nI expected that when I enter my site from https://dev.adonys.me/vitepress to see my site correctly (no duplicate), but I enter and the same page is repeated 2 times.\n\n### System Info\n\n```shell\nMy vitepress config:\r\n\r\nexport default {\r\n base: '/vitepress/',\r\n title: 'Adonys Santos',\r\n description: 'Learning Vitepress.',\r\n};\n```\n\n\n### Additional context\n\nhttps://dev.adonys.me/vitepress/\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.",[2912],{"name":2913,"color":2914},"need more info","bdbefc",845,"bug: Duplicate view when deployed with GitHub Pages","2023-01-21T14:30:24Z","https://github.com/vuejs/vitepress/issues/845",0.6717186,{"description":2921,"labels":2922,"number":2924,"owner":2871,"repository":2872,"state":2873,"title":2925,"updated_at":2926,"url":2927,"score":2928},"### Describe the bug\n\nThe browser console prints Hydration completed but contains mismatches when deploying the site using Github pages. And the page switch does not work as expected.\r\n\r\n\u003Cimg width=\"404\" alt=\"image\" src=\"https://user-images.githubusercontent.com/25716486/183507530-a390b50c-49e1-4349-a5ba-e1add6883280.png\">\r\n\u003Cimg width=\"1015\" alt=\"image\" src=\"https://user-images.githubusercontent.com/25716486/183507583-86f736b4-7954-40e1-a5aa-a89298d68c72.png\">\r\n\n\n### Reproduction\n\nHere is a reproduced repo: https://github.com/Corona-Studio/CSKB_Hosting\n\n### Expected behavior\n\nThe page switch buttons should work after a click.\n\n### System Info\n\n```shell\nSystem:\r\n OS: Windows 10 10.0.22000\r\n CPU: (16) x64 11th Gen Intel(R) Core(TM) i7-11800H @ 2.30GHz\r\n Memory: 13.26 GB / 31.82 GB\r\n Binaries:\r\n Node: 18.4.0 - C:\\Program Files\\nodejs\\node.EXE\r\n Yarn: 1.22.19 - ~\\node_modules\\.bin\\yarn.CMD\r\n npm: 8.13.1 - C:\\Program Files\\nodejs\\npm.CMD\r\n Browsers:\r\n Edge: Spartan (44.22000.120.0), Chromium (104.0.1293.47)\r\n Internet Explorer: 11.0.22000.120\r\n npmPackages:\r\n vitepress: ^1.0.0-alpha.4 => 1.0.0-alpha.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.",[2923],{"name":2882,"color":2883},1143,"Hydration completed but contains mismatches when using Github pages","2023-01-21T14:28:46Z","https://github.com/vuejs/vitepress/issues/1143",0.6726084,{"description":2930,"labels":2931,"number":2932,"owner":2871,"repository":2872,"state":2873,"title":2933,"updated_at":2934,"url":2935,"score":2936},"### Describe the bug\n\nI added two \u003Cscript> to the head configuration that I wanted to execute once per page opened, they worked fine in the development environment, but after packaging and deploying to GitHub Pages, they only executed when the browser was refreshed.\r\n\r\n```\r\n // 百度统计代码:https://tongji.baidu.com\r\n ['script', {}, `var _hmt = _hmt || [];\r\n (function() {\r\n var hm = document.createElement(\"script\");\r\n hm.src = \"https://hm.baidu.com/hm.js?xxxxxxxxxx\";\r\n var s = document.getElementsByTagName(\"script\")[0]; \r\n s.parentNode.insertBefore(hm, s);\r\n })();`],\r\n // 页面访问量统计\r\n ['script', {}, `var pageUrl = location.href;\r\n (function() {\r\n xhr = new XMLHttpRequest();\r\n xhr.open('GET', 'https://xxxxxxxxxx/pv?pageUrl=' + pageUrl + \"&t=\" + new Date().getTime());\r\n xhr.send();\r\n })();`]\r\n```\n\n### Reproduction\n\nN/A\n\n### Expected behavior\n\nN/A\n\n### System Info\n\n```shell\nSystem:\r\n OS: Windows 10 10.0.19044\r\n CPU: (16) x64 AMD Ryzen 7 5800H with Radeon Graphics\r\n Memory: 7.05 GB / 13.87 GB\r\n Binaries:\r\n Node: 16.17.1 - D:\\Develop\\nodejs\\node.EXE\r\n Yarn: 1.22.19 - ~\\AppData\\Roaming\\npm\\yarn.CMD\r\n npm: 8.15.0 - D:\\Develop\\nodejs\\npm.CMD\r\n Browsers:\r\n Internet Explorer: 11.0.19041.1566\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.",[],1643,"The head configuration, when packaged and deployed to GitHub Pages, did not have the desired effect","2023-01-21T14:20:31Z","https://github.com/vuejs/vitepress/issues/1643",0.6727972,{"description":2938,"labels":2939,"number":2941,"owner":2871,"repository":2872,"state":2873,"title":2942,"updated_at":2943,"url":2944,"score":2945},"### 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.",[2940],{"name":2882,"color":2883},1769,"CloudFlare Deploys Disfunctional","2023-01-21T14:16:48Z","https://github.com/vuejs/vitepress/issues/1769",0.6746515,{"description":2947,"labels":2948,"number":2949,"owner":2871,"repository":2872,"state":2873,"title":2950,"updated_at":2951,"url":2952,"score":2953},"### Describe the bug\n\ncontent 部分没有 overflow:hidden 导致很长的滚动条(也有可能是我的图片太大?)\r\n\r\n[github here](https://github.com/Mt-Youya/DeepLearning-500-questions)\r\n\r\n[site here](https://deeplearning-500-questions.pages.dev/zh-cn/ch02_%E6%9C%BA%E5%99%A8%E5%AD%A6%E4%B9%A0%E5%9F%BA%E7%A1%80/%E7%AC%AC%E4%BA%8C%E7%AB%A0_%E6%9C%BA%E5%99%A8%E5%AD%A6%E4%B9%A0%E5%9F%BA%E7%A1%80.html)\n\n### Reproduction\n\n我fork 别人的仓库,不是我自己写的, 它原本用的是 docsify 我想提个pr用vitepress 试试,然后就出现了这个bug\n\n### Expected behavior\n\n没有滚动条\n\n### System Info\n\n```Text\nVersion 122.0.6261.112 (Official Build) (64-bit)\r\nwin11\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.",[],3644,"CSS bug","2024-03-19T00:07:30Z","https://github.com/vuejs/vitepress/issues/3644",0.67576414,{"description":2955,"labels":2956,"number":2958,"owner":2871,"repository":2872,"state":2873,"title":2959,"updated_at":2960,"url":2961,"score":2962},"### 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.",[2957],{"name":2882,"color":2883},3543,"\"\u003C! -- @ content -->\" is not available in the Rendering Raw Content","2024-02-13T00:04:48Z","https://github.com/vuejs/vitepress/issues/3543",0.67610097,["Reactive",2964],{},["Set"],["ShallowReactive",2967],{"$fTRc1wZytZ_XrK4EfJfei_Sz-An4H4Yy6syhVxH_PVJc":-1,"$ffK06q_HBKT56rcEmq48hgB1A2leXPkoByew5N30EsiY":-1},"/vuejs/vitepress/1973"]