\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.",[2879],{"name":2880,"color":2881},"question","5D5FAE",3513,"部署到Github Pages之后,如果使用自定义域名的话样式会丢失","2024-02-07T00:04:15Z","https://github.com/vuejs/vitepress/issues/3513",0.68746585,{"description":2888,"labels":2889,"number":2893,"owner":2869,"repository":2870,"state":2871,"title":2894,"updated_at":2895,"url":2896,"score":2897},"### 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.",[2890],{"name":2891,"color":2892},"theme","0754FB",1464,"outline显示异常","2023-01-21T14:22:49Z","https://github.com/vuejs/vitepress/issues/1464",0.6902094,{"description":2899,"labels":2900,"number":2901,"owner":2869,"repository":2870,"state":2871,"title":2902,"updated_at":2903,"url":2904,"score":2905},"### Describe the bug\r\n\r\ncontent inside [] should not be parsed as html \r\n\r\n\r\n### Reproduction\r\n\r\njust use \r\n```\r\n[SimpleLink\u003CT>] (\"somewhere\")\r\n```\r\nin any md file\r\n\r\n### Expected behavior\r\n\r\nThe page should render even with \"Element is missing end tag\" when inside [ ]\r\n\r\n### System Info\r\n\r\n```shell\r\nSystem:\r\n OS: Windows 10 10.0.19042\r\n CPU: (8) x64 Intel(R) Core(TM) i5-8350U CPU @ 1.70GHz \r\n Memory: 16.55 GB / 31.88 GB\r\n Binaries:\r\n Node: 14.17.6 - C:\\Program Files\\nodejs\\node.EXE \r\n Yarn: 1.22.10 - ~\\AppData\\Roaming\\npm\\yarn.CMD\r\n npm: 7.24.2 - C:\\Program Files\\nodejs\\npm.CMD\r\n Browsers:\r\n Chrome: 98.0.4758.102\r\n Edge: Spartan (44.19041.1266.0), Chromium (99.0.1150.30)\r\n Internet Explorer: 11.0.19041.1202\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.",[],576,"Element is missing end tag Error when used inside a link like [SimpleLink\u003CT>] (\"somewhere\")","2023-01-21T14:32:33Z","https://github.com/vuejs/vitepress/issues/576",0.69031,{"description":2907,"labels":2908,"number":2912,"owner":2869,"repository":2870,"state":2871,"title":2913,"updated_at":2914,"url":2915,"score":2916},"### Describe the bug\r\n\r\nI tried using rewrites route to build the i18n file structure for i18n support.\r\n\r\nMy config as follow:\r\n\r\n```\r\nrewrites: {\r\n 'index.md': 'index.md',\r\n 'introduction/1_What-is-useBitable.md': 'introduction/What-is-useBitable.md', \r\n 'introduction/2_Get-started.md': 'introduction/Get-started.md',\r\n 'composables/useFileReader/index.md': 'composables/useFileReader/index.md',\r\n 'events/onSelectionChange/index.md': 'events/onSelectionChange/index.md',\r\n 'index.zh.md': '/zh/index.md'\r\n},\r\nlocales: {\r\n root: {\r\n lang: \"en\",\r\n label: \"English\"\r\n },\r\n zh: {\r\n lang: \"zh\",\r\n label: \"简体中文\",\r\n link: \"/zh/\"\r\n }\r\n}\r\n```\r\nWhen I run script `npm run docs:dev`, and then click the `中文简体` menuItem, the `http://localhost:5173/zh/` return a `404 page`.\r\n\r\nBut it can work successfully after running `npm run docs:preview`.\r\n\r\n\r\nThen I checked the console in dev mode: \r\n\r\nIt seems that the `hashmap.json` missed in dev mode.\r\n\r\n\r\n### Reproduction\r\n\r\nYou can reproduct it from dev branch: https://github.com/497363983/useBitable/tree/dev.\r\n\r\n\r\n### Expected behavior\r\n\r\nThe dev mode can work as preview.\r\n\r\n### System Info\r\n\r\n```Text\r\nSystem:\r\n OS: Windows 10 10.0.22621\r\n CPU: (16) x64 AMD Ryzen 9 5900HS with Radeon Graphics\r\n Memory: 16.82 GB / 31.41 GB\r\n Binaries:\r\n Node: 18.17.1 - C:\\Program Files\\nodejs\\node.EXE\r\n npm: 8.19.2 - C:\\Program Files\\nodejs\\npm.CMD\r\n Browsers:\r\n Edge: Spartan (44.22621.2283.0), Chromium (117.0.2045.47)\r\n Internet Explorer: 11.0.22621.1\r\n npmPackages:\r\n vitepress: ^1.0.0-rc.20 => 1.0.0-rc.20\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.",[2909],{"name":2910,"color":2911},"bug: pending triage","e99695",3042,"When use rewrites route, the hashmap.json missed in dev mode","2023-10-10T00:04:17Z","https://github.com/vuejs/vitepress/issues/3042",0.69040513,{"description":2918,"labels":2919,"number":2921,"owner":2869,"repository":2870,"state":2871,"title":2922,"updated_at":2923,"url":2924,"score":2925},"### Describe the bug\n\nIf there is a plaintext file in public directory, and the file extension is unrecognized (i.e. `.txt` files are recognized, but `.ini`, or any random combination of file extensions, are not), the build system is attempting to convert the links to append `.html` to it. This causes the link to 404.\n\n### Reproduction\n\nNOTE: this reproduces a scenario in the testing environment. **docs:build doesn't even run because, as a result of the below generation, the link is being treated as dead.**\r\n\r\nAdd this to `/public/hello.ini`:\r\n```ini\r\n[helloworld]\r\n```\r\n\r\nAnd then have any page link to it like so:\r\n```md\r\n[download hello.ini](/hello.ini)\r\n```\r\n\r\nAnd it will generate:\r\n```html\r\n\u003Ca href=\"/hello.ini.html\">download hello.ini\u003C/a>\r\n```\r\n\n\n### Expected behavior\n\nThe docs seem to suggest that files in the `public` directory will be copied as-is to the output directory; the same logic should apply to links. That is to say, there should be no `.html` suffix in the `href` and either the download or the browser opening the resulting file in plaintext should proceed.\n\n### System Info\n\n```Text\nSystem:\r\n OS: Windows 10 10.0.19045\r\n CPU: (12) x64 Intel(R) Core(TM) i7-8700K CPU @ 3.70GHz\r\n Memory: 4.95 GB / 31.92 GB\r\n Binaries:\r\n Node: 20.11.0 - C:\\Program Files\\nodejs\\node.EXE\r\n npm: 10.2.4 - C:\\Program Files\\nodejs\\npm.CMD\r\n Browsers:\r\n Edge: Chromium (127.0.2651.86)\r\n Internet Explorer: 11.0.19041.4355\r\n npmPackages:\r\n vitepress: ^1.3.4 => 1.3.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.",[2920],{"name":2910,"color":2911},4208,"Markdown absolute links to plaintext files in public directory attempts to link as HTML","2024-09-24T04:43:23Z","https://github.com/vuejs/vitepress/issues/4208",0.6908277,{"description":2927,"labels":2928,"number":2930,"owner":2869,"repository":2870,"state":2871,"title":2931,"updated_at":2932,"url":2933,"score":2934},"### Describe the bug\r\n\r\nIf we add link like below:\r\n```\r\nVisit \u003Ca href=\"http://localhost:5173\" target=\"_blank\" rel=\"noreferrer\">http://localhost:5173\u003C/a>\r\n```\r\n\r\nAnd run the server, we get error like below:\r\n\u003Cimg width=\"808\" alt=\"image\" src=\"https://user-images.githubusercontent.com/47495003/233909541-25e26fbe-c466-4299-a53c-efeabd266974.png\">\r\n\r\n\r\n### Reproduction\r\n\r\nhttps://stackblitz.com/edit/vite-fiz6gv?file=docs/example.md\r\n\r\n### Expected behavior\r\n\r\nAs we have updated the code from md link syntax `()[]` to a tag as per suggestion it shouldn't show this warning.\r\n\r\n### System Info\r\n\r\n```shell\r\nSystem:\r\n OS: macOS 13.2.1\r\n CPU: (8) arm64 Apple M1\r\n Memory: 82.20 MB / 8.00 GB\r\n Shell: 5.8.1 - /bin/zsh\r\n Binaries:\r\n Node: 18.15.0 - ~/.nvm/versions/node/v18.15.0/bin/node\r\n Yarn: 1.22.19 - ~/.nvm/versions/node/v18.15.0/bin/yarn\r\n npm: 9.5.0 - ~/.nvm/versions/node/v18.15.0/bin/npm\r\n Browsers:\r\n Chrome: 112.0.5615.137\r\n Firefox: 112.0\r\n Safari: 16.3\r\n npmPackages:\r\n vitepress: 1.0.0-alpha.73 => 1.0.0-alpha.73\r\n```\r\n\r\n\r\n### Additional context\r\n\r\nNone\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.",[2929],{"name":2866,"color":2867},2281,"🐞 Dead link warning even if we resolve it via a tag as per suggestion","2023-05-07T00:04:21Z","https://github.com/vuejs/vitepress/issues/2281",0.69180715,{"description":2936,"labels":2937,"number":2939,"owner":2869,"repository":2870,"state":2871,"title":2940,"updated_at":2941,"url":2942,"score":2943},"### Describe the bug\n\nthere are no sub-directories after run build when set config to \"cheanUrls: true\". \r\nthese pages seem to work after deployed on static host server. I saw a \"404 page\" flash by.\n\n### Reproduction\n\n## config.ts\r\n```js\r\nconst config = async () => {\r\n return {\r\n title: 'Zhaoqiu-Blog',\r\n \r\n // head: [\r\n // ['link', { rel: \"icon\", type: \"image/x-icon\", href: \"/favicon.ico\"}],\r\n // ['link', { rel: \"shortcut icon\", type: \"image/x-icon\", href: \"/favicon.ico\"}]\r\n // ],\r\n description: 'zhaoqiu blog',\r\n lang: 'zh',\r\n lastUpdated: true,\r\n cleanUrls: true,\r\n appearance: 'dark',\r\n markdown: {\r\n // anchor: {\r\n // level: anchor.level,\r\n // permalink: anchor.permalink.headerLink()\r\n // },\r\n // toc: {level: [2, 3]},\r\n lineNumbers: true,\r\n config: (md) => {\r\n md.use(mathjax3)\r\n },\r\n },\r\n themeConfig: {\r\n posts: await getPosts(),\r\n pageSize: 5,\r\n postsLength: await getPostLength(),\r\n logo: '/logo.svg',\r\n siteTitle: 'zhaoqiu blog',\r\n nav: [\r\n {text: '🏡Home', link: '/'},\r\n {text: '📁Archives', link: '/archives'},\r\n {text: '🚀Product', link: '/product'},\r\n {text: '🔖Tags', link: '/tags'},\r\n {text: '👀About Me', link: '/me'}\r\n \r\n ],\r\n socialLinks: [\r\n {icon: 'github', link: 'https://github.com/zhaoqiu-china'}\r\n ],\r\n footer: {\r\n message: \"\u003Ca href='https://beian.miit.gov.cn/#/Integrated/index'>鲁ICP备2022036350号-1\u003C/a>\",\r\n copyright: 'Copyright © 2019-present Zhaoqiu'\r\n },\r\n darkModeSwitchLabel: 'Appearance'\r\n },\r\n vue: {\r\n template: {\r\n compilerOptions: {\r\n isCustomElement: (tag: string) => customElements.includes(tag),\r\n \r\n },\r\n },\r\n },\r\n }\r\n}\r\n\r\nexport default config()\r\n```\r\n\r\n## yarn docs:build\r\n\r\n\r\n\n\n### Expected behavior\n\na.md --> /a/index.html\n\n### System Info\n\n```shell\nSystem:\r\n OS: Windows 10 10.0.19045\r\n CPU: (8) x64 Intel(R) Core(TM) i7-10510U CPU @ 1.80GHz\r\n Memory: 4.94 GB / 15.87 GB\r\nBinaries:\r\n Node: 19.7.0 - C:\\Program Files\\nodejs\\node.EXE\r\n Yarn: 1.22.19 - ~\\AppData\\Roaming\\npm\\yarn.CMD\r\n npm: 9.5.0 - C:\\Program Files\\nodejs\\npm.CMD\r\nBrowsers:\r\n Edge: Spartan (44.19041.1266.0), Chromium (110.0.1587.69)\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.dev).\n- [X] Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.",[2938],{"name":2910,"color":2911},2078,"cleanUrls doesn't seem to wrok","2023-03-21T00:04:10Z","https://github.com/vuejs/vitepress/issues/2078",0.6937937,{"description":2945,"labels":2946,"number":2948,"owner":2869,"repository":2870,"state":2871,"title":2949,"updated_at":2950,"url":2951,"score":2952},"### Describe the bug\n\nany page which contains `process.env.NODE_ENV !== 'production'`, it will report 404 error\n\n### Reproduction\n\nstep 1: clone https://github.com/Alanscut/vitepress-demo\r\n\r\nstep 2: run the project\r\n\r\nstep 3: visit the page\r\n\r\n\n\n### Expected behavior\n\ncould visit the page normally, the page will show:\r\n\r\n\r\n\n\n### System Info\n\n```shell\nSystem:\r\n OS: Windows 10 10.0.19043\r\n CPU: (4) x64 Intel(R) Core(TM) i7-7500U CPU @ 2.70GHz\r\n Memory: 7.05 GB / 15.90 GB\r\n Binaries:\r\n Node: 12.22.5 - C:\\Program Files\\nodejs\\node.EXE\r\n Yarn: 1.22.11 - E:\\npm\\repo\\yarn.CMD\r\n npm: 7.21.1 - ~\\node_modules\\.bin\\npm.CMD\r\n Browsers:\r\n Edge: Spartan (44.19041.1023.0), Chromium (94.0.992.50)\r\n Internet Explorer: 11.0.19041.1202\n```\n\n\n### Additional context\n\n_No response_\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.",[2947],{"name":2866,"color":2867},419,"pages contains `process.env.NODE_ENV !== 'production'` report 404 error","2023-01-21T14:32:51Z","https://github.com/vuejs/vitepress/issues/419",0.6941751,{"description":2954,"labels":2955,"number":2956,"owner":2869,"repository":2870,"state":2871,"title":2957,"updated_at":2958,"url":2959,"score":2960},"### 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.69444746,["Reactive",2962],{},["Set"],["ShallowReactive",2965],{"$fTRc1wZytZ_XrK4EfJfei_Sz-An4H4Yy6syhVxH_PVJc":-1,"$ftvxbDo3aNgvxrBmKV_LytJK6cREwOez_pXZZXlKbXPk":-1},"/vuejs/vitepress/1496"]