Skip to content

Commit 1b245e2

Browse files
authored
feat: upgrade docsearch version (#441)
1 parent ea6cb00 commit 1b245e2

File tree

3 files changed

+122
-104
lines changed

3 files changed

+122
-104
lines changed

package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -69,8 +69,8 @@
6969
"url": "https://github.com/vuejs/vitepress/issues"
7070
},
7171
"dependencies": {
72-
"@docsearch/css": "^1.0.0-alpha.28",
73-
"@docsearch/js": "^1.0.0-alpha.28",
72+
"@docsearch/css": "^3.0.0-alpha.41",
73+
"@docsearch/js": "^3.0.0-alpha.41",
7474
"@vitejs/plugin-vue": "^1.9.0",
7575
"prismjs": "^1.25.0",
7676
"vite": "^2.6.5",

pnpm-lock.yaml

+114-97
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/client/theme-default/components/AlgoliaSearchBox.vue

+6-5
Original file line numberDiff line numberDiff line change
@@ -86,17 +86,17 @@ function initialize(userOptions: any) {
8686
}),
8787
8888
navigator: {
89-
navigate: ({ suggestionUrl }: { suggestionUrl: string }) => {
89+
navigate: ({ itemUrl }: { itemUrl: string }) => {
9090
const { pathname: hitPathname } = new URL(
91-
window.location.origin + suggestionUrl
91+
window.location.origin + itemUrl
9292
)
9393
9494
// Router doesn't handle same-page navigation so we use the native
9595
// browser location API for anchor navigation
9696
if (route.path === hitPathname) {
97-
window.location.assign(window.location.origin + suggestionUrl)
97+
window.location.assign(window.location.origin + itemUrl)
9898
} else {
99-
router.go(suggestionUrl)
99+
router.go(itemUrl)
100100
}
101101
}
102102
},
@@ -148,7 +148,8 @@ function initialize(userOptions: any) {
148148
router.go(relativeHit)
149149
},
150150
children
151-
}
151+
},
152+
__v: null
152153
}
153154
}
154155
})

0 commit comments

Comments
 (0)