\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.77562326,{"description":2909,"labels":2910,"number":2911,"owner":2872,"repository":2873,"state":2912,"title":2913,"updated_at":2914,"url":2915,"score":2916},"**Is your feature request related to a problem? Please describe.**\r\nI read the documentation and source code and found that there is no way to monitor routing. I think this is necessary.\r\nIn vue2.x,I can achieve this function using the following code:\r\n```js\r\nwatch: {\r\n $route(to,from){\r\n ....\r\n }\r\n}\r\n```\r\nI know, this is related to the characteristics of vue-router.\r\n\r\n**Describe the solution you'd like**\r\nCan you provide a method for routing monitoring? This will be used in many scenarios. \r\n\r\n**Describe alternatives you've considered**\r\nI try to use `window.onhashchange`, but this does not meet my needs,I want to monitor the changes of the entire router context,similar to vue-router.\r\n",[],82,"closed","Can you provide a method of monitor to routing change ","2023-01-21T16:25:32Z","https://github.com/vuejs/vitepress/issues/82",0.6625248,{"description":2918,"labels":2919,"number":2920,"owner":2872,"repository":2873,"state":2912,"title":2921,"updated_at":2922,"url":2923,"score":2924},"Add before/after router hooks so that can be added via `enhanceApp()`, to allow for code to be executed when new pages are routed to\r\n\r\nMy specific use-case is to be able to fire Google Analytics tracking events after a new page is routed to, but there could be any number of cases where it might be useful to have these basic before/after router hooks, e.g.:\r\n\r\n```js\r\n enhanceApp: (ctx) => {\r\n ctx.router.hooks.after = (route) => { console.log(\"after!\")};\r\n }\r\n```\r\n\r\nImplemented via pull request: https://github.com/vuejs/vitepress/pull/317",[],318,"[FR] Add before/after router hooks","2023-01-21T16:22:09Z","https://github.com/vuejs/vitepress/issues/318",0.69327575,{"description":2926,"labels":2927,"number":2928,"owner":2872,"repository":2873,"state":2912,"title":2929,"updated_at":2930,"url":2931,"score":2932},"### Describe the bug\n\n\r\n\r\nI'm trying to change page route with the following code:\r\n\r\n```ts\r\nimport { useRouter } from 'vitepress'\r\nimport { onMounted } from 'vue'\r\n\r\nlet router = useRouter()\r\n\r\nonMounted(() => {\r\n router.go('/hello.html')\r\n})\r\n```\r\n\r\nThe link in the address bar of the browser changes, but the content remains the same. How can I fix it?\r\n\r\nYou can check this problem in my repo: https://github.com/azat-io/vitepress-router-example\n\n### Reproduction\n\n1. Clone this repo: https://github.com/azat-io/vitepress-router-example\r\n2. Open `http://localhost:3000`\r\n3. The link in the browser will change to `http://localhost:3000/hello.html`, but the content will be displayed for the root page\r\n4. Refresh the page to display the correct content\n\n### Expected behavior\n\nPage content should change after redirect\n\n### System Info\n\n```shell\nSystem:\r\n OS: macOS 12.3.1\r\n CPU: (4) x64 Intel(R) Core(TM) i5-5257U CPU @ 2.70GHz\r\n Memory: 42.39 MB / 16.00 GB\r\n Shell: 5.8 - /bin/zsh\r\n Binaries:\r\n Node: 17.2.0 - ~/.asdf/installs/nodejs/17.2.0/bin/node\r\n Yarn: 1.22.10 - /usr/local/bin/yarn\r\n npm: 8.1.4 - ~/.asdf/plugins/nodejs/shims/npm\r\n Browsers:\r\n Chrome: 102.0.5005.115\r\n Firefox: 100.0\r\n Safari: 15.4\r\n npmPackages:\r\n vitepress: 1.0.0-alpha.2 => 1.0.0-alpha.2\r\n```\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.",[],813,"How to programmatically change page route?","2023-01-21T14:34:02Z","https://github.com/vuejs/vitepress/issues/813",0.72390115,{"description":2934,"labels":2935,"number":2939,"owner":2872,"repository":2873,"state":2912,"title":2940,"updated_at":2941,"url":2942,"score":2943},"### Is your feature request related to a problem? Please describe.\n\nlike Vue Router:\r\n```js\r\nrouter.beforeEach((to, from) => {\r\n // ...\r\n // explicitly return false to cancel the navigation\r\n return false\r\n})\r\n```\n\n### Describe the solution you'd like\n\nNone\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.",[2936],{"name":2937,"color":2938},"need more info","bdbefc",566,"add router Global Before Guards","2023-01-21T14:35:46Z","https://github.com/vuejs/vitepress/issues/566",0.75294256,{"description":2945,"labels":2946,"number":2948,"owner":2872,"repository":2873,"state":2912,"title":2949,"updated_at":2950,"url":2951,"score":2952},"### Describe the bug\n\n\u003Cimg width=\"638\" alt=\"image\" src=\"https://github.com/vuejs/vitepress/assets/111564053/b28f2112-61c4-46cd-b581-051e76589d3d\">\r\n\r\nAfter updating to the latest version of vitepress, I found that my custom font was overridden. I have specified the font as `LXGW WenKai`, but it is overridden by the higher-level selector `:root:lang(zh)`\n\n### Reproduction\n\n```css\r\n@import url(\"https://cdn.jsdelivr.net/gh/CMBill/lxgw-wenkai-web/style.css\");\r\n\r\n:root {\r\n --vp-font-family-base: \"LXGW WenKai\";\r\n --vp-font-family-mono: \"LXGW WenKai Mono\", monospace;\r\n}\r\n```\r\n\r\nThe above is the code of my `font.css`.\r\n\r\n```typescript\r\nimport DefaultTheme from \"vitepress/theme-without-fonts\";\r\nimport \"./fonts.css\";\r\nimport \"./custom.css\";\r\n\r\nexport default {\r\n extends: DefaultTheme,\r\n}\r\n```\r\n\r\nThis is how I use it\n\n### Expected behavior\n\nDisplay the correct font and modify the document to provide the latest practices.\n\n### System Info\n\n```Text\nSystem:\r\n OS: macOS 14.1\r\n CPU: (8) arm64 Apple M1\r\n Memory: 207.77 MB / 8.00 GB\r\n Shell: 5.9 - /bin/zsh\r\n Binaries:\r\n Node: 21.7.3 - /opt/homebrew/bin/node\r\n Yarn: 1.22.22 - /opt/homebrew/bin/yarn\r\n npm: 10.5.0 - /opt/homebrew/bin/npm\r\n pnpm: 9.0.6 - ~/Library/pnpm/pnpm\r\n bun: 1.0.18 - ~/.bun/bin/bun\r\n Watchman: 2024.04.15.00 - /opt/homebrew/bin/watchman\r\n Browsers:\r\n Safari: 17.1\r\n npmPackages:\r\n vitepress: latest => 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.",[2947],{"name":2866,"color":2867},3864,"Custom Chinese font is overridden","2024-05-12T04:42:50Z","https://github.com/vuejs/vitepress/issues/3864",0.76497185,{"description":2954,"labels":2955,"number":2957,"owner":2872,"repository":2873,"state":2912,"title":2958,"updated_at":2959,"url":2960,"score":2961},"### Describe the bug\r\n\r\nhttps://github.com/vanchKong/vitepress/tree/doc-zh\r\n\r\ntemporary modify `docs/locals/en.ts` & `docs/locals/zh.ts` > `themeConfig.search` to\r\n```ts\r\nsearch: {\r\n provider: 'local'\r\n},\r\n```\r\nrun `vitepress dev docs`, `search` can't work successfully\r\n\r\n### Reproduction\r\n\r\nhttps://github.com/vanchKong/vitepress/tree/doc-zh\r\n\r\n\r\n### Expected behavior\r\n\r\n- configure `locals > themeConfig.search` , and it could work\r\n- In addition, `markdown.container` should be supported in multi-language configurations\r\n\r\n\r\n### System Info\r\n\r\n```Text\r\nSystem:\r\n OS: macOS 13.5.2\r\n CPU: (8) arm64 Apple M1 Pro\r\n Memory: 485.97 MB / 32.00 GB\r\n Shell: 5.9 - /bin/zsh\r\n Binaries:\r\n Node: 20.8.1 - /usr/local/bin/node\r\n Yarn: 1.22.19 - /usr/local/bin/yarn\r\n npm: 10.1.0 - /usr/local/bin/npm\r\n pnpm: 8.2.0 - /usr/local/bin/pnpm\r\n Browsers:\r\n Safari: 16.6\r\n vitepress: 1.0.0-rc.24\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.",[2956],{"name":2869,"color":2870},3141,"configure `locals > themeConfig.search` , it can't work","2024-05-11T04:41:56Z","https://github.com/vuejs/vitepress/issues/3141",0.7653522,["Reactive",2963],{},["Set"],["ShallowReactive",2966],{"$fTRc1wZytZ_XrK4EfJfei_Sz-An4H4Yy6syhVxH_PVJc":-1,"$fKKhM0MGJ1y-or3Vi-_QxzcD7zMhPNSOkEp55CiD-v-I":-1},"/vuejs/vitepress/302"]