```\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",[2896],{"name":2871,"color":2872},4273,"How to use default Vue components elsewhere","2024-12-03T17:27:39Z","https://github.com/vuejs/vitepress/issues/4273",0.7397244,{"description":2903,"labels":2904,"number":2906,"owner":2874,"repository":2875,"state":2876,"title":2907,"updated_at":2908,"url":2909,"score":2910},"### Is your feature request related to a problem? Please describe.\r\n\r\nVite team has created a great repository to list the plugins for Vite: https://github.com/vitejs/awesome-vite\r\n\r\nVuePress did receive the same attention: https://github.com/vuepress/awesome-vuepress\r\nThe same goes on if we think of other projects. Example: https://github.com/stylelint/awesome-stylelint\r\n\r\nThere are many great plugins coming out for VitePress, but it is not easy to find them, since npm registry is not easy to search... the same applies to GitHub as a whole...\r\n\r\nAs long as I know, there are 2 \"awesome-vitepress\" repositories of sort, but they are not updated, the owners are not much online, and actually one of the repositories was targeted only for vitepress v1.\r\n\r\nhttps://github.com/logicspark/awesome-vitepress-v1\r\nhttps://github.com/jonsam-ng/awesome-vitepress\r\n\r\n### Describe the solution you'd like\r\n\r\nTo create a repository where we can contribute to the list of VitePress plugins.\r\nThis is a prestige for your own project and also for the plugin authors.\r\n\r\n### Describe alternatives you've considered\r\n\r\n_No response_\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.",[2905],{"name":2871,"color":2872},4059,"Create a \"awesome-vitepress\" repository","2024-09-29T09:06:02Z","https://github.com/vuejs/vitepress/issues/4059",0.74451953,{"description":2912,"labels":2913,"number":2918,"owner":2874,"repository":2875,"state":2876,"title":2919,"updated_at":2920,"url":2921,"score":2922},"I hit another case of #449 by including the following in a markdown file. The workaround which linked to #662 worked for me. Perhaps this should be off by default? Or detect the compilation error and bring a suggestion? The XML I included seems pretty straightforward. Would have been very hard to diagnose if I hadn't been doing lots of searches against the issues here. \r\n\r\n```xml\r\n\u003Ckeyboard locale=\"mt\" conformsTo=\"techpreview\">\r\n \u003Ckeys>\r\n \u003Ckey id=\"hmaqtugha\" to=\"ħ\" />\r\n \u003Ckey id=\"that\" to=\"ថា\" />\r\n \u003C/keys>\r\n\r\n \u003Clayers form=\"hardware\">\r\n \u003Clayer id=\"base\">\r\n \u003Crow keys=\"hmaqtugha that\" />\r\n \u003C/layer>\r\n \u003C/layers>\r\n\r\n\u003C/keyboard>\r\n```\r\n\r\nSymptom is an error deep inside vue\r\n\r\n```\r\n5:26:34 PM [vitepress] Internal server error: Duplicate attribute.\r\n Plugin: vite:vue\r\n File: /Users/srl295/src/codehivetx.us/en/posts/2022-kbd-progress.md:22:69\r\n 22 | \u003Ckeys>\r\n 23 | \u003Ckey id=\"hmaqtugha\" to=\"ħ\" />\r\n 24 | \u003Ckey id=\"that\" to=\"ថា\" />\r\n | ^\r\n 25 | \u003C/keys>\r\n 26 | \r\n at createCompilerError (/Users/srl295/src/codehivetx.us/node_modules/@vue/compiler-core/dist/compiler-core.cjs.js:1327:17)\r\n at emitError (/Users/srl295/src/codehivetx.us/node_modules/@vue/compiler-core/dist/compiler-core.cjs.js:2805:5)\r\n at Object.onattribnameend (/Users/srl295/src/codehivetx.us/node_modules/@vue/compiler-core/dist/compiler-core.cjs.js:2290:7)\r\n at Tokenizer.handleAttrNameEnd (/Users/srl295/src/codehivetx.us/node_modules/@vue/compiler-core/dist/compiler-core.cjs.js:872:14)\r\n at Tokenizer.stateInAttrName (/Users/srl295/src/codehivetx.us/node_modules/@vue/compiler-core/dist/compiler-core.cjs.js:812:12)\r\n at Tokenizer.parse (/Users/srl295/src/codehivetx.us/node_modules/@vue/compiler-core/dist/compiler-core.cjs.js:1065:16)\r\n at Object.baseParse (/Users/srl295/src/codehivetx.us/node_modules/@vue/compiler-core/dist/compiler-core.cjs.js:2844:13)\r\n at Object.parse (/Users/srl295/src/codehivetx.us/node_modules/@vue/compiler-dom/dist/compiler-dom.cjs.js:698:23)\r\n at Object.parse$2 [as parse] (/Users/srl295/src/codehivetx.us/node_modules/@vue/compiler-sfc/dist/compiler-sfc.cjs.js:1846:24)\r\n at createDescriptor (file:///Users/srl295/src/codehivetx.us/node_modules/@vitejs/plugin-vue/dist/index.mjs:74:43) (x2)\r\n```\r\n",[2914,2917],{"name":2915,"color":2916},"build","377ba8",{"name":2871,"color":2872},3401,"better stack trace / error message for markdown-it-attrs failures","2025-03-02T18:10:00Z","https://github.com/vuejs/vitepress/issues/3401",0.7469377,{"description":2924,"labels":2925,"number":2929,"owner":2874,"repository":2875,"state":2930,"title":2931,"updated_at":2932,"url":2933,"score":2934},"### Describe the bug\n\nMy project add network request, But I need different environment variables control the request address, how should I use env in vite\r\n\r\n[Env Variables](https://vitejs.dev/guide/env-and-mode.html#env-variables)\n\n### Reproduction\n\nNone\n\n### Expected behavior\n\nI want to be able to access `import.meta.env.BASE_URL`, just like the vite project\n\n### System Info\n\n```Text\nSystem:\r\n OS: Windows 11 10.0.22631\r\n CPU: (16) x64 12th Gen Intel(R) Core(TM) i5-12600KF\r\n Memory: 2.31 GB / 31.82 GB\r\n Binaries:\r\n Node: 18.19.0 - D:\\software\\nodejs\\node.EXE\r\n npm: 10.2.3 - D:\\software\\nodejs\\npm.CMD\r\n pnpm: 9.1.1 - ~\\AppData\\Local\\pnpm\\pnpm.CMD\r\n bun: 1.1.3 - ~\\.bun\\bin\\bun.EXE\r\n Browsers:\r\n Edge: Chromium (123.0.2420.97)\r\n Internet Explorer: 11.0.22621.3527\r\n npmPackages:\r\n vitepress: 1.0.2 => 1.0.2\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.",[2926],{"name":2927,"color":2928},"need more info","bdbefc",3896,"closed","How to using Vite Env Variables?","2024-05-24T04:42:25Z","https://github.com/vuejs/vitepress/issues/3896",0.69887656,{"description":2936,"labels":2937,"number":2938,"owner":2874,"repository":2875,"state":2930,"title":2939,"updated_at":2940,"url":2941,"score":2942},"### 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.7014867,{"description":2944,"labels":2945,"number":2947,"owner":2874,"repository":2875,"state":2930,"title":2948,"updated_at":2949,"url":2950,"score":2951},"### Describe the bug\n\n# \u003Chttps://vitepress.dev/>\r\n## Microsoft edge\r\n\r\n## safari\r\n\r\n\r\n# mywebsite\r\n## Microsoft edge\r\n\r\n## safari\r\n\r\n\n\n### Reproduction\n\nLastUpdated在Safari上不显示\n\n### Expected behavior\n\nLastUpdated应当在Safari上显示\n\n### System Info\n\n```Text\nMicrosoft Edge\r\n版本 126.0.2592.61 (正式版本) (64 位)\r\n\r\niOS 17.5.1\n```\n\n\n### Additional context\n\nlastUpdated: {\r\n\t\t\ttext: '上次更新时间',\r\n\t\t\tformatOptions: {\r\n\t\t\t\tlocaleMatcher: \"best fit\",\r\n\t\t\t\tweekday: undefined,\r\n\t\t\t\tera: undefined,\r\n\t\t\t\tyear: \"numeric\",\r\n\t\t\t\tmonth: \"long\",\r\n\t\t\t\tday: \"numeric\",\r\n\t\t\t\thour: \"numeric\",\r\n\t\t\t\tminute: \"numeric\",\r\n\t\t\t\tsecond: undefined,\r\n\t\t\t\ttimeZoneName: \"longGeneric\",\r\n\t\t\t\tformatMatcher: \"best fit\",\r\n\t\t\t\thour12: true,\r\n\t\t\t\ttimeZone: \"Asia/Chongqing\"\r\n\t\t\t}\r\n\t\t},\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.",[2946],{"name":2927,"color":2928},3974,"LastUpdated在Safari上不显示","2024-06-29T04:41:46Z","https://github.com/vuejs/vitepress/issues/3974",0.7126059,{"description":2953,"labels":2954,"number":2955,"owner":2874,"repository":2875,"state":2930,"title":2956,"updated_at":2957,"url":2958,"score":2959},"### Describe the bug\n\nClick on the search box and the page will look right offset,This problem also exists in Vue,This is caused by the scroll bar on the right。\n\n### Reproduction\n\nClick on the search box.\n\n### Expected behavior\n\nClick the search box, the page does not offset\n\n### System Info\n\n```Text\nall\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.",[],3589,"searchbox","2024-03-24T00:05:34Z","https://github.com/vuejs/vitepress/issues/3589",0.71361667,{"description":2961,"labels":2962,"number":2966,"owner":2874,"repository":2875,"state":2930,"title":2967,"updated_at":2968,"url":2969,"score":2970},"### Describe the bug\n\nI want to use VitePress to generate some static HTML pages, and I hope these HTML files can be opened directly with a browser by double-clicking, without the need for a web server. But after run `npm run docs:build`, and open the HTML file in Chrome, there came an error in Network panel, `Name: inter-roman-latin.bvIUbFQP.woff2`, `Status: (failed)net::ERR_FILE_NOT_FOUND`.\r\n\r\n\r\nIn `.vitepress/dist/assets/style.SZl3QJfs.css`, you can see the url of file `inter-roman-latin.bvIUbFQP.woff2` is `/assets/inter-roman-latin.bvIUbFQP.woff2` but not `./assets/inter-roman-latin.bvIUbFQP.woff2`. This might be the cause of the error.\r\n\r\n\r\n\n\n### Reproduction\n\nRun the command:\r\n\r\n```\r\nnpm install --save-dev vitepress\r\n\r\nnpx vitepress init\r\n\r\n Where should VitePress initialize the config?\r\n ./\r\n\r\n Site title:\r\n My Awesome Project\r\n\r\n Site description:\r\n A VitePress Site\r\n\r\n Theme:\r\n Default Theme (Out of the box, good-looking docs)\r\n\r\n Use TypeScript for config and theme files?\r\n No\r\n\r\n Add VitePress npm scripts to package.json?\r\n Yes\r\n```\r\n\r\nEdit `.vitepress/config.mjs`, add `base : '.'` and `mpa : true`:\r\n\r\n```\r\nimport { defineConfig } from 'vitepress'\r\n\r\n// https://vitepress.dev/reference/site-config\r\nexport default defineConfig({\r\n title: \"My Awesome Project\",\r\n description: \"A VitePress Site\",\r\n themeConfig: {\r\n // https://vitepress.dev/reference/default-theme-config\r\n nav: [\r\n { text: 'Home', link: '/' },\r\n { text: 'Examples', link: '/markdown-examples' }\r\n ],\r\n\r\n sidebar: [\r\n {\r\n text: 'Examples',\r\n items: [\r\n { text: 'Markdown Examples', link: '/markdown-examples' },\r\n { text: 'Runtime API Examples', link: '/api-examples' }\r\n ]\r\n }\r\n ],\r\n\r\n socialLinks: [\r\n { icon: 'github', link: 'https://github.com/vuejs/vitepress' }\r\n ]\r\n },\r\n base : '.',\r\n mpa : true\r\n})\r\n```\r\n\r\nAnd build the docs:\r\n\r\n```\r\nnpm run docs:build\r\n```\r\n\r\nOpen the file `.vitepress/dist/api-examples.html` in Chrome by double-clicking, and then open the Network panel of Chrome's DevTools to see the error.\n\n### Expected behavior\n\nAfter set `base : '.'` in `config.mjs`, the url of assets should start with `./assets/`, but not `/assets/`.\r\n\n\n### System Info\n\n```Text\nSystem:\r\n OS: Linux 6.1 Debian GNU/Linux 12 (bookworm) 12 (bookworm)\r\n CPU: (4) x64 Intel(R) Core(TM) i5-5200U CPU @ 2.20GHz\r\n Memory: 10.44 GB / 15.52 GB\r\n Container: Yes\r\n Shell: 3.6.0 - /usr/bin/fish\r\n Binaries:\r\n Node: 18.17.1 - ~/dev/nodejs/nodejs/bin/node\r\n npm: 10.4.0 - ~/dev/nodejs/nodejs/bin/npm\r\n Browsers:\r\n Chrome: 112.0.5615.165\r\n npmPackages:\r\n vitepress: ^1.0.0-rc.42 => 1.0.0-rc.42\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.",[2963],{"name":2964,"color":2965},"wont fix","EDEED1",3563,"The link in css file is not correct after setting base to '.' in config.mjs","2024-02-16T00:04:27Z","https://github.com/vuejs/vitepress/issues/3563",0.7142069,["Reactive",2972],{},["Set"],["ShallowReactive",2975],{"$fTRc1wZytZ_XrK4EfJfei_Sz-An4H4Yy6syhVxH_PVJc":-1,"$fYz-z9tXPp-TwcyDaF9tZtsJ3OHu8OCdLtaeibhnHcTc":-1},"/vuejs/vitepress/3888"]