Skip to content

Commit 226afe9

Browse files
committed
improve search results box
1 parent 07eb068 commit 226afe9

File tree

5 files changed

+286
-53
lines changed

5 files changed

+286
-53
lines changed

package-lock.json

Lines changed: 222 additions & 36 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
"@babel/generator": "^7.24.7",
2929
"@babel/parser": "^7.24.7",
3030
"@babel/traverse": "^7.24.7",
31-
"@docsearch/react": "^3.9.0",
31+
"@docsearch/react": "^4.3.1",
3232
"@headlessui/react": "^2.2.4",
3333
"@node-cli/static-server": "^3.1.4",
3434
"@react-router/node": "^7.8.1",
@@ -76,4 +76,4 @@
7676
"vite-plugin-devtools-json": "^1.0.0",
7777
"vite-plugin-env-compatible": "^2.0.1"
7878
}
79-
}
79+
}

src/bindings/DocSearch.res

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@ type docSearchHit = {
2727
@as("type") type_: contentType,
2828
anchor: Nullable.t<string>,
2929
hierarchy: hierarchy,
30+
// Additional field for deprecation information
31+
deprecated: option<string>,
3032
// NOTE: docsearch need these two fields to highlight results
3133
_highlightResult: {.},
3234
_snippetResult: {.},

0 commit comments

Comments
 (0)