\r\n \u003Cbr />\r\n \u003Cdiv id=\"disqus_thread\">\u003C/div>\r\n \u003C/template>\r\n \u003C/Layout>\r\n\u003C/template>\r\n```\r\n2. 修改了`docs/.vitepress/theme/index.ts`; 2. Modified `docs/.vitepress/theme/index.ts`\r\n```ts\r\nimport DefaultTheme from 'vitepress/theme';\r\n\r\nimport Discussion from '../../components/Discussion.vue';\r\n\r\nexport default {\r\n ...DefaultTheme,\r\n Layout: Discussion,\r\n};\r\n```\n\n### Expected behavior\n\nvitepress 能够正常的和Disqus合并,并在生产环境正常工作\r\nVitepress can merge with Disqus normally and work normally in production environment.\n\n### System Info\n\n```sh\nSystem:\r\n OS: macOS 13.5\r\n CPU: (10) arm64 Apple M1 Max\r\n Memory: 1.38 GB / 32.00 GB\r\n Shell: 5.9 - /bin/zsh\r\n Binaries:\r\n Node: 18.16.0 - ~/Library/pnpm/node\r\n npm: 9.5.1 - ~/Library/pnpm/npm\r\n pnpm: 8.6.3 - ~/Library/pnpm/pnpm\r\n Browsers:\r\n Chrome: 115.0.5790.170\r\n Safari: 16.6\r\n npmPackages:\r\n vitepress: ^1.0.0-rc.4 => 1.0.0-rc.4\n```\n\n\n### Additional context\n\ngithub 提示我日志太长,我将日志分享到了谷歌网盘,地址:https://drive.google.com/file/d/13X8e_sFMtE09SNIXx8B5xm2ZUp0QIPD6/view?usp=drive_link\r\n\r\nGithub prompted me that the log was too long, and I shared the log to Google disk at https://drive.google.com/file/d/13X8e_sFMtE09SNIXx8B5xm2ZUp0QIPD6/view?usp=drive_link\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.",[2929],{"name":2930,"color":2931},"bug: pending triage","e99695",2824,"Compilation failed after merging vitepress and Disqus, request help","2023-08-29T00:04:21Z","https://github.com/vuejs/vitepress/issues/2824",0.6697341,{"description":2938,"labels":2939,"number":2941,"owner":2871,"repository":2872,"state":2885,"title":2942,"updated_at":2943,"url":2944,"score":2945},"### Describe the bug\n\nif I use \"/\" character end of url, sidebar and middle page not working normally.\n\n### Reproduction\n\ncheck this error\r\nhttps://stackblitz.com/edit/vite-9jamew\r\n\r\nif you see error, add to `\u003Cstackblitz test url>/en/test/` and enter. 404 page coming. \r\nbut `\u003Cstackblitz test url>/en/test` like this working.\n\n### Expected behavior\n\nneed to work normally. 404 page is wrong.\n\n### System Info\n\n```Text\nSystem:\r\n OS: Windows 11 10.0.22631\r\n CPU: (12) x64 Intel(R) Core(TM) i7-10750H CPU @ 2.60GHz\r\n Memory: 2.38 GB / 15.87 GB\r\n Binaries:\r\n Node: 18.18.2 - C:\\Program Files\\nodejs\\node.EXE\r\n Yarn: 1.22.22 - C:\\Program Files\\nodejs\\yarn.CMD\r\n npm: 9.8.1 - C:\\Program Files\\nodejs\\npm.CMD\r\n pnpm: 8.6.1 - ~\\AppData\\Roaming\\npm\\pnpm.CMD\r\n Browsers:\r\n Edge: Chromium (122.0.2365.59)\r\n Internet Explorer: 11.0.22621.1\r\n npmPackages:\r\n vitepress: ^1.1.3 => 1.1.3\n```\n\n\n### Additional context\n\nnginx conf like\r\n\r\n```\r\nserver {\r\n gzip on;\r\n gzip_types text/plain text/css application/json application/javascript text/xml application/xml application/xml+rss text/javascript;\r\n\r\n listen 80;\r\n server_name _;\r\n index index.html;\r\n\r\n location / {\r\n # content location\r\n root /app;\r\n\r\n # exact matches -> reverse clean urls -> folders -> not found\r\n try_files $uri $uri.html $uri/ =404;\r\n\r\n # non existent pages\r\n error_page 404 /404.html;\r\n\r\n # a folder without index.html raises 403 in this setup\r\n error_page 403 /404.html;\r\n\r\n # adjust caching headers\r\n # files in the assets folder have hashes filenames\r\n location ~* ^/assets/ {\r\n expires 1y;\r\n add_header Cache-Control \"public, immutable\";\r\n }\r\n }\r\n}\r\n```\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.",[2940],{"name":2930,"color":2931},3832,"page render error","2024-05-05T04:41:46Z","https://github.com/vuejs/vitepress/issues/3832",0.67875487,{"description":2947,"labels":2948,"number":2952,"owner":2871,"repository":2872,"state":2885,"title":2953,"updated_at":2954,"url":2955,"score":2956},"### Describe the bug\n\n单击 AntDesignVue Pagination 组件某页进行切换时,会导致当前页面会滚动到 Top。\n\n### Reproduction\n\n后排查发现 \\\u003Ca rel=\"nofollow\"> 这种也会起到锚链接的作用。但在其他非 vitepress 的 SPA 页面中使用,却不会有这个影响。我不太理解。\n\n### Expected behavior\n\n消除 \\\u003Ca rel=\"nofollow\"> 本不该有的 锚链接影响。\n\n### System Info\n\n```Text\nSystem:\r\n OS: macOS 14.5\r\n CPU: (16) x64 Intel(R) Core(TM) i9-9880H CPU @ 2.30GHz\r\n Memory: 2.63 GB / 32.00 GB\r\n Shell: 5.9 - /bin/zsh\r\n Binaries:\r\n Node: 20.10.0 - ~/.nvm/versions/node/v20.10.0/bin/node\r\n Yarn: 1.22.22 - /usr/local/bin/yarn\r\n npm: 10.2.3 - ~/.nvm/versions/node/v20.10.0/bin/npm\r\n pnpm: 9.2.0 - /usr/local/bin/pnpm\r\n bun: 1.1.12 - /usr/local/bin/bun\r\n Browsers:\r\n Chrome: 125.0.6422.142\r\n Safari: 17.5\r\n npmPackages:\r\n vitepress: ^1.2.3 => 1.2.3\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.",[2949],{"name":2950,"color":2951},"client","1AA9E5",3950,"使用 AntDesignVue Pagination 组件中,发现单击某个页数切换,会导致页面会回滚到 Top","2024-06-17T04:43:00Z","https://github.com/vuejs/vitepress/issues/3950",0.67978495,{"description":2958,"labels":2959,"number":2963,"owner":2871,"repository":2872,"state":2885,"title":2964,"updated_at":2965,"url":2966,"score":2967},"### Describe the bug\r\n\r\nException occurs when navigating to page with a specific content: https://naninovel.github.io/guide/configuration (it renders fine when loaded directly via URL; navigate somewhere else and back to the page to observe the issue)\r\n\r\nAfter page reload, however, the content is rendered fine.\r\n\r\nCan't figure what exactly causes the error, as the error log neither specify location of the invalid char nor the char itself.\r\n\r\n### Reproduction\r\n\r\nPage sources: https://github.com/Naninovel/naninovel.github.io/blob/main/docs/guide/configuration.md\r\n\r\n1. Build an preview the project\r\n2. Navigate to `/guide/configuration`\r\n3. Notice the page is empty and error is logged\r\n4. Reload the page and notice the page is rendered fine\r\n\r\nNote: page reload only works in preview or published build; in dev reloading the page doesn't fix the issue.\r\n\r\n### Expected behavior\r\n\r\nPage should be rendered fine when first loaded.\r\n\r\n### System Info\r\n\r\n```sh\r\nSystem:\r\n OS: Windows 10 10.0.19044\r\n CPU: (16) x64 Intel(R) Core(TM) i7-6900K CPU @ 3.20GHz\r\n Memory: 45.66 GB / 63.92 GB\r\n Binaries:\r\n Node: 18.2.0 - C:\\Program Files\\nodejs\\node.EXE\r\n Yarn: 1.22.5 - C:\\Program Files (x86)\\Yarn\\bin\\yarn.CMD\r\n npm: 9.6.6 - C:\\Program Files\\nodejs\\npm.CMD\r\n Browsers:\r\n Chrome: 113.0.5672.127\r\n Edge: Spartan (44.19041.1266.0), Chromium (113.0.1774.50)\r\n npmPackages:\r\n vitepress: ^1.0.0-beta.1 => 1.0.0-beta.1\r\n```\r\n\r\n\r\n### Additional context\r\n\r\nFull error message:\r\n\r\n```\r\nUncaught (in promise) DOMException: String contains an invalid character\r\n patchAttr runtime-dom.esm-bundler.js:179\r\n patchProp runtime-dom.esm-bundler.js:328\r\n mountElement runtime-core.esm-bundler.js:5209\r\n processElement runtime-core.esm-bundler.js:5156\r\n patch runtime-core.esm-bundler.js:5028\r\n mountChildren runtime-core.esm-bundler.js:5284\r\n mountElement runtime-core.esm-bundler.js:5191\r\n processElement runtime-core.esm-bundler.js:5156\r\n patch runtime-core.esm-bundler.js:5028\r\n mountChildren runtime-core.esm-bundler.js:5284\r\n mountElement runtime-core.esm-bundler.js:5191\r\n processElement runtime-core.esm-bundler.js:5156\r\n patch runtime-core.esm-bundler.js:5028\r\n mountChildren runtime-core.esm-bundler.js:5284\r\n mountElement runtime-core.esm-bundler.js:5191\r\n processElement runtime-core.esm-bundler.js:5156\r\n patch runtime-core.esm-bundler.js:5028\r\n mountChildren runtime-core.esm-bundler.js:5284\r\n mountElement runtime-core.esm-bundler.js:5191\r\n processElement runtime-core.esm-bundler.js:5156\r\n patch runtime-core.esm-bundler.js:5028\r\n mountChildren runtime-core.esm-bundler.js:5284\r\n mountElement runtime-core.esm-bundler.js:5191\r\n processElement runtime-core.esm-bundler.js:5156\r\n patch runtime-core.esm-bundler.js:5028\r\n componentUpdateFn runtime-core.esm-bundler.js:5708\r\n run reactivity.esm-bundler.js:178\r\n update runtime-core.esm-bundler.js:5814\r\n setupRenderEffect runtime-core.esm-bundler.js:5822\r\n mountComponent runtime-core.esm-bundler.js:5612\r\n processComponent runtime-core.esm-bundler.js:5565\r\n patch runtime-core.esm-bundler.js:5040\r\n mountChildren runtime-core.esm-bundler.js:5284\r\n mountElement runtime-core.esm-bundler.js:5191\r\n processElement runtime-core.esm-bundler.js:5156\r\n patch runtime-core.esm-bundler.js:5028\r\n componentUpdateFn runtime-core.esm-bundler.js:5708\r\n run reactivity.esm-bundler.js:178\r\n update runtime-core.esm-bundler.js:5814\r\n setupRenderEffect runtime-core.esm-bundler.js:5822\r\n mountComponent runtime-core.esm-bundler.js:5612\r\n processComponent runtime-core.esm-bundler.js:5565\r\n patch runtime-core.esm-bundler.js:5040\r\n mountChildren runtime-core.esm-bundler.js:5284\r\n mountElement runtime-core.esm-bundler.js:5191\r\n processElement runtime-core.esm-bundler.js:5156\r\n patch runtime-core.esm-bundler.js:5028\r\n mountChildren runtime-core.esm-bundler.js:5284\r\n mountElement runtime-core.esm-bundler.js:5191\r\n processElement runtime-core.esm-bundler.js:5156\r\n patch runtime-core.esm-bundler.js:5028\r\n mountChildren runtime-core.esm-bundler.js:5284\r\n mountElement runtime-core.esm-bundler.js:5191\r\n processElement runtime-core.esm-bundler.js:5156\r\n patch runtime-core.esm-bundler.js:5028\r\n mountChildren runtime-core.esm-bundler.js:5284\r\n mountElement runtime-core.esm-bundler.js:5191\r\n processElement runtime-core.esm-bundler.js:5156\r\n patch runtime-core.esm-bundler.js:5028\r\n mountChildren runtime-core.esm-bundler.js:5284\r\n mountElement runtime-core.esm-bundler.js:5191\r\n processElement runtime-core.esm-bundler.js:5156\r\n patch runtime-core.esm-bundler.js:5028\r\n componentUpdateFn runtime-core.esm-bundler.js:5708\r\n run reactivity.esm-bundler.js:178\r\n update runtime-core.esm-bundler.js:5814\r\n setupRenderEffect runtime-core.esm-bundler.js:5822\r\n mountComponent runtime-core.esm-bundler.js:5612\r\n processComponent runtime-core.esm-bundler.js:5565\r\n patch runtime-core.esm-bundler.js:5040\r\n mountChildren runtime-core.esm-bundler.js:5284\r\n mountElement runtime-core.esm-bundler.js:5191\r\n processElement runtime-core.esm-bundler.js:5156\r\n patch runtime-core.esm-bundler.js:5028\r\n componentUpdateFn runtime-core.esm-bundler.js:5708\r\n run reactivity.esm-bundler.js:178\r\n update runtime-core.esm-bundler.js:5814\r\n setupRenderEffect runtime-core.esm-bundler.js:5822\r\n mountComponent runtime-core.esm-bundler.js:5612\r\n processComponent runtime-core.esm-bundler.js:5565\r\n patch runtime-core.esm-bundler.js:5040\r\n mountChildren runtime-core.esm-bundler.js:5284\r\n mountElement runtime-core.esm-bundler.js:5191\r\n processElement runtime-core.esm-bundler.js:5156\r\n patch runtime-core.esm-bundler.js:5028\r\n componentUpdateFn runtime-core.esm-bundler.js:5708\r\n run reactivity.esm-bundler.js:178\r\n update runtime-core.esm-bundler.js:5814\r\n setupRenderEffect runtime-core.esm-bundler.js:5822\r\n mountComponent runtime-core.esm-bundler.js:5612\r\n processComponent runtime-core.esm-bundler.js:5565\r\n patch runtime-core.esm-bundler.js:5040\r\n componentUpdateFn runtime-core.esm-bundler.js:5708\r\n run reactivity.esm-bundler.js:178\r\n update runtime-core.esm-bundler.js:5814\r\n setupRenderEffect runtime-core.esm-bundler.js:5822\r\n mountComponent runtime-core.esm-bundler.js:5612\r\n processComponent runtime-core.esm-bundler.js:5565\r\n patch runtime-core.esm-bundler.js:5040\r\n render2 runtime-core.esm-bundler.js:6332\r\nruntime-dom.esm-bundler.js:179:6\r\n run reactivity.esm-bundler.js:188\r\n update runtime-core.esm-bundler.js:5814\r\n setupRenderEffect runtime-core.esm-bundler.js:5822\r\n mountComponent runtime-core.esm-bundler.js:5612\r\n processComponent runtime-core.esm-bundler.js:5565\r\n patch runtime-core.esm-bundler.js:5040\r\n render2 runtime-core.esm-bundler.js:6332\r\n mount runtime-core.esm-bundler.js:3824\r\n mount runtime-dom.esm-bundler.js:1431\r\n \u003Canonymous> index.js:120\r\n (Async: promise callback)\r\n \u003Canonymous> index.js:117\r\n (Async: promise callback)\r\n \u003Canonymous> index.js:115\r\n\r\n```\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.",[2960],{"name":2961,"color":2962},"has-workaround","1B4515",2440,"Uncaught (in promise) DOMException: String contains an invalid character","2023-06-06T00:04:02Z","https://github.com/vuejs/vitepress/issues/2440",0.68288857,["Reactive",2969],{},["Set"],["ShallowReactive",2972],{"$fTRc1wZytZ_XrK4EfJfei_Sz-An4H4Yy6syhVxH_PVJc":-1,"$fEEfHpxILL6x_R5eCsilVWeGyIyZm-Nw5keMK3zSJGfc":-1},"/vuejs/vitepress/3202"]