\r\n\r\n::: zh-CN\r\n中文\r\n:::\r\n\r\n::: en\r\nEnglish\r\n:::\r\n```\r\n\r\nThis reduces maintenance costs.\r\n\r\nI came up with a very low cost implementation - [CSS-I18N](https://github.com/valaxyjs/css-i18n)\r\nAnd I implemented it in my own project [valaxy](https://github.com/YunYouJun/valaxy).\r\n\r\nIt works well. You can preview it [here](https://valaxy.site/guide/i18n).\r\nAnd this is my implementation: [How to realize CSS i18n?](https://valaxy.site/posts/i18n#css-i18n-another-solution)\r\n\r\n---\r\n\r\nIt is very cost-effective and I hope to integrate it with vitepress.\r\nIf you agree with my proposal, please let me know and I can create a PR for vitepress.\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.",[2899],{"name":2871,"color":2872},3047,"CSS i18n in one page","2025-03-02T18:10:37Z","https://github.com/vuejs/vitepress/issues/3047",0.74312353,{"description":2906,"labels":2907,"number":2911,"owner":2874,"repository":2875,"state":2876,"title":2912,"updated_at":2913,"url":2914,"score":2915},"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非常感谢",[2908],{"name":2909,"color":2910},"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.75886905,{"description":2917,"labels":2918,"number":2920,"owner":2874,"repository":2875,"state":2876,"title":2921,"updated_at":2922,"url":2923,"score":2924},"### 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.",[2919],{"name":2871,"color":2872},4059,"Create a \"awesome-vitepress\" repository","2024-09-29T09:06:02Z","https://github.com/vuejs/vitepress/issues/4059",0.77616656,{"description":2926,"labels":2927,"number":2928,"owner":2874,"repository":2875,"state":2929,"title":2930,"updated_at":2931,"url":2932,"score":2933},"I noticed that `VitePress` imports `@vue/shared`, but it appears to only use one of its methods. However, there are more methods available in `@vue/shared`. Should `VitePress` directly import these additional methods from `@vue/shared` to reduce redundancy in the code?\r\n\r\nHere is one case of what I mentioned:\r\n\r\n`vitepress`:\r\nhttps://github.com/vuejs/vitepress/blob/a6a7645e942cc63c57ca5d79da4b76dee76d8a96/src/node/config.ts#L229\r\n\r\n`@vue/shared`:\r\nhttps://github.com/vuejs/core/blob/db374e54c9f5e07324728b85c74eca84e28dd352/packages/shared/src/general.ts#L52\r\n\r\nSeems that can directly use `import { isObject } from '@vue/shared`.",[],3720,"closed","Reuse some of the existing methods in `@vue/shared`","2024-04-28T12:24:53Z","https://github.com/vuejs/vitepress/issues/3720",0.69641733,{"description":2935,"labels":2936,"number":2937,"owner":2874,"repository":2875,"state":2929,"title":2938,"updated_at":2939,"url":2940,"score":2941},"### Is your feature request related to a problem? Please describe.\n\n希望官方能支持 LaTeX3 语法(expl3)高亮。\r\n\r\n我尝试了 shiki 官网的[方法](https://shiki.tmrs.site/guide/load-lang)\r\n按照它的配置在`.vitepress/config.mts` 中加入了\r\n```\r\nimport { getHighlighter } from 'shiki'\r\n\r\nconst latex3 = JSON.parse(fs.readFileSync('../../LaTeX-Expl3.tmLanguage.json', 'utf8'))\r\n\r\nconst highlighter = await getHighlighter({\r\n langs: [latex3],\r\n themes: ['vitesse-light']\r\n})\r\n\r\nconst html = highlighter.codeToHtml(code, {\r\n lang: 'my-lang',\r\n theme: 'vitesse-light'\r\n})\r\n```\r\n但是 VScode 提示我\r\n```\r\n找不到名称“fs”。\r\n找不到名称“code”。\r\n```\r\n\r\n我没有什么 ts 代码基础,不知道怎么改。但是 LaTeX3 用得也很普遍,所以希望官方能够支持,这样就不需要我额外配置了。\n\n### Describe the solution you'd like\n\n调用 VScode 的 [LaTeX-Workshop](https://github.com/James-Yu/LaTeX-Workshop/blob/master/syntax/LaTeX-Expl3.tmLanguage.json) 里的高亮就行\n\n### Describe alternatives you've considered\n\n_No response_\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.",[],3781,"希望支持 LaTeX3 语法高亮","2024-04-28T12:24:57Z","https://github.com/vuejs/vitepress/issues/3781",0.6973687,{"description":2943,"labels":2944,"number":2946,"owner":2874,"repository":2875,"state":2929,"title":2947,"updated_at":2948,"url":2949,"score":2950},"### Describe the bug\n\nI've no idea how to fix this properly so instead of giving a PR, I would like to just raise this issue.\r\n\r\n\r\n\n\n### Reproduction\n\nAny code-group with enough multiple tabs will cause this issue\n\n### Expected behavior\n\nThe marker should have the full-width\n\n### System Info\n\n```sh\nvitepress 1.0.0-beta.6\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.",[2945],{"name":2888,"color":2889},2700,"🐞Bug(theme): Code group's `tab`'s `marker`'s width is limited and not following horizental scroll","2023-08-05T00:04:22Z","https://github.com/vuejs/vitepress/issues/2700",0.73695403,{"description":2952,"labels":2953,"number":2955,"owner":2874,"repository":2875,"state":2929,"title":2956,"updated_at":2957,"url":2958,"score":2959},"### Describe the bug\n\nJust follow the document, add workflow and push docs to repo.\r\nVitepress works well locally with `pnpm docs:dev`, but after deploy to github pages, it losts the index.md content, or in another word, useful part of them, as you can see, it does have the notes part\r\n[](https://imgse.com/i/xniiA1)\r\nI have checked the local build file, it contains the correct content.\r\nSince i used the exact workflow and already set the `base` config, i can't figure out why it leads to this.\n\n### Reproduction\n\nclone this repo [Youbei](https://github.com/Hellager/Youbei) and deploy its docs to the github pages\n\n### Expected behavior\n\nGithub pages show normally like docs in local\r\n[](https://imgse.com/i/xniuBd)\n\n### System Info\n\n```shell\nSystem:\r\n OS: Windows 10 10.0.19044\r\n CPU: (8) x64 Intel(R) Core(TM) i7-9700 CPU @ 3.00GHz\r\n Memory: 2.11 GB / 7.78 GB\r\n Binaries:\r\n Node: 16.13.1 - C:\\Program Files\\nodejs\\node.EXE\r\n Yarn: 1.22.19 - ~\\AppData\\Local\\pnpm\\yarn.CMD\r\n npm: 8.1.2 - C:\\Program Files\\nodejs\\npm.CMD\r\n Browsers:\r\n Edge: Spartan (44.19041.1266.0), Chromium (105.0.1343.50)\r\n Internet Explorer: 11.0.19041.1566\r\n npmPackages:\r\n vitepress: 1.0.0-alpha.17 => 1.0.0-alpha.17\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.",[2954],{"name":2868,"color":2869},1413,"Deploying to github pages and lost both router and content ","2023-01-21T14:25:20Z","https://github.com/vuejs/vitepress/issues/1413",0.74071103,{"description":2961,"labels":2962,"number":2966,"owner":2874,"repository":2875,"state":2929,"title":2967,"updated_at":2968,"url":2969,"score":2970},"### Describe the bug\n\nAfter configuring base, the links generated using createContentLoader have a base prefix, while other links do not have a base (eq. [navigation-links](https://vitepress.dev/reference/default-theme-nav#navigation-links)). There is a difference between the two format of links.\r\n\r\nCaused by #2714\n\n### Reproduction\n\nhttps://stackblitz.com/edit/vite-tcog3a?file=docs%2F.vitepress%2FTest.vue\n\n### Expected behavior\n\nVarious links should maintain a consistent format\n\n### System Info\n\n```sh\nvitepress ^1.0.0-rc.1\n```\n\n\n### Additional context\n\nThe default theme for base processing is done in the component, eq. VPLink VPImage\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},"contribution welcome","11E4B8",2862,"The link generated by using CreateContentLoader is inconsistent with the default link format","2023-09-05T00:04:10Z","https://github.com/vuejs/vitepress/issues/2862",0.7565578,["Reactive",2972],{},["Set"],["ShallowReactive",2975],{"$fTRc1wZytZ_XrK4EfJfei_Sz-An4H4Yy6syhVxH_PVJc":-1,"$fPA3Ja41w-Teoh7_fEMTiJ2Dm5slpoTUUzLrdktRECdE":-1},"/vuejs/vitepress/3678"]