Skip to content

Commit 0782dca

Browse files
committed
document search parameters
1 parent 6c4fc17 commit 0782dca

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,3 +80,11 @@ export async function onGoToSuggestion() {
8080
// some analytics stuff
8181
}
8282
```
83+
84+
### Search parameters
85+
86+
The `query` URL search parameter can be provided to automatically populate and focus the search box. This is useful for adding your VuePress website as a custom search engine in browsers. For example:
87+
88+
```none
89+
https://your-website.com?query=hello+world
90+
```

0 commit comments

Comments
 (0)