\r\n````\n\n### Describe the solution you'd like\n\nExport `VPImage` as global `Image` component, see e.g. commit https://github.com/kleisauke/vitepress/commit/f1b6a57409f7752fc2142545340afc589cf091ff.\n\n### Describe alternatives you've considered\n\nI considered to use this:\r\n```html\r\n\u003Cpicture>\r\n \u003Csource srcset=\"/logo-dark.svg\" media=\"(prefers-color-scheme: dark)\" />\r\n \u003Cimg src=\"/logo.svg\" alt=\"Logo\" />\r\n\u003C/picture>\r\n```\r\n\r\nHowever, this approach wouldn't work if a user manually switches to dark mode.\n\n### Additional context\n\nI could open a PR for commit https://github.com/kleisauke/vitepress/commit/f1b6a57409f7752fc2142545340afc589cf091ff, if appropriate.\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.",[2923,2924],{"name":2880,"color":2881},{"name":2925,"color":2926},"contribution welcome","11E4B8",2813,"Export `VPImage` as global component","2023-08-26T00:04:05Z","https://github.com/vuejs/vitepress/issues/2813",0.72971314,{"description":2933,"labels":2934,"number":2935,"owner":2869,"repository":2870,"state":2871,"title":2936,"updated_at":2937,"url":2938,"score":2939},"### Is your feature request related to a problem? Please describe.\n\nHello, I have a suggestion,\r\nAdd a column in the countdown to the end of the day to show the monthly salary,\r\nIs it one day off or two days off on the weekend.\r\n\r\n\n\n### Describe the solution you'd like\n\nsuggestion\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.",[],2521,"suggestion","2023-06-27T00:04:30Z","https://github.com/vuejs/vitepress/issues/2521",0.7325698,{"description":2941,"labels":2942,"number":2945,"owner":2869,"repository":2870,"state":2871,"title":2946,"updated_at":2947,"url":2948,"score":2949},"### Describe the bug\n\n## 效果图如下\r\n### 侧边栏选中第一个条目时,activeMatch正常显示于展开菜单以及导航栏\r\n\r\n### 选中第二个及以后的条目时,activeMatch正常显示于展开菜单,但是不显示于导航栏\r\n\r\n\r\n\n\n### Reproduction\n\n## 个人测试\r\n经过测试,此现象与ASCII字符无关,使用`/test/index.md`和`/test/test.md`也会出现此现象\r\n## 源代码\r\n### nav\r\n```ts\r\n{\r\n\r\n text: '关于',\r\n\r\n items: [\r\n\r\n {\r\n\r\n text: '更新日志',\r\n\r\n link: '/更新日志/',\r\n\r\n activeMatch: '/更新日志/'\r\n\r\n },\r\n\r\n {\r\n\r\n text: '关于本站',\r\n\r\n link: '/about'\r\n\r\n }\r\n\r\n ]\r\n\r\n }\r\n```\r\n### sidebar\r\n```ts\r\n'/更新日志/': [\r\n\r\n {\r\n\r\n text: '更新日志',\r\n\r\n items: [\r\n\r\n { text: '2024年8月', link: '/更新日志/' },\r\n\r\n { text: '2024年7月', link: '/更新日志/2024年7月' },\r\n\r\n { text: '2024年6月', link: '/更新日志/2024年6月' },\r\n\r\n { text: '2024年5月', link: '/更新日志/2024年5月' },\r\n\r\n ]\r\n\r\n }\r\n\r\n ],\r\n```\n\n### Expected behavior\n\n侧边栏选中任何条目时,activeMatch正常显示于展开菜单以及导航栏\n\n### System Info\n\n```Text\nSystem:\r\n OS: Windows 11 10.0.22631\r\n CPU: (20) x64 12th Gen Intel(R) Core(TM) i7-12700H\r\n Memory: 7.42 GB / 15.69 GB\r\n Binaries:\r\n Node: 22.6.0 - C:\\Program Files\\nodejs\\node.EXE\r\n npm: 10.8.2 - C:\\Program Files\\nodejs\\npm.CMD\r\n Browsers:\r\n Edge: Chromium (127.0.2651.74)\r\n Internet Explorer: 11.0.22621.3527\r\n npmPackages:\r\n vitepress: ^1.3.4 => 1.3.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.",[2943,2944],{"name":2866,"color":2867},{"name":2886,"color":2887},4163,"activeMatch只生效于展开菜单内","2025-02-28T19:49:46Z","https://github.com/vuejs/vitepress/issues/4163",0.73314273,{"description":2951,"labels":2952,"number":2953,"owner":2869,"repository":2870,"state":2871,"title":2954,"updated_at":2955,"url":2956,"score":2957},"### Is your feature request related to a problem? Please describe.\n\nI would like to create a vitepress site and store it on a cdn, but it will be served from a different location. For example, the files would live somewhere like `https://cdn.example.com/docs/0.1.2+myhash/`, but be served from `https://example.com/docs`. I would like to configure how the asset locations are generated such that all `link`, `script`, and css `url` references are scoped to `https://cdn.example.com/docs/0.1.2+myhash/`.\n\n### Describe the solution you'd like\n\nIt appears that `vite-plugin-ssr` has the ability to do what I'm suggesting via the `baseAssets` and cites putting assets on a cdn as a primary example: https://vite-plugin-ssr.com/base-url#baseassets. As far as I can tell, `vitepress` only allows you to configure the `base` parameter, which is close to but not exactly what I'm after.\n\n### Describe alternatives you've considered\n\nI've tried two solutions so far, but neither seem to cover the use case 100%:\r\n1. Try to use `vite-plugin-ssr` in my vitepress config. This ends up throwing warning in the build because it can't resolve a `@theme` alias referenced in vitepress (as well as my other custom aliases I've omitted), and it throws an error saying that \"Error: [vite-plugin-ssr][Wrong Usage] At least one page should be defined, see https://vite-plugin-ssr.com/add\"\r\n\r\n```javascript\r\nexport default defineConfig({\r\n title: 'Docs',\r\n description: 'Some docs description',\r\n base: '/docs/',\r\n srcDir: './src',\r\n outDir: './dist',\r\n vite: {\r\n plugins:[\r\n ssr({\r\n baseAssets: cdnPath,\r\n }),\r\n ],\r\n },\r\n});\r\n```\r\n\r\n2. Parse the built document via `transformHtml` and change the references after the fact. This is very close, but does not handle the css `url` references.\r\n\r\n```javascript\r\nexport default defineConfig({\r\n lang: 'en-US',\r\n title: 'Docs',\r\n description: 'Some docs description',\r\n base: '/docs/',\r\n transformHtml: (html) => {\r\n const dom = new JSDOM(html);\r\n const { head } = dom.window.document;\r\n\r\n Array.from(head.getElementsByTagName('link')).forEach((link) => {\r\n link.href = transformUrl(link.href);\r\n });\r\n\r\n Array.from(head.getElementsByTagName('script')).forEach((script) => {\r\n if (script.type === 'module') {\r\n script.src = transformUrl(script.src);\r\n }\r\n });\r\n\r\n return dom.serialize();\r\n },\r\n srcDir: './src',\r\n outDir: './dist',\r\n});\r\n```\r\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.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.",[],2919,"Support for baseAssets ssr config","2023-09-15T00:04:12Z","https://github.com/vuejs/vitepress/issues/2919",0.73810226,{"description":2959,"labels":2960,"number":2962,"owner":2869,"repository":2870,"state":2871,"title":2963,"updated_at":2964,"url":2965,"score":2966},"### Describe the bug\n\n\r\n\n\n### Reproduction\n\nN/A\n\n### Expected behavior\n\nN/A\n\n### System Info\n\n```shell\nN/A\n```\n\n\n### Additional context\n\nN/A\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.",[2961],{"name":2880,"color":2881},1714,"The content of the Badge component's text property is displayed in the outline header","2023-01-29T00:04:25Z","https://github.com/vuejs/vitepress/issues/1714",0.7447061,["Reactive",2968],{},["Set"],["ShallowReactive",2971],{"$fTRc1wZytZ_XrK4EfJfei_Sz-An4H4Yy6syhVxH_PVJc":-1,"$fHqWAKTtArNVQIi1sUjxAN27Du6DxCwJxMgGcbaou420":-1},"/vuejs/vitepress/2776"]