From 991085ced4cf71b0b4623e39dc9cf8d13d385d20 Mon Sep 17 00:00:00 2001 From: Thomas Date: Mon, 6 Oct 2025 17:21:39 -0400 Subject: [PATCH 1/6] Remove preview --- website/assets/js/search.tsx | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/website/assets/js/search.tsx b/website/assets/js/search.tsx index 7aa10b54be51c..6f5203d871da2 100644 --- a/website/assets/js/search.tsx +++ b/website/assets/js/search.tsx @@ -100,12 +100,7 @@ const Result = ({ hit, components, category }) => { {isRootPage && }

- {hit.content && ( - - )} - {!hit.content && ( - {hit.document.itemUrl} - )} + {hit.document.itemUrl}

From ca5d7beea8b06cb2e2a9bc7e7ff69c5a429c5b6e Mon Sep 17 00:00:00 2001 From: Thomas Date: Mon, 6 Oct 2025 17:21:41 -0400 Subject: [PATCH 2/6] Revert "Remove preview" This reverts commit 991085ced4cf71b0b4623e39dc9cf8d13d385d20. --- website/assets/js/search.tsx | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/website/assets/js/search.tsx b/website/assets/js/search.tsx index 6f5203d871da2..7aa10b54be51c 100644 --- a/website/assets/js/search.tsx +++ b/website/assets/js/search.tsx @@ -100,7 +100,12 @@ const Result = ({ hit, components, category }) => { {isRootPage && }

- {hit.document.itemUrl} + {hit.content && ( + + )} + {!hit.content && ( + {hit.document.itemUrl} + )}

From 880321225ef4c37896fe3b40aa465373b8e30858 Mon Sep 17 00:00:00 2001 From: Thomas Date: Mon, 6 Oct 2025 17:28:30 -0400 Subject: [PATCH 3/6] Revert "chore(website): show both author name and handle (#23948)" This reverts commit a5fb0ecc511ad9fde1c79a68074f641bb916f84c. --- website/layouts/partials/author-with-avatar.html | 16 +--------------- 1 file changed, 1 insertion(+), 15 deletions(-) diff --git a/website/layouts/partials/author-with-avatar.html b/website/layouts/partials/author-with-avatar.html index a19d5a1c8ecdf..ff366ff31f4fa 100644 --- a/website/layouts/partials/author-with-avatar.html +++ b/website/layouts/partials/author-with-avatar.html @@ -3,20 +3,6 @@ {{ $handle := . }} {{ $img := printf "https://github.com/%s.png" $handle }} {{ $link := printf "https://github.com/%s" $handle }} - {{ $apiUrl := printf "https://api.github.com/users/%s" $handle }} - {{ $name := $handle }} - {{ $displayName := $handle }} - {{ with resources.GetRemote $apiUrl }} - {{ with .Err }} - {{/* Silently fall back to GitHub handle on error */}} - {{ else }} - {{ $data := . | transform.Unmarshal }} - {{ if $data.name }} - {{ $name = $data.name }} - {{ $displayName = printf "%s (%s)" $data.name $handle }} - {{ end }} - {{ end }} - {{ end }} Author avatar for {{ $handle }} - {{ $displayName }} + {{ $handle }} {{ end }} From d0eb8dd35c7fc36a5da763a1e6ecc7f4164ef47d Mon Sep 17 00:00:00 2001 From: Thomas Date: Tue, 7 Oct 2025 10:07:12 -0400 Subject: [PATCH 4/6] Update tsconfig.json --- website/assets/js/tsconfig.json | 9 +++++++++ website/tsconfig.json | 6 +++++- 2 files changed, 14 insertions(+), 1 deletion(-) create mode 100644 website/assets/js/tsconfig.json diff --git a/website/assets/js/tsconfig.json b/website/assets/js/tsconfig.json new file mode 100644 index 0000000000000..a3b6f63c2ffe1 --- /dev/null +++ b/website/assets/js/tsconfig.json @@ -0,0 +1,9 @@ +{ + "extends": "../../tsconfig.json", + "include": [ + "**/*.ts", + "**/*.tsx", + "**/*.d.ts" + ] +} + diff --git a/website/tsconfig.json b/website/tsconfig.json index 284dcc5fc6b8b..050383230d198 100644 --- a/website/tsconfig.json +++ b/website/tsconfig.json @@ -15,5 +15,9 @@ "typeRoots": ["./node_modules/@types"] }, "exclude": ["node_modules"], - "include": ["**/*.ts"] + "include": [ + "**/*.ts", + "**/*.tsx", + "**/*.d.ts" + ] } From c79eaa3bce265a3dca588959430f9469c151eb31 Mon Sep 17 00:00:00 2001 From: Thomas Date: Tue, 7 Oct 2025 10:07:44 -0400 Subject: [PATCH 5/6] Index newlines --- website/scripts/typesense-index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/website/scripts/typesense-index.ts b/website/scripts/typesense-index.ts index a80f1f343166b..2c5177ceada11 100644 --- a/website/scripts/typesense-index.ts +++ b/website/scripts/typesense-index.ts @@ -110,7 +110,7 @@ async function indexHTMLFiles( tagName: node.tagName, content: $(node) .text() - .replace(/[\n\t]/g, " "), + .replace(/\t/g, " "), }); } From 9d81db7ed15caa3cba53f8751e119966ca920069 Mon Sep 17 00:00:00 2001 From: Thomas Date: Tue, 7 Oct 2025 10:08:04 -0400 Subject: [PATCH 6/6] Set correct whiteSpace style --- website/assets/js/search.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/website/assets/js/search.tsx b/website/assets/js/search.tsx index 7aa10b54be51c..ce8497d140c2b 100644 --- a/website/assets/js/search.tsx +++ b/website/assets/js/search.tsx @@ -101,7 +101,7 @@ const Result = ({ hit, components, category }) => {

{hit.content && ( - + )} {!hit.content && ( {hit.document.itemUrl}