ArcGIS\r\n details: Use the ArcGIS Maps SDK for JavaScript to build compelling web apps that unlock your data’s potential with interactive user experiences and stunning 2D and 3D visualizations.\r\n link: https://developers.arcgis.com/javascript/latest/\r\n target: \"_blank\"\r\n```\r\nIt runs well in dev, but when I deployed on gh-pages in a custom repository, the site comes like \\\u003Cusername\\>.github.io/\\\u003Crepo\\>/xxx.So I set base option in ./docs/.vitepress/config.mts, the logo.png runs well under this option.but in `index.md>home layout>features`,it didn't work.\r\nif add a \\\u003Crepo\\> before src link, worked but I should change it every time when add or remove a feature:\r\n```md\r\nfeatures:\r\n - title: \u003Cimg src= \"/gest_webgis/imgs/ArcGIS.png\" alt=\"ArcGIS\" class=\"inline-block\"/>ArcGIS\r\n details: Use the ArcGIS Maps SDK for JavaScript to build compelling web apps that unlock your data’s potential with interactive user experiences and stunning 2D and 3D visualizations.\r\n link: https://developers.arcgis.com/javascript/latest/\r\n target: \"_blank\"\r\n```\r\nHow can I use a `withBase` helper in vitepress within formatter in md files?\r\n\r\n### Reproduction\r\n\r\nwrite an img tag in `home layout > features>title`,set base option in ./docs/.vitepress/index.{js,mts}\r\n\r\n\r\n### Expected behavior\r\n\r\nthe /imgs/xxx.png should automatically change into ${baseUrl}/imgs/xxx.png at runtime or use withBase helper in home features\r\n\r\n### System Info\r\n\r\n```Text\r\nwin11, gitpub pages\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.",[2931],{"name":2905,"color":2906},3139,"How to use a `withBase` helper in vitepress within formatter in md files?","2023-11-02T00:04:19Z","https://github.com/vuejs/vitepress/issues/3139",0.7029853,{"description":2938,"labels":2939,"number":2940,"owner":2874,"repository":2875,"state":2885,"title":2941,"updated_at":2942,"url":2943,"score":2944},"### Describe the bug\r\n\r\nWhen using iOS Safari, if you move to the actions link on the home page and then swipe history back, clicking on the elements on the home page is interrupted once.\r\nWorks fine from the second touch.\r\n\r\n### Reproduction\r\n\r\nhome > click action button > swipe history back > click action button\r\n\r\n### Expected behavior\r\n\r\n\r\nNo response to action button on home page after history back.\r\n\r\n### System Info\r\n\r\n```Text\r\niPhone SE2 (2020)\r\niOS 17.4\r\nsafari\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.",[],3658,"History back issue while using iOS Safari","2024-05-04T04:42:01Z","https://github.com/vuejs/vitepress/issues/3658",0.7071155,{"description":2946,"labels":2947,"number":2949,"owner":2874,"repository":2875,"state":2885,"title":2950,"updated_at":2951,"url":2952,"score":2953},"### 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.",[2948],{"name":2905,"color":2906},3832,"page render error","2024-05-05T04:41:46Z","https://github.com/vuejs/vitepress/issues/3832",0.7100292,{"description":2955,"labels":2956,"number":2958,"owner":2874,"repository":2875,"state":2885,"title":2959,"updated_at":2960,"url":2961,"score":2962},"### Describe the bug\n\n[Disqus](https://bddxg.disqus.com/admin/install/platforms/universalcode/) 是一个不错的评论系统, 我期望它和 vitepress 合并后会给我的博客带来更好的阅读体验,\r\n[Disqus](https://bddxg.disqus.com/admin/install/platforms/universalcode/) is a good comment system, and I hope that the merger of it and vitepress will bring a better reading experience to my blog.\r\n\r\n事实上,我在 dev 环境下已经成功把 Disqus 带入了 layout 的插槽里:\r\nIn fact, I have successfully brought Disqus into the slot of layout in dev environment:\r\n\r\n\u003Cimg width=\"880\" alt=\"image\" src=\"https://github.com/vuejs/vitepress/assets/34816426/4b02c3d1-dfb0-43d8-b410-7a4627f4932c\">\r\n\r\n但是当我 build 的时候,编辑器产生了大量的错误,具体内容见尾部log:\r\nBut when I build, the editor produces a lot of errors. See the tail log for details.\r\n\r\n\r\n\r\n我自己不知道该怎么处理,希望能得到帮助,如果我提供的信息不够完善,可以随时联系我,谢谢!\r\nI do not know how to deal with it, hope to get help, if the information I provide is not perfect, you can contact me at any time, thank you!\r\n\r\n\r\n\n\n### Reproduction\n\n我在stickblitz 已经分享了代码 https://stackblitz.com/edit/vite-bdtuuc?file=docs%2F.vitepress%2Ftheme%2Findex.ts\r\nI have shared the code https://stackblitz.com/edit/vite-bdtuuc?file=docs%2F.vitepress%2Ftheme%2Findex.ts on stickblitz.\r\n\r\n但是它有点问题, 它好像无法渲染出Disqus的页面,我不知道是不是环境问题或者是网络请求被拦截了\r\nBut there's something wrong with it. It doesn't seem to be able to render the Disqus page. I don't know if it's an environmental problem or if the network request has been blocked.\r\n\r\n总之我操作的只有 2 个地方:\r\nIn short, there are only two places I operate:\r\n\r\n1. 创建了`docs/components/Discussion.vue`; 1. Created `docs/components/Discussion .vue`\r\n\r\n```html\r\n\u003Cscript setup>\r\nimport DefaultTheme from 'vitepress/theme'\r\n\r\nconst { Layout } = DefaultTheme\r\n;(function () {\r\n // DON'T EDIT BELOW THIS LINE\r\n var d = document,\r\n s = d.createElement('script')\r\n s.src = 'https://bddxg.disqus.com/embed.js'\r\n s.setAttribute('data-timestamp', +new Date())\r\n ;(d.head || d.body).appendChild(s)\r\n})()\r\n\u003C/script>\r\n\r\n\u003Ctemplate>\r\n \u003CLayout>\r\n \u003Ctemplate #doc-after>\r\n \u003Cbr />\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.",[2957],{"name":2905,"color":2906},2824,"Compilation failed after merging vitepress and Disqus, request help","2023-08-29T00:04:21Z","https://github.com/vuejs/vitepress/issues/2824",0.71306837,["Reactive",2964],{},["Set"],["ShallowReactive",2967],{"$fTRc1wZytZ_XrK4EfJfei_Sz-An4H4Yy6syhVxH_PVJc":-1,"$fHvbUELjbV9XTsavf-h1fNPAnz7dfpIP_5yhLIe-nPKo":-1},"/vuejs/vitepress/3286"]