\u003C/svg>'\r\n }, link: 'https://gitlab.com/'}, title: 'my title link'\r\n ],\r\n```\r\n\r\nSee: typescript triggers \"cannot find name title\"\n\n### Expected behavior\n\n- ability to configure custom title element for each custom social link\r\n- default title for already available social networks\n\n### System Info\n\n```shell\nSystem:\r\n OS: Linux 5.10 Ubuntu 22.04.2 LTS 22.04.2 LTS (Jammy Jellyfish)\r\n CPU: (8) x64 Intel(R) Core(TM) i5-10210U CPU @ 1.60GHz\r\n Memory: 11.38 GB / 12.31 GB\r\n Container: Yes\r\n Shell: 5.1.16 - /bin/bash\r\n Binaries:\r\n Node: 16.15.1 - ~/.nvm/versions/node/v16.15.1/bin/node\r\n Yarn: 1.22.19 - ~/.nvm/versions/node/v16.15.1/bin/yarn\r\n npm: 8.19.2 - ~/.nvm/versions/node/v16.15.1/bin/npm\r\n npmPackages:\r\n vitepress: ^1.0.0-alpha.49 => 1.0.0-alpha.49\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.dev).\n- [X] Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.",[3058],{"name":3059,"color":3060},"bug: pending triage","e99695",2081,"closed","socialLinks items are not accessible","2023-03-21T00:03:57Z","https://github.com/vuejs/vitepress/issues/2081",0.7061257,{"description":3068,"labels":3069,"number":3071,"owner":3027,"repository":3028,"state":3062,"title":3072,"updated_at":3073,"url":3074,"score":3075},"### Describe the bug\n\n\u003Cimg width=\"559\" alt=\"image\" src=\"https://user-images.githubusercontent.com/50388827/231996524-3bb1a93b-8a74-492f-a6d3-ca1e9e880e01.png\">\r\n\u003Cimg width=\"469\" alt=\"image\" src=\"https://user-images.githubusercontent.com/50388827/231997075-305a330e-34d2-473b-a67f-f438580ff1d8.png\">\r\n\n\n### Reproduction\n\nhttps://www.npmjs.com/package/vitepress?activeTab=code\n\n### Expected behavior\n\nfix dependence-missing problem\n\n### System Info\n\n```shell\nSystem:\r\n OS: macOS 13.3.1\r\n CPU: (8) arm64 Apple M1 Pro\r\n Memory: 705.63 MB / 32.00 GB\r\n Shell: 3.2.57 - /bin/sh\r\n Binaries:\r\n Node: 18.14.2 - /usr/local/bin/node\r\n Yarn: 1.22.19 - /usr/local/bin/yarn\r\n npm: 9.5.0 - /usr/local/bin/npm\r\n Browsers:\r\n Safari: 16.4\r\n npmPackages:\r\n vitepress: ^1.0.0-alpha.65 => 1.0.0-alpha.65\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.dev).\n- [X] Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.",[3070],{"name":3059,"color":3060},2215,"npm pkg has no `localSearch` option & dependence `minisearch ` about localSearch","2023-04-22T00:04:16Z","https://github.com/vuejs/vitepress/issues/2215",0.7072645,{"description":3077,"labels":3078,"number":3079,"owner":3027,"repository":3028,"state":3062,"title":3080,"updated_at":3081,"url":3082,"score":3083},"### Describe the bug\n\nUse custom component with slot, When preview the build files, Got an error \"Hydration completed but contains mismatches.\" and the page content is distorted.\n\n### Reproduction\n\nDemo: [https://stackblitz.com/edit/vite-7ctcqz?file=docs/.vitepress/theme/index.js](https://stackblitz.com/edit/vite-7ctcqz?file=docs/.vitepress/theme/index.js)\r\n\r\n**Steps**\r\n\r\n- Build project\r\n- Run `npm run docs:preview`\r\n- Visit the page and click \"Get Start\" button redirect to the example page.\r\n- Refresh the example page\r\n\r\nNow I got an error \"Hydration completed but contains mismatches.\" and the page content is distorted.\n\n### Expected behavior\n\nNo errors.\n\n### System Info\n\n```shell\nSystem:\r\n OS: Windows 10 10.0.22621\r\n CPU: (20) x64 12th Gen Intel(R) Core(TM) i9-12900H\r\n Memory: 13.25 GB / 31.73 GB\r\n Binaries:\r\n Node: 18.16.0 - D:\\Program\\NodeJs\\node.EXE\r\n npm: 9.6.5 - D:\\Program\\NodeJs\\npm.CMD\r\n Browsers:\r\n Edge: Spartan (44.22621.1555.0), Chromium (112.0.1722.58)\r\n Internet Explorer: 11.0.22621.1\r\n npmPackages:\r\n vitepress: ^1.0.0-alpha.73 => 1.0.0-alpha.73\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.dev).\n- [X] Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.",[],2284,"Use custom component with slot, When preview the build files, Got an error \"Hydration completed but contains mismatches.\"","2023-06-08T00:04:09Z","https://github.com/vuejs/vitepress/issues/2284",0.718441,{"description":3085,"labels":3086,"number":3088,"owner":3027,"repository":3028,"state":3062,"title":3089,"updated_at":3090,"url":3091,"score":3092},"### Describe the bug\r\n\r\nIf docs contain a custom element (web component), the `npm run docs:build` command throws error:\r\n\r\n```sh\r\n> test-docs@1.0.0 docs:build\r\n> vitepress build docs\r\n\r\n vitepress v1.0.0-alpha.75\r\n\r\n✓ building client + server bundles...\r\n✖ rendering pages...\r\nbuild error:\r\nReferenceError: customElements is not defined\r\n at T (file:///C:/test/test-docs/docs/.vitepress/.temp/app.js:4297:3)\r\n at Object.enhanceApp (file:///C:/test/test-docs/docs/.vitepress/.temp/app.js:4307:5)\r\n at createApp (file:///C:/test/test-docs/docs/.vitepress/.temp/app.js:4576:17)\r\n at render (file:///C:/test/test-docs/docs/.vitepress/.temp/app.js:4616:33)\r\n at renderPage (file:///C:/test/test-docs/node_modules/vitepress/dist/node/serve-998e6cdd.js:41231:25)\r\n at file:///C:/test/test-docs/node_modules/vitepress/dist/node/serve-998e6cdd.js:41768:21\r\n at Array.map (\u003Canonymous>)\r\n at build (file:///C:/test/test-docs/node_modules/vitepress/dist/node/serve-998e6cdd.js:41767:94)\r\n```\r\n\r\n### Reproduction\r\n\r\n1. Create a custom element `TestComponent.ce.vue` with Vue 3.2 `defineCustomElement` function.\r\n2. Define the component in its `index.js` file\r\n\r\n```\r\nimport { defineCustomElement } from \"vue\";\r\nimport TestComponent from './TestComponent.ce.vue'\r\n\r\nconst TestComponentCE = defineCustomElement(TestComponent)\r\n\r\nexport function defineTestComponentCE() {\r\n if (!customElements.get('test-component')) {\r\n customElements.define('test-component', TestComponentCE);\r\n }\r\n}\r\n\r\nexport { TestComponentCE }\r\n```\r\n\r\n3. Use the custom element on a Vitepress page\r\n\r\n`docs/.vitepress/theme/index.ts`\r\n```js\r\n// https://vitepress.dev/guide/custom-theme\r\nimport { h } from 'vue'\r\nimport Theme from 'vitepress/theme'\r\nimport './style.css'x\r\nimport {defineTestComponentCE} from 'test-ui';\r\n\r\nexport default {\r\n ...Theme,\r\n Layout: () => {\r\n return h(Theme.Layout, null, {\r\n // https://vitepress.dev/guide/extending-default-theme#layout-slots\r\n })\r\n },\r\n enhanceApp({ app, router, siteData }) {\r\n defineTestComponentCE()\r\n }\r\n}\r\n```\r\n\r\n`some md page`\r\n```\r\n\u003Ctest-component>\u003C/test-component>\r\n```\r\n\r\n### Expected behavior\r\n\r\nCustom elements to work in Vitepress\r\n\r\n### System Info\r\n\r\n```sh\r\nSystem:\r\n OS: Windows 10 10.0.22621\r\n Binaries:\r\n Node: 18.12.1 - C:\\Program Files\\nodejs\\node.EXE\r\n npm: 8.19.2 - C:\\Program Files\\nodejs\\npm.CMD\r\n Browsers:\r\n Edge: Spartan (44.22621.1702.0), Chromium (113.0.1774.35)\r\n Internet Explorer: 11.0.22621.1\r\n npmPackages:\r\n vitepress: ^1.0.0-alpha.75 => 1.0.0-alpha.75\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.",[3087],{"name":3059,"color":3060},2367,"Vitepress cannot build custom elements (web components)","2023-06-14T00:04:15Z","https://github.com/vuejs/vitepress/issues/2367",0.7215436,{"description":3094,"labels":3095,"number":3096,"owner":3027,"repository":3028,"state":3062,"title":3097,"updated_at":3098,"url":3099,"score":3100},"### Is your feature request related to a problem? Please describe.\n\n按照官网步骤执行:\r\nmkdir vitepress-starter && cd vitepress-starter\r\nnpm init\r\nyarn add -D vitepress vue\r\nmkdir docs && echo '# Hello VitePress' > docs/index.md\r\n\r\n然后配置\r\n{\r\n \"scripts\": {\r\n \"docs:dev\": \"vitepress dev docs\",\r\n \"docs:build\": \"vitepress build docs\",\r\n \"docs:preview\": \"vitepress preview docs\"\r\n },\r\n}\r\n执行\r\nnpm run docs:dev\r\n\r\n报错\r\n\r\n\r\n\n\n### Describe the solution you'd like\n\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.",[],1945,"按照官网例子安装项目启动报错","2023-03-07T00:04:56Z","https://github.com/vuejs/vitepress/issues/1945",0.72223806,{"description":3102,"labels":3103,"number":3105,"owner":3027,"repository":3028,"state":3062,"title":3106,"updated_at":3107,"url":3108,"score":3109},"### Describe the bug\r\n\r\nI'm currently having one markdown file (`index.md`) within the project root itself (`docs` folder) and uses only one Vue SFC called `SampleCard.vue`. I'm using a custom theme. This works fine. \r\n\r\nBut I want to move my markdown file into `docs/content` folder, so I copied my md files into that folder. \r\n\r\nI then tried setting `srcDir` to `content` following the docs - https://vitepress.dev/guide/routing#source-directory. This doesn't work and the error message I get seems to indicate that my vite aliases gets broken when I use srcDir. \r\n\r\nThanks for looking into this. \r\n\r\n### Reproduction\r\n\r\nHere is my minimal github repo (one `index.md` page using one `SampleCard.vue`) - https://github.com/TechAkayy/my-vitepress-tailwindcss-app\r\n\r\nPlease clone, install, `npm run dev`, works fine. \r\n\r\nThen uncomment the `srcDir` settings in `config.ts`, and save. It gets broken. I tried paths relative to both project root, as well as relative to the `docs` folder. \r\n\r\n\u003Cimg width=\"1106\" alt=\"image\" src=\"https://github.com/vuejs/vitepress/assets/73772701/30fa51cb-8ca4-4720-bd37-624eae000b76\">\r\n\r\nError when using `srcDir`:\r\n\r\n\r\n\r\n### Expected behavior\r\n\r\nsrcDir should work when moving the md files into a folder. But it didn't. \r\n\r\n### System Info\r\n\r\n```sh\r\nSystem:\r\n OS: macOS 12.6.1\r\n CPU: (10) arm64 Apple M1 Pro\r\n Memory: 1.31 GB / 32.00 GB\r\n Shell: 5.8.1 - /bin/zsh\r\n Binaries:\r\n Node: 18.12.1 - ~/.nvm/versions/node/v18.12.1/bin/node\r\n Yarn: 1.22.19 - ~/.nvm/versions/node/v18.12.1/bin/yarn\r\n npm: 8.19.2 - ~/.nvm/versions/node/v18.12.1/bin/npm\r\n Browsers:\r\n Chrome: 115.0.5790.170\r\n Chrome Canary: 118.0.5953.0\r\n Safari: 15.6.1\r\n npmPackages:\r\n vitepress: ^1.0.0-rc.31 => 1.0.0-rc.31\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.",[3104],{"name":3024,"color":3025},2806,"srcDir not working","2024-02-08T00:04:15Z","https://github.com/vuejs/vitepress/issues/2806",0.722522,{"description":3111,"labels":3112,"number":3113,"owner":3027,"repository":3028,"state":3062,"title":3114,"updated_at":3115,"url":3116,"score":3117},"### Is your feature request related to a problem? Please describe.\n\ni am using component library in VitePress project, i want to change dark mode of component library when mode of VitePress have changed\n\n### Describe the solution you'd like\n\nCan you provide a `onChange` callback of mode button\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.",[],2387,"callback of theme change ?","2023-05-27T00:03:44Z","https://github.com/vuejs/vitepress/issues/2387",0.72511566,["Reactive",3119],{},["Set"],["ShallowReactive",3122],{"$fTRc1wZytZ_XrK4EfJfei_Sz-An4H4Yy6syhVxH_PVJc":-1,"$fW_Qau1l9g-lFGJLLQOR-m3ycf-BoBrWACufpsseoPVo":-1},"/vuejs/vitepress/3788"]