\n\n\u003Cimg width=\"308\" alt=\"Image\" src=\"https://github.com/user-attachments/assets/0e1beb6b-d06b-436c-b106-c924fead87ab\" />\n\n\u003Cimg width=\"931\" alt=\"Image\" src=\"https://github.com/user-attachments/assets/aef6f71a-fa28-4b7c-b512-e6386e18159a\" />\n\n### Describe the solution you'd like\n\nIn my [pull request](https://github.com/vuejs/vitepress/pull/4630), I've introduced custom components that can be overridden in the `enhanceApp` function. In these custom components, I can add custom logic for rendering text, such as using the Vue compile function. \n\nAdditionally, I added a flag to skip the title update, allowing for custom logic implementation. \n\nPlease also see my PR: [https://github.com/vuejs/vitepress/pull/4630](https://github.com/vuejs/vitepress/pull/4630).\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.",[],4637,"Sidenav Components / Skip title update","2025-03-20T12:17:14Z","https://github.com/vuejs/vitepress/issues/4637",0.72427136,{"description":2907,"labels":2908,"number":2910,"owner":2869,"repository":2870,"state":2871,"title":2911,"updated_at":2912,"url":2913,"score":2914},"### Is your feature request related to a problem? Please describe.\n\nNo\n\n### Describe the solution you'd like\n\nIt's better if we can configure the author field for every doc layout by frontmatter, like this:\r\n\r\n\r\n\r\nIt's implemented by custom component and I think that it is necessary to add to the official components.\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.",[2909],{"name":2866,"color":2867},3848,"Support author zoom in doc layout","2024-06-09T06:01:00Z","https://github.com/vuejs/vitepress/issues/3848",0.7320738,{"description":2916,"labels":2917,"number":377,"owner":2869,"repository":2870,"state":2919,"title":2920,"updated_at":2921,"url":2922,"score":2923},"### Is your feature request related to a problem? Please describe.\n\nCurrently sidebar depth can be specified per page in the frontmatter section. It would be convenient to set a global default sidebar depth in themeConfig. In situations where pages are auto-generated, adding the frontmatter block may not be so easy. \n\n### Describe the solution you'd like\n\nAdd support for `sidebarDepth` in `themeConfig`.\r\n\r\nSidebar depth specified in the frontmatter block should take priority over what's defined in `themeConfig`. If `sidebarDepth` is not defined, either in the page or in `themeConfig`, `Infinity` should be used to avoid breaking changes.\r\n\n\n### Describe alternatives you've considered\n\nThe default theme in vuepress supports setting sidebarDepth in sidebar groups as well, which could be nice, but I guess the most important is to have a global default available.\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] Read the [Contributing Guidelines](https://github.com/vuejs/vitepress/blob/master/.github/contributing.md).\n- [X] Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.",[2918],{"name":2880,"color":2881},"closed","Support setting sidebar depth in themeConfig for default theme","2023-01-21T14:32:50Z","https://github.com/vuejs/vitepress/issues/482",0.7020774,{"description":2925,"labels":2926,"number":2928,"owner":2869,"repository":2870,"state":2919,"title":2929,"updated_at":2930,"url":2931,"score":2932},"### Is your feature request related to a problem? Please describe.\n\nI've made a custom `Footer` component, but it doesn't show up very well with a sidebar.\r\nI see a sidebar conditional judgment in the 'VPFooter' component of the default theme.\r\n\r\n\n\n### Describe the solution you'd like\n\nIt would be nice to open it up.\r\n\r\n```\r\nimport { useSidebar } from 'vitepress'\r\n\r\nconst { hasSidebar } = useSidebar()\r\n```\r\n\r\n\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.vuejs.org).\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.",[2927],{"name":2880,"color":2881},1176,"Provide useSidebar from vitepress","2023-06-29T00:04:28Z","https://github.com/vuejs/vitepress/issues/1176",0.70487887,{"description":2934,"labels":2935,"number":2937,"owner":2869,"repository":2870,"state":2919,"title":2938,"updated_at":2939,"url":2940,"score":2941},"### Is your feature request related to a problem? Please describe.\n\nCurrently it is only possible to customize the text of the links, but not the link itself, this is taken from the sidebar. However, if a page does not exist in the sidebar, no prev / next link can be set or modified.\r\n\r\nThe current behavior causes the vitepress application to crash if the page is not in the sidebar and you set a prev link via frontmatter, because there is no prev link whose text you can change. As next link always the first page of the sidebar is used.\r\n\r\nI think it would be good if you could customize not only the text but also the link.\r\n\r\n\r\n\n\n### Describe the solution you'd like\n\nChange the frontmatter options from \r\n\r\n```yml\r\n---\r\nprev: 'Get Started | Markdown'\r\n---\r\n```\r\n\r\nto\r\n\r\n```yml\r\n---\r\nprev:\r\n text: 'Get Started | Markdown'\r\n link: '/gettingstarted/markdown'\r\n---\r\n```\r\n\n\n### Describe alternatives you've considered\n\n_No response_\n\n### Additional context\n\n```yml\r\n// prev-next.d.ts\r\n prev: {\r\n text: any;\r\n link: string;\r\n };\r\n next: {\r\n text: any;\r\n link: string;\r\n };\r\n```\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] 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.",[2936],{"name":2880,"color":2881},1914,"Make prev / next links changeable","2023-03-05T00:04:54Z","https://github.com/vuejs/vitepress/issues/1914",0.715693,{"description":2943,"labels":2944,"number":2948,"owner":2869,"repository":2870,"state":2919,"title":2949,"updated_at":2950,"url":2951,"score":2952},"I'd like to only have a custom NavLinks component while keeping the default vitepress theme. Next I looked at the NavBar although also my version doesn't override. Any help in the right direction would be great.\r\n\r\ndocs/.vitepress/config.js\r\n\r\n```\r\nimport Theme from 'vitepress/theme'\r\nimport '../../assets/vars.css'\r\nimport NavBar from './Mynav.vue'\r\n\r\nconst MyTheme = {...Theme, Layout: {...Theme.Layout, NavBar}}\r\n\r\nexport default {\r\n ...MyTheme,\r\n NotFound: () => 'custom 404',\r\n enhanceApp({app, router, siteData}) {\r\n\r\n },\r\n}\r\n```\r\n ",[2945],{"name":2946,"color":2947},"docs","0075ca",235,"Extending the vitepress theme","2023-03-18T00:04:16Z","https://github.com/vuejs/vitepress/issues/235",0.71867335,{"description":2954,"labels":2955,"number":2956,"owner":2869,"repository":2870,"state":2919,"title":2957,"updated_at":2958,"url":2959,"score":2960},"Attempting to do a very basic VitePress site and the build looks different then dev. For some reason the build is duplicating the sidebar and page navigation sections.\r\n\r\n`yarn docs:dev`\r\n\r\n\r\n\r\n `yarn docs:build` and `yarn docs:serve`\r\n\r\n\r\n\r\n\r\n**To Reproduce**\r\nFollow the steps listed here: https://vitepress.vuejs.org/guide/getting-started.html then add a basic sidebar to `docs/.vitpress/config.js` like this.\r\n\r\n```\r\nmodule.exports = {\r\n themeConfig: {\r\n sidebar: {\r\n '/': [\r\n {\r\n text: 'Introduction',\r\n children: [\r\n { text: 'Introduction', link: '/' },\r\n { text: 'Getting Started', link: '/guide/' },\r\n ]\r\n }\r\n ]\r\n }\r\n }\r\n}\r\n```\r\n\r\n**Expected behavior**\r\nWould expect `yarn docs:dev` to look the same as `yarn docs:build` and `yarn docs:serve`.\r\n\r\n**System Info**\r\n- vitepress version: v0.9.1\r\n- vite version: v1.0.0-rc.13\r\n- Node version: v12.18.2\r\n- OS version: Pop!_OS 20.10\r\n",[],177,"Duplicate sidebar in build not dev","2023-01-21T16:24:06Z","https://github.com/vuejs/vitepress/issues/177",0.72101015,["Reactive",2962],{},["Set"],["ShallowReactive",2965],{"$fTRc1wZytZ_XrK4EfJfei_Sz-An4H4Yy6syhVxH_PVJc":-1,"$fE9Wuf0Z4vvI2U2OTqBaE6wT5NwZh3EMiLsAqgwRjy_Y":-1},"/vuejs/vitepress/2888"]