\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.",[3050],{"name":3051,"color":3052},"question","5D5FAE",3513,"部署到Github Pages之后,如果使用自定义域名的话样式会丢失","2024-02-07T00:04:15Z","https://github.com/vuejs/vitepress/issues/3513",0.7334647,{"description":3059,"labels":3060,"number":3062,"owner":3032,"repository":3033,"state":3034,"title":3063,"updated_at":3064,"url":3065,"score":3066},"### Describe the bug\r\n\r\nI am trying to convert an ancient documentation site into vitepress. The volume is very large (a lot of of pages, and many of them has very long content).\r\n\r\nI waited for __*more than 4 hours*__ to build my site with local search enabled. I would have to wait for the same amount of time to launch a dev server.\r\n\r\nUnfortunately, although the build finished without any error, the rendered search index was __*empty*__. This is caused by another problem: the local search plugin use [one _regex_](https://github.com/vuejs/vitepress/blob/main/src/node/plugins/localSearchPlugin.ts#L242) to find headers, and [another _regex_](https://github.com/vuejs/vitepress/blob/main/src/node/plugins/localSearchPlugin.ts#L243) to remove tags. Which works only if the html is directly parsed from markdown, and is very likely to fail upon embedded html (or vue template).\r\n\r\nIn addition, if you've looked at the outputs from PR #3374, you might have already noticed that each file was indexed _**twice**_ for each build. That doubles the wait time.\r\n\r\n### Reproduction\r\n\r\n```diff\r\n vitepress v1.0.0-rc.32\r\n\r\n⠹ building client + server bundles...\r\n(!) Some chunks are larger than 500 kB after minification. Consider:\r\n - Using dynamic import() to code-split the application\r\n - Use build.rollupOptions.output.manualChunks to improve chunking: https://rollupjs.org/configuration-options/#output-manualchunks\r\n - Adjust chunk size limit for this warning via build.chunkSizeWarningLimit.\r\n/Users/Yuxuan/Lab/xorg-doc/docs/index.md\r\n✓ building client + server bundles...\r\n✓ rendering pages...\r\n- build complete in 16008.00s.\r\n```\r\n\r\n> 16,008 seconds = 4.45 hours\r\n\r\n### Expected behavior\r\n\r\n1. Index faster.\r\n\r\n2. No double indexing for same source file.\r\n\r\n3. When splitting page into sections, match headers more robustly.\r\n\r\n### System Info\r\n\r\n```Text\r\nNot relevant\r\n```\r\n\r\n\r\n### Additional context\r\n\r\n#### Solution to improve performance provided here: #3374.\r\n\r\n\r\n#### I want to discuss with a maintainer before proceeding to port the [improved section-splitter](https://github.com/zhangyx-lab/x-doc/commit/cd2bfb7cb80b1c2fb422764f39253186bf127fe4#diff-c2a81544e9e46223053faa70670178d4e45d8b590252ba092c99bedd3751f69f) implementation.\r\n\r\n\r\n#### Also, I can provide a fix to the following issue after some discussion with maintainers:\r\n\r\n1. On `dev server`, only provide the search-index when the search box is focused (expanded), and show a loading indicator in the search dropdown before indexing completes. In this way the indexing process will not block dev preview.\r\n\r\n4. Fix the double indexing problem so large sites will build faster.\r\n\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.",[3061],{"name":3029,"color":3030},3377,"[local search] indexing too slow to be usable for large sites","2024-01-07T00:04:56Z","https://github.com/vuejs/vitepress/issues/3377",0.7368528,{"description":3068,"labels":3069,"number":3070,"owner":3032,"repository":3033,"state":3034,"title":3071,"updated_at":3072,"url":3073,"score":3074},"### Is your feature request related to a problem? Please describe.\r\n\r\nUsually when there are many pictures in the blog, we may want to be lazy to load to improve the efficiency of page loading, I don't know how to deal with it in addition to custom components, although custom components can be handled, but for the images that already exist in the blog do not want to re-process all manually\r\n\r\n### Describe the solution you'd like\r\n\r\nWish there was a better way to handle it\r\n\r\n### Describe alternatives you've considered\r\n\r\nCustom components\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.dev).\r\n- [X] Read the [Contributing Guidelines](https://github.com/vuejs/vitepress/blob/main/.github/contributing.md).\r\n- [X] Check that there isn't already an issue that asks for the same feature to avoid creating a duplicate.",[],2407,"Allows lazy loading of images","2023-06-04T00:04:30Z","https://github.com/vuejs/vitepress/issues/2407",0.74006367,{"description":3076,"labels":3077,"number":3081,"owner":3032,"repository":3033,"state":3034,"title":3082,"updated_at":3083,"url":3084,"score":3085},"### Describe the bug\n\n当我使用vitepress打包时,报错:\r\n$ vitepress build docs\r\n\r\n vitepress v1.0.0-rc.40\r\n\r\n⠏ building client + server bundles...\r\n(!) Some chunks are larger than 500 kB after minification. Consider:\r\n- Using dynamic import() to code-split the application\r\n- Use build.rollupOptions.output.manualChunks to improve chunking: https://rollupjs.org/configuration-options/#output-manualchunks\r\n- Adjust chunk size limit for this warning via build.chunkSizeWarningLimit.\r\n[commonjs--resolver] Missing \"./server-renderer\" specifier in \"vue\" package\r\n✖ building client + server bundles...\r\nbuild error:\r\nError: Missing \"./server-renderer\" specifier in \"vue\" package\r\n at e (file:///E:/code/vesyncUI/node_modules/vitepress/node_modules/vite/dist/node/chunks/dep-9A4-l-43.js:21914:25)\r\n at n (file:///E:/code/vesyncUI/node_modules/vitepress/node_modules/vite/dist/node/chunks/dep-9A4-l-43.js:21914:627)\r\n at o (file:///E:/code/vesyncUI/node_modules/vitepress/node_modules/vite/dist/node/chunks/dep-9A4-l-43.js:21914:1297)\r\n at resolveExportsOrImports (file:///E:/code/vesyncUI/node_modules/vitepress/node_modules/vite/dist/node/chunks/dep-9A4-l-43.js:29466:20)\r\n at resolveDeepImport (file:///E:/code/vesyncUI/node_modules/vitepress/node_modules/vite/dist/node/chunks/dep-9A4-l-43.js:29485:31)\r\n at tryNodeResolve (file:///E:/code/vesyncUI/node_modules/vitepress/node_modules/vite/dist/node/chunks/dep-9A4-l-43.js:29210:20)\r\n at Object.resolveId (file:///E:/code/vesyncUI/node_modules/vitepress/node_modules/vite/dist/node/chunks/dep-9A4-l-43.js:28978:28)\r\n at Object.handler (file:///E:/code/vesyncUI/node_modules/vitepress/node_modules/vite/dist/node/chunks/dep-9A4-l-43.js:67383:19)\r\n at file:///E:/code/vesyncUI/node_modules/vitepress/node_modules/rollup/dist/es/shared/node-entry.js:18642:40 \r\n at async PluginDriver.hookFirstAndGetPlugin (file:///E:/code/vesyncUI/node_modules/vitepress/node_modules/rollup/dist/es/shared/node-entry.js:18542:28)\r\nerror Command failed with exit code 1.\r\ninfo Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.\n\n### Reproduction\n\nyarn docs:build\n\n### Expected behavior\n\n打包完成\n\n### System Info\n\n```Text\nnode: 18.19.0\r\nvitepress:v1.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.",[3078],{"name":3079,"color":3080},"need more info","bdbefc",3492,"vitepress打包报错","2024-02-21T00:04:28Z","https://github.com/vuejs/vitepress/issues/3492",0.74197316,{"description":3087,"labels":3088,"number":3090,"owner":3032,"repository":3033,"state":3034,"title":3091,"updated_at":3092,"url":3093,"score":3094},"### 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.",[3089],{"name":3029,"color":3030},359,"Using the simplest example, an error occurred","2023-01-21T16:22:13Z","https://github.com/vuejs/vitepress/issues/359",0.74527967,{"description":3096,"labels":3097,"number":3101,"owner":3032,"repository":3033,"state":3034,"title":3102,"updated_at":3103,"url":3104,"score":3105},"### Describe the bug\r\n\r\nhttps://github.com/vuejs/vitepress/blob/75ca9e4302c65e3bcc9518f7df928318380f6cf6/src/node/markdown/plugins/highlightLines.ts#L30\r\n\r\n`highlightLinePlugin` is used before `attrs`, and `token.info` is rewritten.\r\n\r\nvia https://github.com/vuejs/vitepress/pull/664#discussion_r902203459\r\n\r\n### Reproduction\r\n\r\n\u003Cimg width=\"177\" alt=\"image\" src=\"https://user-images.githubusercontent.com/8336744/174726207-1c068f94-f597-4d5e-9101-4709a08a60c3.png\">\r\n\r\n\u003Cimg width=\"299\" alt=\"image\" src=\"https://user-images.githubusercontent.com/8336744/174726233-83967c42-db47-4c12-8dbd-0c83a817c448.png\">\r\n\r\n\r\n### Expected behavior\r\n\r\nRender `data=\"asdf\"`\r\n\r\n### System Info\r\n\r\n```shell\r\nSystem:\r\n OS: macOS 13.0\r\n CPU: (10) arm64 Apple M1 Max\r\n Memory: 13.84 GB / 64.00 GB\r\n Shell: 5.8.1 - /bin/zsh\r\n Binaries:\r\n Node: 16.15.1 - ~/Library/Caches/fnm_multishells/95455_1655742557079/bin/node\r\n Yarn: 1.22.19 - ~/Library/Caches/fnm_multishells/95455_1655742557079/bin/yarn\r\n npm: 8.12.1 - ~/Library/Caches/fnm_multishells/95455_1655742557079/bin/npm\r\n Browsers:\r\n Chrome: 102.0.5005.115\r\n Firefox: 101.0.1\r\n Safari: 16.0\r\n npmPackages:\r\n vitepress: ^1.0.0-alpha.2 => 1.0.0-alpha.2\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.",[3098],{"name":3099,"color":3100},"stale","ededed",826,"support adding attributes to code blocks","2023-08-11T00:04:28Z","https://github.com/vuejs/vitepress/issues/826",0.74565446,{"description":3107,"labels":3108,"number":3110,"owner":3032,"repository":3033,"state":3034,"title":3111,"updated_at":3112,"url":3113,"score":3114},"### Describe the bug\n\nWhen i build my website and visit it,One Page has '__VP_STATIC_START__' text.\r\n\r\n\r\n\r\n\n\n### Reproduction\n\nUse {base:'xxx/xxx'} setting in config.js\n\n### Expected behavior\n\nI hope '__VP_STATIC_START__' is not render my website. \n\n### System Info\n\n```shell\nSystem:\r\n OS: macOS 11.4\r\n CPU: (12) x64 Intel(R) Core(TM) i7-8750H CPU @ 2.20GHz\r\n Memory: 758.05 MB / 16.00 GB\r\n Shell: 5.8 - /bin/zsh\r\n Binaries:\r\n Node: 14.17.0 - /usr/local/bin/node\r\n Yarn: 1.22.10 - /usr/local/bin/yarn\r\n npm: 6.14.13 - /usr/local/bin/npm\r\n Watchman: 4.9.0 - /usr/local/bin/watchman\r\n Browsers:\r\n Chrome: 93.0.4577.63\r\n Safari: 14.1.1\r\n npmPackages:\r\n vitepress: ^0.20.0 => 0.20.0\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.",[3109],{"name":3079,"color":3080},417,"render '__VP_STATIC_START__'","2023-01-21T16:20:26Z","https://github.com/vuejs/vitepress/issues/417",0.74582225,{"description":3116,"labels":3117,"number":3119,"owner":3032,"repository":3033,"state":3034,"title":3120,"updated_at":3121,"url":3122,"score":3123},"### Is your feature request related to a problem? Please describe.\n\nNope.\n\n### Describe the solution you'd like\n\nProvide a config option, like `lastUpdated`.\n\n### Describe alternatives you've considered\n\n_No response_\n\n### Additional context\n\nNot very familiar with Node and Vite. I tried to do it on my own, but failed with 'process is not defined'. Any help?\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] Read the [Contributing Guidelines](https://github.com/vuejs/vitepress/blob/main/.github/contributing.md).\n- [X] Check that there isn't already an issue that asks for the same feature to avoid creating a duplicate.",[3118],{"name":3051,"color":3052},3001,"Support to show page contributors","2023-10-01T00:04:52Z","https://github.com/vuejs/vitepress/issues/3001",0.7467688,["Reactive",3125],{},["Set"],["ShallowReactive",3128],{"$fTRc1wZytZ_XrK4EfJfei_Sz-An4H4Yy6syhVxH_PVJc":-1,"$f_vgxwkoAUNquBesBn843Ys9Z69uAJYaXS9eDBAmn3iA":-1},"/vuejs/vitepress/1952"]