",[],4802,"配置完 algolia 搜索,检索不出任何内容","2025-06-22T01:00:42Z","https://github.com/vuejs/vitepress/issues/4802",0.683271,{"description":3062,"labels":3063,"number":3065,"owner":3021,"repository":3022,"state":3023,"title":3066,"updated_at":3067,"url":3068,"score":3069},"### 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.",[3064],{"name":3046,"color":3047},2024,"Rebuild search index","2023-03-10T00:04:38Z","https://github.com/vuejs/vitepress/issues/2024",0.6841189,{"description":3071,"labels":3072,"number":3073,"owner":3021,"repository":3022,"state":3023,"title":3074,"updated_at":3075,"url":3076,"score":3077},"\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.68678826,{"description":3079,"labels":3080,"number":3081,"owner":3021,"repository":3022,"state":3023,"title":3082,"updated_at":3083,"url":3084,"score":3085},"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.68978554,{"description":3087,"labels":3088,"number":3092,"owner":3021,"repository":3022,"state":3023,"title":3093,"updated_at":3094,"url":3095,"score":3096},"### Discussed in https://github.com/vuejs/vitepress/discussions/1368\r\n\r\n\u003Cdiv type='discussions-op-text'>\r\n\r\n\u003Csup>Originally posted by **Zogsha** September 19, 2022\u003C/sup>\r\nHi, thanks for your work on vitepress!\r\n\r\nMy documentation site is written in French, so I need the Docsearch component in French.\r\n\r\nI have two problems :\r\n\r\n1. There is a `algolia.buttonText` option in `themeConfig`. I set it to \"Rechercher\" instead of the default \"Search\", but whenever I click on the search component or use \"CTRL+K\", the placeholder turns back to \"Search\". It only displays \"Rechercher\" when the page refreshes. I only tested in dev.\r\n\r\n2. In the Docsearch API Reference, there is `translations` option (https://docsearch.algolia.com/docs/api#translations). I can't figure out how to configure it.\r\n\r\nI think __1.__ is not intended, but I didn't look further. Is __2.__ intended ? If that is the case, do you plan to let us translate the Doscsearch modal via `algolia` config in `themeConfig`?\r\n\r\nThanks,\r\nAliosha\u003C/div>",[3089],{"name":3090,"color":3091},"theme","0754FB",1381,"[i18n] allow translating docsearch labels","2023-01-25T00:04:21Z","https://github.com/vuejs/vitepress/issues/1381",0.697497,{"description":3098,"labels":3099,"number":3100,"owner":3021,"repository":3022,"state":3023,"title":3101,"updated_at":3102,"url":3103,"score":3104},"How to use global search without algolia?\r\nhttps://vitepress.vuejs.org/guide/theme-search\r\nThis link has no description",[],1444,"How to use global search without algolia?","2023-01-21T14:25:13Z","https://github.com/vuejs/vitepress/issues/1444",0.6979182,{"description":3106,"labels":3107,"number":3111,"owner":3021,"repository":3022,"state":3023,"title":3112,"updated_at":3113,"url":3114,"score":3115},"### 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.",[3108],{"name":3109,"color":3110},"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.6983768,["Reactive",3117],{},["Set"],["ShallowReactive",3120],{"$fTRc1wZytZ_XrK4EfJfei_Sz-An4H4Yy6syhVxH_PVJc":-1,"$f4NbFLF3DkAUIzpztGwcGFQ1n4bkNZikvCLbLBFVEf8E":-1},"/vuejs/vitepress/316"]