docs(nxdev): update algolia dependency (#12864)

This commit is contained in:
Benjamin Cabanes 2022-10-28 11:09:29 -04:00 committed by GitHub
parent 7e3cafa769
commit 4a5783ac6e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 2299 additions and 1802 deletions

View File

@ -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) {

View File

@ -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",

4097
yarn.lock

File diff suppressed because it is too large Load Diff