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} 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/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 }} 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, " "), }); } 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" + ] }