\u003C/template>\r\n \u003Ctemplate #nav-bar-title-after>\u003Cslot name=\"nav-bar-title-after\" />\u003C/template>\r\n \u003Ctemplate #nav-bar-content-before>\u003Cslot name=\"nav-bar-content-before\" />\u003C/template>\r\n \u003Ctemplate #nav-bar-content-after>\u003Cslot name=\"nav-bar-content-after\" />\u003C/template>\r\n \u003Ctemplate #nav-screen-content-before>\u003Cslot name=\"nav-screen-content-before\" />\u003C/template>\r\n \u003Ctemplate #nav-screen-content-after>\u003Cslot name=\"nav-screen-content-after\" />\u003C/template>\r\n\u003C/VPNav>\r\n\u003Cslot name=\"nav-bar-after\" />\r\n\u003CVPLocalNav :open=\"isSidebarOpen\" @open-menu=\"openSidebar\" />\r\n```\r\n\r\n### Describe alternatives you've considered\r\n\r\n在markdown文件中加入图片元素,在js中改变图片元素到id和class为VPContent的元素之前或内部的第一个子元素\r\n```\r\n---\r\nlayout: doc\r\ntitle: xxx\r\ncover: '/xxx.jpg'\r\n---\r\n\r\n\u003Cscript setup>\r\nimport { useData } from 'vitepress'\r\nimport { onMounted, onUnmounted } from 'vue'\r\nconst data = useData()\r\nlet vContentPaddingTop = ''\r\nonMounted(() => {\r\n const img = document.getElementById('cover')\r\n const vContent = document.getElementById('VPContent')\r\n vContentPaddingTop = vContent.style.paddingTop\r\n vContent.style.paddingTop = '0px'\r\n img.firstChild.setAttribute('src', data.frontmatter.value.cover)\r\n img.firstChild.style.objectFit = 'cover'\r\n img.firstChild.style.objectPosition = '50% 60%'\r\n img.style.display = 'block'\r\n vContent.insertBefore(img, vContent.firstChild)\r\n})\r\nonUnmounted(() => {\r\n const img = document.getElementById('cover')\r\n const vContent = document.getElementById('VPContent')\r\n vContent.style.paddingTop = vContentPaddingTop\r\n img.style.display = 'none'\r\n})\r\n\u003C/script>\r\n\r\n\u003Cdiv class=\"cover\" id=\"cover\">\u003Cimg :src=\"$frontmatter.cover\" />\u003C/div>\r\n```\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.",[2881,2884],{"name":2882,"color":2883},"theme","0754FB",{"name":2885,"color":2886},"stale","ededed",2706,"默认主题增加nav-bar-after的slot","2025-03-02T18:11:10Z","https://github.com/vuejs/vitepress/issues/2706",0.7790331,{"description":2893,"labels":2894,"number":2899,"owner":2871,"repository":2872,"state":2873,"title":2900,"updated_at":2901,"url":2902,"score":2903},"### Is your feature request related to a problem? Please describe.\n\nIs there any way to customize the 404 page title for the default theme, not like 404 | siteTitle ? \r\nI need this config to provide a more refined user experience. \r\nThanks~\n\n### Describe the solution you'd like\n\nAnd a config on ThemeConfig.notFound to change the title of 404 page\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.",[2895,2896],{"name":2885,"color":2886},{"name":2897,"color":2898},"client","1AA9E5",4105,"Need to customize 404 page title","2025-03-02T18:08:49Z","https://github.com/vuejs/vitepress/issues/4105",0.7797479,{"description":2905,"labels":2906,"number":2910,"owner":2871,"repository":2872,"state":2911,"title":2912,"updated_at":2913,"url":2914,"score":2915},"### Describe the bug\r\n\r\nWhen I go to my FAQ tab, for example, I have a series of articles in my sidebar. \r\nFor each of them the link to the next page is always the link to the first article.\r\n\r\n### Reproduction\r\n\r\nMy configuration is something like this\r\n```\r\n\"/en/faq/\": [\r\n {\r\n text: 'FAQ',\r\n items: [\r\n { text: 'foo text', link: './foo-link' },\r\n { text: 'bar text', link: './bar-link' },\r\n```\r\nIf I modify it to :\r\n\r\n```\r\n\"/en/faq/\": [\r\n {\r\n text: 'FAQ',\r\n items: [\r\n { text: 'foo text', link: '/en/faq/foo-link' },\r\n { text: 'bar text', link: '/en/faq/bar-link' },\r\n```\r\nIt works correctly but I think it's a bit of a pain to have to add the prefix to all links.\r\n\r\n### Expected behavior\r\n\r\nI would expect it to work correctly with:\r\n```\r\n\"/en/faq/\": [\r\n {\r\n text: 'FAQ',\r\n items: [\r\n { text: 'foo text', link: './foo-link' },\r\n { text: 'bar text', link: './bar-link' },\r\n```\r\n\r\n### System Info\r\n\r\n```Text\r\nSystem:\r\n OS: Linux 6.4 Fedora Linux 38 (Container Image)\r\n CPU: (12) x64 11th Gen Intel(R) Core(TM) i5-11400H @ 2.70GHz\r\n Memory: 8.57 GB / 15.25 GB\r\n Container: Yes\r\n Shell: 5.2.15 - /bin/bash\r\n Binaries:\r\n Node: 20.3.1 - ~/.nvm/versions/node/v20.3.1/bin/node\r\n npm: 9.6.7 - ~/.nvm/versions/node/v20.3.1/bin/npm\r\n npmPackages:\r\n vitepress: ^1.0.0-rc.10 => 1.0.0-rc.13 \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.",[2907],{"name":2908,"color":2909},"bug: pending triage","e99695",2961,"closed","Error in Previous page and Next page","2023-09-22T00:04:20Z","https://github.com/vuejs/vitepress/issues/2961",0.68709606,{"description":2917,"labels":2918,"number":2919,"owner":2871,"repository":2872,"state":2911,"title":2920,"updated_at":2921,"url":2922,"score":2923},"https://stackblitz.com/edit/vite-j4njvz?file=docs/.vitepress/config.ts",[],2246,"no active style on the rewrited sidebar item.","2023-04-25T00:04:07Z","https://github.com/vuejs/vitepress/issues/2246",0.7028774,{"description":2925,"labels":2926,"number":2928,"owner":2871,"repository":2872,"state":2911,"title":2929,"updated_at":2930,"url":2931,"score":2932},"### Is your feature request related to a problem? Please describe.\n\nThe home page looks quite good on a larger display. Once you switch to a documentation page, the conent feels a bit squeezed together. This is mostly due to paddings from the left and right sidebar and the content. Each \"padding\" considered alone is not very large. However, when added together, I think a lot of space is wasted here.\r\n\r\n\n\n### Describe the solution you'd like\n\nAdd a \"full width\" mode for desktop view, configureable via the theme settings (true/false). This should reduce the paddings and maximize the content width.\r\n\r\nNow :\r\n\u003Cimg width=\"1624\" alt=\"Screenshot1\" src=\"https://github.com/vuejs/vitepress/assets/30625794/941774fd-b73f-4b03-8095-f1eda053f247\">\r\n\r\n\r\nExpected :\r\n\u003Cimg width=\"1624\" alt=\"Screenshot2\" src=\"https://github.com/vuejs/vitepress/assets/30625794/62a77e31-80a6-4f54-b894-28f58d3460af\">\r\n\r\nI think this will result in some better readability when you have a documentation with some screenshots or larger code parts.\r\n\n\n### Describe alternatives you've considered\n\nMaybe you can try to write some hacky CSS overrides, but this is not a good solution.\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.",[2927],{"name":2882,"color":2883},3160,"Full width layout for larger screens like desktop","2023-11-08T00:04:17Z","https://github.com/vuejs/vitepress/issues/3160",0.72968984,{"description":2934,"labels":2935,"number":2937,"owner":2871,"repository":2872,"state":2911,"title":2938,"updated_at":2939,"url":2940,"score":2941},"### Describe the bug\n\n![Uploading image.png…]()\r\n\n\n### Reproduction\n\nstep.1 enter hr.wanlum.com in browser\r\nstep.2 find some code \r\n\r\nerror\n\n### Expected behavior\n\n\r\n\n\n### System Info\n\n```shell\nCentOS 9\r\nNginx 1.21.0\n```\n\n\n### Additional context\n\nno\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.",[2936],{"name":2908,"color":2909},818,"Copy paste code, not available online","2023-01-21T14:34:03Z","https://github.com/vuejs/vitepress/issues/818",0.7490628,{"description":2943,"labels":2944,"number":2945,"owner":2871,"repository":2872,"state":2911,"title":2946,"updated_at":2947,"url":2948,"score":2949},"https://github.com/maomao1996/vitepress-nav-template/issues/44\n\n(You can use a browser to translate)\n\nThe general thing is that the author of a small website wants to change the copyright statement because he uses the same webpage template as me, but Vitepress is yours, and we only have the right to use it. I will also use your technology in the webpage.\n\nThey tried to change the ownership of their own websites to themselves, so as to \"report\" other gh-page websites with the same technology.\n\nI went to tell Maomao, and he was against it, but it was you upstream, so I wanted to mention it to you\n\n\n\n(I don't know if there's a language barrier to this passage)",[],4500,"I wonder what developers think?","2025-01-21T03:58:22Z","https://github.com/vuejs/vitepress/issues/4500",0.74937546,{"description":2951,"labels":2952,"number":2956,"owner":2871,"repository":2872,"state":2911,"title":2957,"updated_at":2958,"url":2959,"score":2960},"### Describe the bug\r\n\r\nInstalling a fresh vitepress quickstart and using yarn with PnP installs. `yarn run docs:build` fails with:\r\n\r\n```\r\nbuild error:\r\n[vite]: Rollup failed to resolve import \"vue/server-renderer\" from \"/home/thomas/projects/testpnp/README.md\".\r\nThis is most likely unintended because it can break your application at runtime.\r\nIf you do want to externalize this module explicitly add it to\r\n`build.rollupOptions.external`\r\nError: [vite]: Rollup failed to resolve import \"vue/server-renderer\" from \"/home/thomas/projects/testpnp/README.md\".\r\nThis is most likely unintended because it can break your application at runtime.\r\nIf you do want to externalize this module explicitly add it to\r\n`build.rollupOptions.external`\r\n at viteWarn (file:///home/thomas/projects/testpnp/.yarn/__virtual__/vite-virtual-4c2197c7d1/3/.yarn/berry/cache/vite-npm-5.2.11-fa468e8533-10c0.zip/node_modules/vite/dist/node/chunks/dep-cNe07EU9.js:67612:27)\r\n at onRollupWarning (file:///home/thomas/projects/testpnp/.yarn/__virtual__/vite-virtual-4c2197c7d1/3/.yarn/berry/cache/vite-npm-5.2.11-fa468e8533-10c0.zip/node_modules/vite/dist/node/chunks/dep-cNe07EU9.js:67640:9)\r\n at onwarn (file:///home/thomas/projects/testpnp/.yarn/__virtual__/vite-virtual-4c2197c7d1/3/.yarn/berry/cache/vite-npm-5.2.11-fa468e8533-10c0.zip/node_modules/vite/dist/node/chunks/dep-cNe07EU9.js:67356:13)\r\n at file:///home/thomas/.yarn/berry/cache/rollup-npm-4.18.0-9eadb97a09-10c0.zip/node_modules/rollup/dist/es/shared/node-entry.js:18514:13\r\n at Object.logger [as onLog] (file:///home/thomas/.yarn/berry/cache/rollup-npm-4.18.0-9eadb97a09-10c0.zip/node_modules/rollup/dist/es/shared/node-entry.js:20162:9)\r\n at ModuleLoader.handleInvalidResolvedId (file:///home/thomas/.yarn/berry/cache/rollup-npm-4.18.0-9eadb97a09-10c0.zip/node_modules/rollup/dist/es/shared/node-entry.js:19104:26)\r\n at file:///home/thomas/.yarn/berry/cache/rollup-npm-4.18.0-9eadb97a09-10c0.zip/node_modules/rollup/dist/es/shared/node-entry.js:19062:26\r\n```\r\n\r\n### Reproduction\r\n\r\nUse this repo: https://github.com/l3d00m/vitepress-yarn-repro and run `corepack enable && yarn install && yarn run docs:build`\r\n\r\nAlternatively: \r\n\r\n1. Create New folder\r\n1. `yarn set version stable`\r\n2. `yarn add -D vitepress` \r\n3. `yarn vitepress init` (use default settings, just press enter)\r\n4. `yarn run docs:build` fails\r\n\r\n### Expected behavior\r\n\r\nShould not fail, should work out of the box\r\n\r\n### System Info\r\n\r\n```Text\r\nSystem:\r\n OS: Linux 6.9 Manjaro Linux\r\n CPU: (12) x64 AMD Ryzen 5 2600 Six-Core Processor\r\n Memory: 6.45 GB / 15.53 GB\r\n Container: Yes\r\n Shell: 5.9 - /usr/bin/zsh\r\n Binaries:\r\n Node: 20.13.1 - ~/.nvm/versions/node/v20.13.1/bin/node\r\n Yarn: 4.2.2 - ~/.nvm/versions/node/v20.13.1/bin/yarn\r\n npm: 10.5.2 - ~/.nvm/versions/node/v20.13.1/bin/npm\r\n Browsers:\r\n Chromium: 124.0.6367.155\r\n```\r\n\r\n\r\n### Additional context\r\n\r\nThis is similar to #3035, but here it always fails, also with a fresh repo.\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.",[2953],{"name":2954,"color":2955},"docs","0075ca",3919,"Fails to build with yarn v4 PnP, rollup error","2024-06-03T04:41:58Z","https://github.com/vuejs/vitepress/issues/3919",0.75345623,{"description":2962,"labels":2963,"number":2965,"owner":2871,"repository":2872,"state":2911,"title":2966,"updated_at":2967,"url":2968,"score":2969},"### Describe the bug\n\n\r\n\n\n### Reproduction\n\nAs described above\n\n### Expected behavior\n\nAs described above\n\n### System Info\n\n```shell\nAs described above\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.",[2964],{"name":2908,"color":2909},2168,"maybe copy button color too dark in code block with light background","2023-04-07T00:04:06Z","https://github.com/vuejs/vitepress/issues/2168",0.7564813,["Reactive",2971],{},["Set"],["ShallowReactive",2974],{"$fTRc1wZytZ_XrK4EfJfei_Sz-An4H4Yy6syhVxH_PVJc":-1,"$fK3LX4YFsih1XjcqQTLzZrFaDWms_bZnHeYKYTh2A_Qw":-1},"/vuejs/vitepress/3851"]