feat(website): add support for function overloads (#8474)

Co-authored-by: Noel <buechler.noel@outlook.com>
This commit is contained in:
Suneet Tipirneni
2022-08-13 14:14:23 -04:00
committed by GitHub
parent 8e69efde04
commit fd4844ddb9
10 changed files with 114 additions and 39 deletions

View File

@@ -42,6 +42,13 @@ export function DocContainer({
</div>
<div className="min-h-full overflow-y-auto overflow-x-clip px-10 pt-5 pb-10">
<Section iconElement={<VscListSelection />} title="Summary" className="dark:text-white">
{summary ? (
<CommentSection textClassName="text-dark-100 dark:text-gray-300" node={summary} />
) : (
<p className="text-dark-100 dark:text-gray-300">No summary provided.</p>
)}
</Section>
<SyntaxHighlighter
wrapLines
wrapLongLines
@@ -75,13 +82,6 @@ export function DocContainer({
</div>
) : null}
<div className="space-y-10">
<Section iconElement={<VscListSelection />} title="Summary" className="dark:text-white">
{summary ? (
<CommentSection textClassName="text-dark-100 dark:text-gray-300" node={summary} />
) : (
<p className="text-dark-100 dark:text-gray-300">No summary provided.</p>
)}
</Section>
{typeParams?.length ? (
<Section
iconElement={<VscSymbolParameter />}