docs(nxdev): update algolia dependency (#12864)
This commit is contained in:
parent
7e3cafa769
commit
4a5783ac6e
@ -139,6 +139,7 @@ export function AlgoliaSearch({
|
|||||||
searchParameters={{
|
searchParameters={{
|
||||||
facetFilters: ['language:en'],
|
facetFilters: ['language:en'],
|
||||||
hitsPerPage: 100,
|
hitsPerPage: 100,
|
||||||
|
distinct: true,
|
||||||
}}
|
}}
|
||||||
initialQuery={initialQuery}
|
initialQuery={initialQuery}
|
||||||
placeholder="Search documentation"
|
placeholder="Search documentation"
|
||||||
@ -158,7 +159,6 @@ export function AlgoliaSearch({
|
|||||||
return items.map((item, index) => {
|
return items.map((item, index) => {
|
||||||
const a = document.createElement('a');
|
const a = document.createElement('a');
|
||||||
a.href = item.url;
|
a.href = item.url;
|
||||||
|
|
||||||
const hash = a.hash === '#content-wrapper' ? '' : a.hash;
|
const hash = a.hash === '#content-wrapper' ? '' : a.hash;
|
||||||
|
|
||||||
if (item.hierarchy?.lvl0) {
|
if (item.hierarchy?.lvl0) {
|
||||||
|
|||||||
@ -258,7 +258,7 @@
|
|||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@builder.io/partytown": "^0.6.1",
|
"@builder.io/partytown": "^0.6.1",
|
||||||
"@docsearch/react": "^3.2.1",
|
"@docsearch/react": "^3.3.0",
|
||||||
"@headlessui/react": "^1.7.3",
|
"@headlessui/react": "^1.7.3",
|
||||||
"@heroicons/react": "^2.0.12",
|
"@heroicons/react": "^2.0.12",
|
||||||
"@markdoc/markdoc": "0.1.13",
|
"@markdoc/markdoc": "0.1.13",
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user