```\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",[2905],{"name":2868,"color":2869},4273,"How to use default Vue components elsewhere","2024-12-03T17:27:39Z","https://github.com/vuejs/vitepress/issues/4273",0.6760461,{"description":2912,"labels":2913,"number":2918,"owner":2871,"repository":2872,"state":2873,"title":2919,"updated_at":2920,"url":2921,"score":2922},"### Describe the bug\r\n\r\n```md\r\n## Powered by Vite \u003CBadge>HERE\u003C/Badge>\r\n```\r\n\r\nThis header\r\n\r\n1. is not properly slugified (expected `powered-by-vite`, actual `powered-by-vite-here`),\r\n2. and cannot be configurated to be properly slugified.\r\n\r\n### Reproduction\r\n\r\nhttps://stackblitz.com/edit/vite-hnczhc\r\n\r\nor the official doc: https://vitepress.dev/reference/default-theme-badge#title-custom-element ← see this anchor\r\n\r\n### Expected behavior\r\n\r\n1. The header should be slugified without badge children (if I use props instead, it is slugified as expected, but I cannot do so).\r\n2. I use the following config to make it look better:\r\n\r\n```ts\r\n markdown: {\r\n anchor: {\r\n slugify: (str) => slugify(str.replace(/ *\u003Cbadge.+/i, '')),\r\n },\r\n },\r\n```\r\n\r\nIt is working alright in the past, but not working for now. Actually the `str` received is `Powered by Vite HERE`, without tag information.\r\n\r\nI believe this is a regression from vitepress or mdit-vue.\r\n\r\n\r\n### System Info\r\n\r\n```Text\r\nN/A\r\n```\r\n\r\n\r\n### Additional context\r\n\r\n**Why don't you use props instead of children?**\r\n\r\nBecause this is an i18n doc site. The children can be translated via Crowdin, but props cannot.\r\n\r\nWith such inconsistencies, at least I don't think the designers of the badge component fully considered the i18n experience. Vitepress is an excellent project and I hope it gets better.\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.",[2914,2917],{"name":2915,"color":2916},"build","377ba8",{"name":2868,"color":2869},3511,"Bug: cannot properly slugify badge with children","2025-03-02T18:09:46Z","https://github.com/vuejs/vitepress/issues/3511",0.7009638,{"description":2924,"labels":2925,"number":2930,"owner":2871,"repository":2872,"state":2873,"title":2931,"updated_at":2932,"url":2933,"score":2934},"### Is your feature request related to a problem? Please describe.\r\n\r\nI would like to show a text in the footer like:\r\n\r\n`Edited at ${updatedAt} (${commitHash})`.\r\n\r\n\r\n### Describe the solution you'd like\r\n\r\n`updatedAt` is being fetched from this [`getGitTimestamp`](https://github.com/vuejs/vitepress/blob/4c2300318952bfdaabd766a6f16f26419ee854da/src/node/utils/getGitTimestamp.ts#L4) function.\r\n\r\nI would like to propose a new function called `getCommitHash` function which also receives a `file: string` as an argument called `updatedCommitHash` and then add it to the [`page` type](https://github.com/vuejs/vitepress/blob/54042ef5760e0af5590b616d909e7f23effedc22/types/shared.d.ts#L8-L19)\r\n\r\n### Describe alternatives you've considered\r\n\r\nI am going to built this code for my own `vitepress` project, but I think it might be beneficial for other pepole.\r\n\r\n### Additional context\r\n\r\nI would like to make a PR if we agree this is a good thing to add to `vitepress`. \r\n\r\nFirst, I would like to hear an OK from the maintainers. \r\n\r\nPD: Suggest better names as I think my proposed names are not very descriptive 😄 \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.",[2926,2929],{"name":2927,"color":2928},"has-workaround","1B4515",{"name":2868,"color":2869},3520,"Add `updatedCommitHash` to the `page` object","2025-03-02T18:09:45Z","https://github.com/vuejs/vitepress/issues/3520",0.7335396,{"description":2936,"labels":2937,"number":2939,"owner":2871,"repository":2872,"state":2940,"title":2941,"updated_at":2942,"url":2943,"score":2944},"### Is your feature request related to a problem? Please describe.\r\n\r\nI use internationalization on my VitePress website and I'd like to be able to translate the \"Skip to Content\" button label as well.\r\n\r\n### Describe the solution you'd like\r\n\r\nAn extra Default Theme config setting `skipToContentLabel`\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.",[2938],{"name":2868,"color":2869},4288,"closed","Overwrite \"Skip to Content\" button label","2024-12-14T04:43:57Z","https://github.com/vuejs/vitepress/issues/4288",0.6015579,{"description":2946,"labels":2947,"number":2951,"owner":2871,"repository":2872,"state":2940,"title":2952,"updated_at":2953,"url":2954,"score":2955},"### Describe the bug\n\nhttps://github.com/vuejs/vitepress/blob/3eb4374af286362d7f4257b288fd2d5b9173dcba/src/client/theme-default/styles/vars.css#L177\r\n\r\nIncorrectly output as:\r\n```\r\n --vp-c-text-1: rgba(60, 60, 67);\r\n```\n\n### Reproduction\n\nThis can be found easily from the npm repo: https://www.npmjs.com/package/vitepress?activeTab=code\r\n\r\nThen go to `dist/client/theme-default/styles/vars.css`, line 177.\n\n### Expected behavior\n\nShould be\r\n```\r\n --vp-c-text-1: rgba(60, 60, 67, 1);\r\n```\n\n### System Info\n\n```Text\nNot relevant\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.",[2948],{"name":2949,"color":2950},"bug: pending triage","e99695",4439,"Variable \"--vp-c-text-1\" is incorrect in the bundle ouput","2024-12-29T04:43:46Z","https://github.com/vuejs/vitepress/issues/4439",0.6538506,{"description":2957,"labels":2958,"number":2962,"owner":2871,"repository":2872,"state":2940,"title":2963,"updated_at":2964,"url":2965,"score":2966},"Hello VitePress Team,\r\n\r\nI am encountering two issues with my VitePress project and seeking guidance.\r\n\r\n1. **Sidebar Title Formatting Not Effective**: \r\n I have been trying to customize the sidebar title formatting in my VitePress site, but it seems not to be working as expected. Despite using the recommended plugins, including `toc`, the sidebar either doesn't reflect the specified title formats or disappears completely. Attached is a screenshot of my current interface for reference:\r\n \r\n\r\n Here is the code snippet I am using (I've ensured all necessary libraries are installed):\r\n \r\n\r\n Could you please clarify if there's anything I am missing or doing incorrectly? Any guidance on how to properly format the sidebar titles would be greatly appreciated.\r\n\r\n2. **Navigation Placement on the Left**:\r\n I am trying to achieve a layout similar to VuePress where the navigation is on the left side. Although I have disabled the sidebar and set `aside: \"left\"`, the final layout seems to have excessive white space on the left. How should I configure it to get the desired layout? Here is a screenshot showing the current layout:\r\n \r\n\r\nThank you for your assistance. Looking forward to your suggestions and solutions.\r\n",[2959],{"name":2960,"color":2961},"question","5D5FAE",3422,"侧边栏配置","2024-01-16T00:04:37Z","https://github.com/vuejs/vitepress/issues/3422",0.702227,{"description":2968,"labels":2969,"number":2971,"owner":2871,"repository":2872,"state":2940,"title":2972,"updated_at":2973,"url":2974,"score":2975},"### Describe the bug\n\n文章目录不显示一级标题\n\n### Reproduction\n\n```mts\r\nimport {withMermaid} from \"vitepress-plugin-mermaid\";\r\n// https://emersonbottero.github.io/vitepress-plugin-mermaid/guide/getting-started.html\r\n// https://vitepress.dev/reference/site-config\r\nimport {generateSidebar} from 'vitepress-sidebar';\r\n\r\nexport default withMermaid({\r\n title: \"DMP-Docs\",\r\n description: \"DMP-Docs\",\r\n themeConfig: {\r\n // https://vitepress.dev/reference/default-theme-config\r\n nav: [\r\n {text: 'Home', link: '/'},\r\n ],\r\n\r\n search: {\r\n provider: 'local'\r\n },\r\n sidebar: generateSidebar({\r\n documentRootPath: '/docs',\r\n }),\r\n socialLinks: [\r\n {icon: 'github', link: 'http://10.186.18.21/dmp-dev-newbie/caomingkang/DMP-DOC'}\r\n ],\r\n\r\n outline: 'deep'\r\n },\r\n // optionally, you can pass MermaidConfig\r\n mermaid: {\r\n // refer https://mermaid.js.org/config/setup/modules/mermaidAPI.html#mermaidapi-configuration-defaults for options\r\n },\r\n // optionally set additional config for plugin itself with MermaidPluginConfig\r\n mermaidPlugin: {\r\n class: \"mermaid my-class\", // set additional css classes for parent container\r\n },\r\n\r\n})\r\n\r\n\r\n\r\n\r\n\r\n\r\n```\n\n### Expected behavior\n\n显示一级目录导航\n\n### System Info\n\n```Text\nmacos 13\r\n \"vitepress\": \"^1.0.0-rc.29\",\n```\n\n\n### Additional context\n\n\u003Cimg width=\"1159\" alt=\"Xnip2023-11-22_18-52-26\" src=\"https://github.com/vuejs/vitepress/assets/55651847/e1924277-32d5-45bb-a609-763b0e672075\">\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.",[2970],{"name":2949,"color":2950},3234,"文章目录不显示一级标题","2023-12-01T00:05:07Z","https://github.com/vuejs/vitepress/issues/3234",0.7051169,["Reactive",2977],{},["Set"],["ShallowReactive",2980],{"$fTRc1wZytZ_XrK4EfJfei_Sz-An4H4Yy6syhVxH_PVJc":-1,"$foPp-cBX8ztJW8_MXGMi9CV5iumfe30sDZw0J6FaFfDE":-1},"/vuejs/vitepress/4215"]