",[],4802,"配置完 algolia 搜索,检索不出任何内容","2025-06-22T01:00:42Z","https://github.com/vuejs/vitepress/issues/4802",0.67214984,{"description":3048,"labels":3049,"number":3050,"owner":3021,"repository":3022,"state":3023,"title":3051,"updated_at":3052,"url":3053,"score":3054},"\u003C!--\r\nNOTE:\r\nVitePress is still WIP, and it is not compatible with VuePress.\r\nPlease do not open issue about default theme missing features or something doesn't work like VuePress.\r\n-->\r\n\r\n**Describe the bug**\r\nBetween screen sizes `720px` and `751px`, the search field is collapsed, but still takes up the space of the expanded version:\r\n\r\n\u003Cimg width=\"500\" alt=\"Screenshot of VitePress homepage\" src=\"https://user-images.githubusercontent.com/45149421/109382325-0c577e00-78e0-11eb-8092-25cf95d98c9e.png\">\r\n\r\nThis issue seems to be baked into the VitePress default theme.\r\n\r\n**To Reproduce**\r\nSteps to reproduce the behavior: \r\n1. Open a device with screen width larger than `800px` (laptop or desktop).\r\n2. Visit any VitePress site (example: https://vitepress.vuejs.org).\r\n3. Slowly resize the browser window, paying special attention when getting to the `751px` threshold.\r\n4. Done.\r\n\r\n**Expected behavior**\r\nA clear and concise description of what you expected to happen.\r\n\r\nThe search field should only collapse at screen sizes smaller than `720px`.\r\n\r\n**System Info**\r\n- vitepress version: 0.12.2\r\n- vite version: unknown for https://vitepress.vuejs.org, `2.0.3` for local reproduction.\r\n- Node version: unknown for https://vitepress.vuejs.org, `15.10.0` for local reproduction.\r\n- OS version: unknown for https://vitepress.vuejs.org, MacOS 11.1 for local reproduction.\r\n\r\n**Additional context**\r\nAdd any other context about the problem here.\r\n\r\nFrom https://github.com/vuejs/vitepress/blob/master/src/client/theme-default/components/AlgoliaSearchBox.vue:\r\n``` js\r\n@media (min-width: 720px) {\r\n .algolia-search-box {\r\n padding-left: 8px;\r\n min-width: 176.3px; /* avoid layout shift */\r\n }\r\n}\r\n@media (min-width: 751px) {\r\n .algolia-search-box {\r\n padding-left: 8px;\r\n }\r\n .algolia-search-box .DocSearch-Button-Placeholder {\r\n padding-left: 8px;\r\n font-size: 0.9rem;\r\n font-weight: 500;\r\n }\r\n}\r\n```\r\n\r\nI still don't quite understand the purpose of the `@media (min-width: 751px) {...}`, since in other default theme components, the screen width breakpoint is at `720px`, but it seems to me that combining the two media queries should solve the problem.\r\n\r\nAnother solution might be to simply move the `min-width: 176.3px;` under the `@media (min-width: 751px) {...)` section.\r\n\r\n",[],250,"Algolia search field collapse behaviour","2023-01-21T16:22:23Z","https://github.com/vuejs/vitepress/issues/250",0.68207896,{"description":3056,"labels":3057,"number":3059,"owner":3021,"repository":3022,"state":3023,"title":3060,"updated_at":3061,"url":3062,"score":3063},"### Describe the bug\n\nwhen configuring the search engine as the documentation mentions https://vitepress.dev/reference/default-theme-search#local-search, the app breaks:\r\n\r\n\r\n\r\n\r\n\n\n### Reproduction\n\n:)\n\n### Expected behavior\n\n\r\n\n\n### System Info\n\n```sh\n$ npx envinfo --system --npmPackages vitepress --binaries --browsers\r\nnpx: installed 1 in 2.16s\r\n\r\n System:\r\n OS: Windows 10 10.0.19045\r\n CPU: (8) x64 Intel(R) Core(TM) i7-7700HQ CPU @ 2.80GHz\r\n Memory: 4.40 GB / 15.82 GB\r\n Binaries:\r\n Node: 14.19.0 - D:\\nodejs\\node.EXE\r\n Yarn: 1.22.17 - D:\\nodejs\\yarn.CMD\r\n npm: 6.14.16 - D:\\nodejs\\npm.CMD\r\n Browsers:\r\n Edge: Spartan (44.19041.1266.0), Chromium (113.0.1774.57)\r\n Internet Explorer: 11.0.19041.1566\r\n npmPackages:\r\n vitepress: latest => 1.0.0-beta.1\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.",[3058],{"name":3032,"color":3033},2435,"Local Search Error","2023-06-05T00:04:07Z","https://github.com/vuejs/vitepress/issues/2435",0.6837936,{"description":3065,"labels":3066,"number":3070,"owner":3021,"repository":3022,"state":3023,"title":3071,"updated_at":3072,"url":3073,"score":3074},"### Describe the bug\n\nWhen using Algolia search I'm getting this error in console and the search results do not appear. The API key is correct because the search results do appear when looking at XHR request.\r\n\r\n````\r\nUncaught (in promise) TypeError: Cannot read property 'lvl0' of undefined\r\n at DocSearchModal.js:187\r\n at groupBy.js:3\r\n at Array.reduce (\u003Canonymous>)\r\n at Vn (groupBy.js:2)\r\n at DocSearchModal.js:186\r\n````\n\n### Reproduction\n\nI just installed a new vitepress app, added my Algolia API key and App Id and this error occurred\r\n\r\nMy **config.js**\r\n````\r\nmodule.exports = {\r\n themeConfig: {\r\n sidebar: 'auto',\r\n algolia: {\r\n apiKey: '45d2386d18e39ac011227993d8353c00',\r\n appId: 'H5ZNGVTVMT',\r\n indexName: 'program_docs'\r\n }\r\n }\r\n}\r\n````\n\n### Expected behavior\n\nI expected to see the results appear in Algolia search box\n\n### System Info\n\n```shell\nnpx: installed 1 in 0.707s\r\n\r\n System:\r\n OS: Linux 5.8 Ubuntu 20.04.2 LTS (Focal Fossa)\r\n CPU: (12) x64 Intel(R) Core(TM) i7-10750H CPU @ 2.60GHz\r\n Memory: 12.12 GB / 31.08 GB\r\n Container: Yes\r\n Shell: 5.8 - /usr/bin/zsh\r\n Binaries:\r\n Node: 14.17.2 - /usr/bin/node\r\n npm: 6.14.13 - /usr/bin/npm\r\n Browsers:\r\n Chrome: 91.0.4472.164\r\n Firefox: 90.0\r\n npmPackages:\r\n vitepress: ^0.15.6 => 0.15.6\n```\n\n\n### Additional context\n\n_No response_\n\n### Validations\n\n- [X] Follow our [Code of Conduct](https://vuejs.org/coc)\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.",[3067],{"name":3068,"color":3069},"need more info","bdbefc",336,"Algolia search: Cannot read property 'lvl0' of undefined","2023-01-21T14:34:07Z","https://github.com/vuejs/vitepress/issues/336",0.6839312,{"description":3076,"labels":3077,"number":3078,"owner":3021,"repository":3022,"state":3023,"title":3079,"updated_at":3080,"url":3081,"score":3082},"After configuring according to the document, after clicking the search, \"#VPContent\" will be added after the original link and will not jump to the search result, as shown in the figure.\r\n\u003Cimg src=https://cdn.jsdelivr.net/gh/vanhiupun/pic@1.0/img/202309112316868.png width=60% />\r\n```yaml\r\n // algolia搜索\r\n search: {\r\n provider: 'algolia',\r\n options: {\r\n appId: 'xxxxx',\r\n apiKey: 'xxxxx',\r\n indexName: 'xxxxxx'\r\n }\r\n },",[],2944,"\"Algolia Search\" cannot jump to the page","2023-09-21T00:04:13Z","https://github.com/vuejs/vitepress/issues/2944",0.6886583,{"description":3084,"labels":3085,"number":3087,"owner":3021,"repository":3022,"state":3023,"title":3088,"updated_at":3089,"url":3090,"score":3091},"### Describe the bug\n\nThe current algolia search index is wrong.\r\nA lot of pages have been moved in the last release.\r\n\r\nIf you use the search you get linked to wrong pages.\r\n\r\n\r\n\n\n### Reproduction\n\nGo to https://vitepress.vuejs.org and search for \"useData\". Click on the suggested page and you get forwarded to a non existing page.\n\n### Expected behavior\n\nYou should be forwarded to the correct page.\n\n### System Info\n\n```shell\nSystem:\r\n OS: Windows 10 10.0.19045\r\n CPU: (32) x64 AMD Ryzen 9 3950X 16-Core Processor\r\n Memory: 45.51 GB / 63.91 GB\r\n Binaries:\r\n Node: 16.14.2 - C:\\Program Files\\nodejs\\node.EXE\r\n Yarn: 1.22.19 - ~\\AppData\\Roaming\\npm\\yarn.CMD\r\n npm: 8.7.0 - C:\\Program Files\\nodejs\\npm.CMD\r\n Browsers:\r\n Edge: Spartan (44.19041.1266.0), Chromium (110.0.1587.57) \r\n Internet Explorer: 11.0.19041.1566\r\n npmPackages:\r\n vitepress: ^1.0.0-alpha.13 => 1.0.0-alpha.48\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.vuejs.org).\n- [X] Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.",[3086],{"name":3032,"color":3033},2024,"Rebuild search index","2023-03-10T00:04:38Z","https://github.com/vuejs/vitepress/issues/2024",0.6929864,{"description":3093,"labels":3094,"number":3095,"owner":3021,"repository":3022,"state":3023,"title":3096,"updated_at":3097,"url":3098,"score":3099},"### Describe the bug\n\nClicking \"Take me home\" on the 404 page takes me to the home page (`/`), but the page is empty until I refresh. There are no errors in the console or network requests.\n\n### Reproduction\n\nI wasn't able to reproduce this on vitepress.new or in development mode, but it does reproduce with `pnpm docs:build && pnpm docs:serve` and the following configs:\r\n\r\n`docs/.vitepress/config.js`:\r\n```js\r\nexport default {\r\n title: 'OrbStack Docs',\r\n titleTemplate: ':title · OrbStack Docs',\r\n description: 'Say goodbye to slow, clunky containers and VMs.',\r\n themeConfig: {\r\n logo: '/img/logo64.png',\r\n socialLinks: [\r\n { icon: 'twitter', link: 'https://twitter.com/orbstack' },\r\n { icon: 'github', link: 'https://github.com/orbstack' },\r\n { icon: 'discord', link: 'https://discord.gg/Tfjyd5N5Eq' },\r\n ],\r\n footer: {\r\n copyright: '© 2023 Orbital Labs, LLC',\r\n },\r\n nav: [\r\n { text: 'Overview', link: '/' },\r\n { text: 'Docker', link: '/docker/' },\r\n { text: 'Linux', link: '/machines/' },\r\n { text: 'Install', link: '/quick-start' },\r\n { text: 'Demo', link: 'https://orbstack.dev/' },\r\n ],\r\n sidebar: [\r\n {\r\n text: 'Get started',\r\n collapsed: false,\r\n items: [\r\n { text: 'Home', link: '/' },\r\n { text: 'Features', link: '/features' },\r\n { text: 'Quick start', link: '/quick-start'},\r\n { text: 'Frequently asked questions', link: '/faq' },\r\n { text: \"What's new\", link: '/release-notes' },\r\n ],\r\n },\r\n {\r\n text: 'Learn more',\r\n collapsed: false,\r\n items: [\r\n { text: 'Install', link: '/install'},\r\n { text: 'Efficiency', link: '/efficiency' },\r\n { text: 'Benchmarks', link: '/benchmarks' },\r\n { text: 'Architecture', link: '/architecture' },\r\n { text: 'Settings', link: '/settings' },\r\n { text: 'Headless & CI', link: '/headless' },\r\n { text: 'Older versions', link: '/downgrade' },\r\n ],\r\n },\r\n {\r\n text: 'Docker containers',\r\n collapsed: false,\r\n items: [\r\n { text: 'Using Docker containers', link: '/docker/' },\r\n { text: 'Network', link: '/docker/network' },\r\n { text: 'Volumes & mounts', link: '/docker/file-sharing' },\r\n { text: 'Domain names', link: '/docker/domains' },\r\n ],\r\n },\r\n {\r\n text: 'Kubernetes',\r\n collapsed: false,\r\n items: [\r\n { text: 'Using Kubernetes', link: '/kubernetes/' },\r\n ]\r\n },\r\n {\r\n text: 'Linux machines',\r\n collapsed: false,\r\n items: [\r\n { text: 'Using Linux machines', link: '/machines/'},\r\n { text: 'Commands', link: '/machines/commands' },\r\n { text: 'Network', link: '/machines/network' },\r\n { text: 'File sharing', link: '/machines/file-sharing' },\r\n { text: 'SSH', link: '/machines/ssh' },\r\n { text: 'Distributions', link: '/machines/distros' },\r\n ],\r\n },\r\n {\r\n text: 'Compare',\r\n collapsed: false,\r\n items: [\r\n { 'text': 'Docker Desktop', link: '/compare/docker-desktop' },\r\n { 'text': 'Colima', link: '/compare/colima' },\r\n { 'text': 'UTM', link: '/compare/utm' },\r\n ],\r\n }\r\n ],\r\n algolia: {\r\n appId: 'xxx',\r\n apiKey: 'xxx',\r\n indexName: 'orbstack'\r\n },\r\n },\r\n cleanUrls: true,\r\n head: [\r\n ['script', { async: '', defer: '', src: 'https://orbstack.dev/js/xxx.js' }],\r\n ['link', { rel: 'icon', sizes: '64x64', href: '/img/logo64.png' }],\r\n ['link', { rel: 'shortcut icon', href: '/img/logo128.png' }],\r\n ['link', { rel: 'apple-touch-icon', href: '/img/logo128.png' }],\r\n ]\r\n}\r\n```\r\n\r\nindex.md:\r\n```markdown\r\n# What is OrbStack?\r\n\r\n[OrbStack](https://orbstack.dev) is a fast, light, and simple way to run containers and Linux machines on macOS. It's a supercharged alternative to Docker Desktop and WSL, all in one easy-to-use app.\r\n\r\nKeep reading to learn more, or [get started](quick-start.md) right away.\r\n# What is OrbStack?\r\n\r\n[OrbStack](https://orbstack.dev) is a fast, light, and simple way to run containers and Linux machines on macOS. It's a supercharged alternative to Docker Desktop and WSL, all in one easy-to-use app.\r\n\r\nKeep reading to learn more, or [get started](quick-start.md) right away.# What is OrbStack?\r\n\r\n[OrbStack](https://orbstack.dev) is a fast, light, and simple way to run containers and Linux machines on macOS. It's a supercharged alternative to Docker Desktop and WSL, all in one easy-to-use app.\r\n\r\nKeep reading to learn more, or [get started](quick-start.md) right away.# What is OrbStack?\r\n\r\n[OrbStack](https://orbstack.dev) is a fast, light, and simple way to run containers and Linux machines on macOS. It's a supercharged alternative to Docker Desktop and WSL, all in one easy-to-use app.\r\n\r\nKeep reading to learn more, or [get started](quick-start.md) right away.# What is OrbStack?\r\n\r\n[OrbStack](https://orbstack.dev) is a fast, light, and simple way to run containers and Linux machines on macOS. It's a supercharged alternative to Docker Desktop and WSL, all in one easy-to-use app.\r\n\r\nKeep reading to learn more, or [get started](quick-start.md) right away.# What is OrbStack?\r\n\r\n[OrbStack](https://orbstack.dev) is a fast, light, and simple way to run containers and Linux machines on macOS. It's a supercharged alternative to Docker Desktop and WSL, all in one easy-to-use app.\r\n\r\nKeep reading to learn more, or [get started](quick-start.md) right away.\r\n```\r\n\r\nThe issue doesn't occur with a short index.md, so I had to copy and paste the text to reproduce it.\n\n### Expected behavior\n\nHome page appears.\n\n### System Info\n\n```sh\nSystem:\r\n OS: macOS 13.5.1\r\n CPU: (10) arm64 Apple M1 Max\r\n Memory: 1.25 GB / 64.00 GB\r\n Shell: 5.9 - /bin/zsh\r\n Binaries:\r\n Node: 20.5.1 - /opt/homebrew/bin/node\r\n Yarn: 1.22.19 - /opt/homebrew/bin/yarn\r\n npm: 9.8.0 - /opt/homebrew/bin/npm\r\n pnpm: 8.6.6 - /opt/homebrew/bin/pnpm\r\n Browsers:\r\n Chrome: 116.0.5845.140\r\n Safari: 16.6\r\n npmPackages:\r\n vitepress: 1.0.0-rc.10 => 1.0.0-rc.10\n```\n\n\n### Additional context\n\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.",[],2891,"Empty home page after following link from 404 page","2023-09-23T00:04:03Z","https://github.com/vuejs/vitepress/issues/2891",0.706189,{"description":3101,"labels":3102,"number":3104,"owner":3021,"repository":3022,"state":3023,"title":3105,"updated_at":3106,"url":3107,"score":3108},"### Describe the bug\n\nHello, I don't understand from the docs how an index should be built. If it is supposed to be automatically built, then it simply doesn't.\r\n\n\n### Reproduction\n\nJust set algolia following official docs.\n\n### Expected behavior\n\nSearch should provide results.\n\n### System Info\n\n```shell\nSystem:\r\n OS: macOS 12.3.1\r\n CPU: (10) arm64 Apple M1 Pro\r\n Memory: 99.66 MB / 16.00 GB\r\n Shell: 5.8 - /bin/zsh\r\n Binaries:\r\n Node: 16.14.2 - ~/.nvm/versions/node/v16.14.2/bin/node\r\n Yarn: 1.22.15 - ~/.nvm/versions/node/v16.14.2/bin/yarn\r\n npm: 8.7.0 - ~/.nvm/versions/node/v16.14.2/bin/npm\r\n Watchman: 2022.03.21.00 - /opt/homebrew/bin/watchman\r\n Browsers:\r\n Chrome: 100.0.4896.127\r\n Firefox: 99.0.1\r\n Safari: 15.4\r\n npmPackages:\r\n vitepress: ^0.22.3 => 0.22.3\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.vuejs.org).\n- [X] Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.",[3103],{"name":3032,"color":3033},613,"[Algolia] Index creation","2023-01-21T14:35:51Z","https://github.com/vuejs/vitepress/issues/613",0.7076204,["Reactive",3110],{},["Set"],["ShallowReactive",3113],{"$fTRc1wZytZ_XrK4EfJfei_Sz-An4H4Yy6syhVxH_PVJc":-1,"$f7wqEm7Irhu7lJvIEb5_uNQuTQSeGXomcoDGqPC_5CsE":-1},"/vuejs/vitepress/3614"]