```\r\n\r\nIt doesn't seem to be correct:\r\n\r\n\r\n\r\nHow to make it look correct, just like on the homepage?:\r\n\r\n\r\n\r\n",[2882],{"name":2869,"color":2870},4273,"How to use default Vue components elsewhere","2024-12-03T17:27:39Z","https://github.com/vuejs/vitepress/issues/4273",0.765681,{"description":2889,"labels":2890,"number":2894,"owner":2872,"repository":2873,"state":2874,"title":2895,"updated_at":2896,"url":2897,"score":2898},"Why the css and js files import fail after I [npm run build](docs:build)? In other words, the styles are lost and the web pages are messed up.\r\n\r\nWhether or not to set base is the same.\r\n\r\nThe following is the dist without the base (taking example.html as an example):\r\n\u003Cimg width=\"291\" alt=\"image\" src=\"https://github.com/user-attachments/assets/927cdd84-5ff2-4d3f-8f80-9b6f577f4f30\">\r\n\u003Cimg width=\"944\" alt=\"image\" src=\"https://github.com/user-attachments/assets/e8fbac74-3fdb-4754-81e1-6ad024428abc\">\r\n\u003Cimg width=\"1439\" alt=\"image\" src=\"https://github.com/user-attachments/assets/891b39fc-e11e-45b3-b52d-ff3f835ef734\">\r\n\r\nAs long as I change \"href=\"/assets/style.eGqldYn-.css\" to href=\"assets/style.eGqldYn-.css\", the style will return to normal.\r\n\u003Cimg width=\"1436\" alt=\"image\" src=\"https://github.com/user-attachments/assets/ac9e36be-20da-4fc8-bda1-e8c826314c32\">\r\n\r\n\r\nIs there something wrong with the config.ts?\r\n\r\nthanks very much~\r\n\r\n-------------------------------------------------------\r\n为什么我build之后,css和js文件的引入失败呢?也就是说,样式丢失,网页错乱\r\n\r\n无论加不加base属性都是如此。\r\n\r\n以下是没有加base属性的dist文件(以example.html为例):\r\n\u003Cimg width=\"291\" alt=\"image\" src=\"https://github.com/user-attachments/assets/927cdd84-5ff2-4d3f-8f80-9b6f577f4f30\">\r\n\u003Cimg width=\"944\" alt=\"image\" src=\"https://github.com/user-attachments/assets/e8fbac74-3fdb-4754-81e1-6ad024428abc\">\r\n\u003Cimg width=\"1439\" alt=\"image\" src=\"https://github.com/user-attachments/assets/891b39fc-e11e-45b3-b52d-ff3f835ef734\">\r\n\r\n\r\n只要我将 href=\"/assets/style.eGqldYn-.css\" 改成 href=\"assets/style.eGqldYn-.css\",样式就恢复正常了。\r\n\u003Cimg width=\"1436\" alt=\"image\" src=\"https://github.com/user-attachments/assets/ac9e36be-20da-4fc8-bda1-e8c826314c32\">\r\n\r\n是哪里的配置写错了吗?\r\n\r\n非常感谢",[2891],{"name":2892,"color":2893},"need more info","bdbefc",4165,"Why the css and js files import fail after I build? In other words, the styles are lost and the web pages are messed up.","2025-03-02T18:08:41Z","https://github.com/vuejs/vitepress/issues/4165",0.7763175,{"description":2900,"labels":2901,"number":2905,"owner":2872,"repository":2873,"state":2906,"title":2907,"updated_at":2908,"url":2909,"score":2910},"### Is your feature request related to a problem? Please describe.\n\nI have a large amount of links (78 links) on my index webpage, and I'm mounting it in AWS Cloudfront. I'm getting 503 errors since I'm doing a kind of DOS attack prefetching all 78 links...\r\n\r\nI think this issue is related to usePrefetch() that enables \"intersectionObserver based pre-fetch\", and since all my links are above the webpage they are all prefetched at once...\n\n### Describe the solution you'd like\n\nI want to add an easy way of disabling this feature or find a way to only fetch them when links are visible/unfolded (they are dropdowns).\r\n\r\n\r\n\r\n\n\n### Describe alternatives you've considered\n\nI didn't try another way. Maybe someone with more experience can do this easily.\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] 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.",[2902],{"name":2903,"color":2904},"contribution welcome","11E4B8",3163,"closed","Disable or modify usePrefetch behavior (rel=\"prefetch\" on links)","2023-11-27T00:04:46Z","https://github.com/vuejs/vitepress/issues/3163",0.73737085,{"description":2912,"labels":2913,"number":2916,"owner":2872,"repository":2873,"state":2906,"title":2917,"updated_at":2918,"url":2919,"score":2920},"### Describe the bug\n\n- Blockquotes can be nested.\r\n- Custom blocks can be nested.\r\n- But GitHub-flavored alerts cannot (with errors).\r\n\r\n```md\r\n> case 1\r\n>\r\n> > nested content\r\n\r\n:::: tip\r\ncase 2\r\n\r\n::: warning\r\nnest content\r\n:::\r\n::::\r\n\r\n> [!TIP]\r\n> case 3\r\n>\r\n> > [!WARNING]\r\n> > case 3\r\n```\r\n\r\n\r\n\r\n\r\n\n\n### Reproduction\n\nhttps://stackblitz.com/edit/vite-alzhrt?file=docs%2Fexample.md\n\n### Expected behavior\n\nRender without errors.\n\n### System Info\n\n```Text\nN/A\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.",[2914,2915],{"name":2866,"color":2867},{"name":2903,"color":2904},3512,"Bug: GitHub-flavored alerts cannot be nested (with errors)","2024-02-11T00:04:59Z","https://github.com/vuejs/vitepress/issues/3512",0.7411835,{"description":2922,"labels":2923,"number":2924,"owner":2872,"repository":2873,"state":2906,"title":2925,"updated_at":2926,"url":2927,"score":2928},"### Describe the bug\n\nvitepress dev is normal, but vitepress build reports an error, SyntaxError: Element is missing end tag. The key is that it is impossible to locate where the end tag is missing.\n\n### Reproduction\n\nvitepress build\n\n### Expected behavior\n\nPack normally or provide specific error information\n\n### System Info\n\n```Text\n\"vitepress\": \"^1.1.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.",[],3876,"SyntaxError: Element is missing end tag.","2024-05-31T04:42:05Z","https://github.com/vuejs/vitepress/issues/3876",0.7449876,{"description":2930,"labels":2931,"number":2935,"owner":2872,"repository":2873,"state":2906,"title":2936,"updated_at":2937,"url":2938,"score":2939},"### Describe the bug\n\nI installed Vitepress, built then ran it locally following the documentation of Vercel and everything seemed fine. But when I deployed it to my personal Vercel, my site keeps loading the 404.html. When I visit the Output of Vercel, I couldn't find any index.html and only 404.html. \r\n\r\nHere is currently [the blog of mine](https://vitepress-doc-kappa.vercel.app/) that I deployed to Vercel.\r\n\r\nThis is my current source on Vercel:\r\n\r\n\r\nThis is my current output on Vercel:\r\n\r\n\r\n\n\n### Reproduction\n\nNot sure if this is the correct way to reproduce, but I'll list down the commands that I ran, from install command to deploy:\r\n\r\n```bash\r\nnpm add -D vitepress\r\nnpx vitepress init ./\r\nnpm run docs:build\r\nnpm run docs:preview\r\nvercel --prod\r\n```\n\n### Expected behavior\n\nPage should load index.html when visiting `/`.\n\n### System Info\n\n```Text\nSystem:\r\n OS: Windows 10 10.0.19043\r\n CPU: (4) x64 Intel(R) Pentium(R) CPU G4560 @ 3.50GHz\r\n Memory: 2.27 GB / 7.96 GB\r\n Binaries:\r\n Node: 20.0.0 - C:\\Program Files\\nodejs\\node.EXE\r\n npm: 9.6.4 - C:\\Program Files\\nodejs\\npm.CMD\r\n Browsers:\r\n Edge: Spartan (44.19041.1266.0), Chromium (120.0.2210.133)\r\n Internet Explorer: 11.0.19041.1566\r\n npmPackages:\r\n vitepress: ^1.0.0-rc.39 => 1.0.0-rc.39\n```\n\n\n### Additional context\n\nI use a fresh setup of Vitepress and deploy to a Vercel setting using Node v20.x (which as mentioned on Vercel that is still in Beta). However I did try Node v18.x on Vercel and the error is the same. \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.",[2932],{"name":2933,"color":2934},"bug: pending triage","e99695",3460,"Site auto loads 404.html after deployed to Vercel","2024-01-24T00:04:46Z","https://github.com/vuejs/vitepress/issues/3460",0.7464637,{"description":2941,"labels":2942,"number":2946,"owner":2872,"repository":2873,"state":2906,"title":2947,"updated_at":2948,"url":2949,"score":2950},"### Describe the bug\r\n\r\nFail to install with yarn in windows, if the folder is not in C drive\r\n\r\n### Reproduction\r\n\r\nOn a folder is not in C drive:\r\n\r\n```sh\r\nyarn init\r\nyarn add -D vitepress vue\r\nyarn vitepress init\r\nyarn run docs:dev\r\n```\r\n\r\nGet this error\r\n\r\n```\r\n vitepress v1.3.1\r\n\r\n ➜ Local: http://localhost:5173/\r\n ➜ Network: use --host to expose\r\n ➜ press h to show help\r\n✘ [ERROR] Could not read from file: E:/Data/note-vitepress/.yarn/__virtual__/vue-virtual-80b135f193/4/C:/Users/User/AppData/Local/Yarn/Berry/cache/vue-npm-3.4.34-9d9c80aee1-10c0.zip/node_modules/vue/dist/vue.runtime.esm-bundler.js\r\n\r\n✘ [ERROR] Could not read from file: E:\\Data\\note-vitepress\\.yarn\\__virtual__\\vitepress-virtual-046653f2bc\\4\\C:\\Users\\User\\AppData\\Local\\Yarn\\Berry\\cache\\vitepress-npm-1.3.1-f5fb335031-10c0.zip\\node_modules\\vitepress\\lib\\vue-demi.mjs\r\n\r\n C:/Users/User/AppData/Local/Yarn/Berry/cache/@vueuse-core-npm-10.11.0-fb26847db9-10c0.zip/node_modules/@vueuse/core/index.mjs:3:320:\r\n 3 │ ...xtTick, reactive, markRaw, unref, getCurrentScope, set, del, isReadonly, onBeforeUpdate } from 'vue-demi';\r\n ╵ ~~~~~~~~~~\r\n```\r\n\r\n\r\n### Expected behavior\r\n\r\nNo issue\r\n\r\n### System Info\r\n\r\n```Text\r\nSystem:\r\n OS: Windows 10 10.0.19045\r\n CPU: (4) x64 Intel(R) Core(TM) i5-4570 CPU @ 3.20GHz\r\n Memory: 1.03 GB / 7.92 GB\r\n Binaries:\r\n Node: 20.15.0 - ~\\AppData\\Local\\Volta\\tools\\image\\node\\20.15.0\\node.EXE\r\n Yarn: 4.3.1 - ~\\AppData\\Local\\Volta\\tools\\image\\yarn\\4.3.1\\bin\\yarn.CMD\r\n npm: 10.7.0 - ~\\AppData\\Local\\Volta\\tools\\image\\node\\20.15.0\\npm.CMD\r\n bun: 1.1.21 - ~\\.bun\\bin\\bun.EXE\r\n Browsers:\r\n Chrome: 127.0.6533.73\r\n Edge: Chromium (127.0.2651.74)\r\n Internet Explorer: 11.0.19041.4355\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.",[2943],{"name":2944,"color":2945},"upstream","BF29ED",4091,"Fail to install with yarn in windows, if the folder is not in C drive","2024-08-09T04:42:09Z","https://github.com/vuejs/vitepress/issues/4091",0.74881196,{"description":2952,"labels":2953,"number":2954,"owner":2872,"repository":2873,"state":2906,"title":2955,"updated_at":2956,"url":2957,"score":2958},"### Is your feature request related to a problem? Please describe.\n\nI have a root index file with some text that also contains a table of contents to child pages. However, the next page link on the root file simply points to itself which I think is a bit confusing for readers.\r\n\r\nI would like the option to programmatically hide prev/next buttons on pages that circles back to itself because it's very tedious to manually add `prev:false` and `next: false` to every page that falls under this case.\r\n\r\nHere's the sidebar links that causes the issue for me:\r\n```json\r\n [\r\n {\r\n \"text\": \"Introduction\",\r\n \"base\": \"/\",\r\n \"link\": \"introduction/index\",\r\n \"items\": [\r\n {\r\n \"text\": \"A\",\r\n \"base\": \"/\",\r\n \"link\": \"introduction/a\"\r\n },\r\n {\r\n \"text\": \"B\",\r\n \"base\": \"/\",\r\n \"link\": \"introduction/b\"\r\n }\r\n ]\r\n }\r\n ]\r\n```\n\n### Describe the solution you'd like\n\nEither:\r\n\r\n* An explicit option like `hidePrevNextWhenSingleChild`\r\n* Allow `themeConfig.docFooter.prev` and `themeConfig.docFooter.next` to accept a callback function that allows the user to check the current page and link candidates and return true/false\n\n### Describe alternatives you've considered\n\nI'm currently running a script to read my sidebar config and programmatically editing the frontmatter of index pages that match my criteria but this is very error prone.\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] 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.",[],4003,"Hide prev/next buttons when there is only 1 candidate","2024-07-07T04:41:47Z","https://github.com/vuejs/vitepress/issues/4003",0.7611897,{"description":2960,"labels":2961,"number":2963,"owner":2872,"repository":2873,"state":2906,"title":2964,"updated_at":2965,"url":2966,"score":2967},"### Describe the bug\n\nbuild error: TypeError: _ctx.a is not a function.\r\n\r\n\r\n\n\n### Reproduction\n\nYou can paste the follow txt in the markdown:\r\n\r\n```md\r\n$S_n = \\frac{{a(1 - r^n)}}{{1 - r}}$\r\n```\r\n\r\nand you will recevied a build error.\r\n\r\nBut, other Math Equations can normally build, like:\r\n\r\n```md\r\n$S_N$\r\n```\n\n### Expected behavior\n\nNormal output page, even if it does not render mathematical formulas.\n\n### System Info\n\n```Text\nSystem:\r\n OS: Windows 10 10.0.19045\r\n CPU: (12) x64 AMD Ryzen 5 4600H with Radeon Graphics\r\n Memory: 6.04 GB / 15.37 GB\r\n Binaries:\r\n Node: 20.11.1 - C:\\Program Files\\nodejs\\node.EXE\r\n npm: 10.5.0 - C:\\Program Files\\nodejs\\npm.CMD\r\n pnpm: 8.15.5 - C:\\Program Files\\nodejs\\pnpm.CMD\r\n Browsers:\r\n Edge: Chromium (123.0.2420.65)\r\n Internet Explorer: 11.0.19041.3636\r\n npmPackages:\r\n vitepress: ^1.0.1 => 1.0.1\n```\n\n\n### Additional context\n\nWhen I follow the step of [math-equations - docs] the error disappeared. \r\n\r\n\r\n[math-equations - docs]: https://vitepress.dev/guide/markdown#math-equations\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.",[2962],{"name":2933,"color":2934},3728,"build error: TypeError: _ctx.a is not a function","2024-04-28T12:25:17Z","https://github.com/vuejs/vitepress/issues/3728",0.76123303,["Reactive",2969],{},["Set"],["ShallowReactive",2972],{"$fTRc1wZytZ_XrK4EfJfei_Sz-An4H4Yy6syhVxH_PVJc":-1,"$fWagI9j5Upef9qoacVLZAlSu6N0IOIgRxgJi74yhQeIM":-1},"/vuejs/vitepress/3039"]