",[],4802,"配置完 algolia 搜索,检索不出任何内容","2025-06-22T01:00:42Z","https://github.com/vuejs/vitepress/issues/4802",0.683271,{"description":3203,"labels":3204,"number":3206,"owner":3155,"repository":3156,"state":3166,"title":3207,"updated_at":3208,"url":3209,"score":3210},"### 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.",[3205],{"name":3152,"color":3153},2024,"Rebuild search index","2023-03-10T00:04:38Z","https://github.com/vuejs/vitepress/issues/2024",0.6841189,{"description":3212,"labels":3213,"number":3214,"owner":3155,"repository":3156,"state":3166,"title":3215,"updated_at":3216,"url":3217,"score":3218},"\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":3220,"labels":3221,"number":3222,"owner":3155,"repository":3156,"state":3166,"title":3223,"updated_at":3224,"url":3225,"score":3226},"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":3228,"labels":3229,"number":3233,"owner":3155,"repository":3156,"state":3166,"title":3234,"updated_at":3235,"url":3236,"score":3237},"### 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>",[3230],{"name":3231,"color":3232},"theme","0754FB",1381,"[i18n] allow translating docsearch labels","2023-01-25T00:04:21Z","https://github.com/vuejs/vitepress/issues/1381",0.697497,{"description":3239,"labels":3240,"number":3241,"owner":3155,"repository":3156,"state":3166,"title":3242,"updated_at":3243,"url":3244,"score":3245},"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,["Reactive",3247],{},["Set"],["ShallowReactive",3250],{"$fTRc1wZytZ_XrK4EfJfei_Sz-An4H4Yy6syhVxH_PVJc":-1,"$f4NbFLF3DkAUIzpztGwcGFQ1n4bkNZikvCLbLBFVEf8E":-1},"/vuejs/vitepress/316"]