diff --git a/packages/website/src/components/CodeListing.tsx b/packages/website/src/components/CodeListing.tsx index 35bd70c99..7fd443f91 100644 --- a/packages/website/src/components/CodeListing.tsx +++ b/packages/website/src/components/CodeListing.tsx @@ -30,11 +30,11 @@ export function CodeListing({
{summary}
} + {summary &&{summary}
} {children} diff --git a/packages/website/src/components/DocContainer.tsx b/packages/website/src/components/DocContainer.tsx index 34b9ec940..755f4801c 100644 --- a/packages/website/src/components/DocContainer.tsx +++ b/packages/website/src/components/DocContainer.tsx @@ -1,6 +1,6 @@ import type { ReactNode } from 'react'; import { Prism as SyntaxHighlighter } from 'react-syntax-highlighter'; -import { vs } from 'react-syntax-highlighter/dist/cjs/styles/prism'; +import { vscDarkPlus } from 'react-syntax-highlighter/dist/cjs/styles/prism'; import { HyperlinkedText } from './HyperlinkedText'; import { Section } from './Section'; import { TypeParamTable } from './TypeParamTable'; @@ -20,38 +20,38 @@ export interface DocContainerProps { export function DocContainer({ name, kind, excerpt, summary, typeParams, children, extendsTokens }: DocContainerProps) { return ( <> -
{summary ?? 'No summary provided.'}
+{summary ?? 'No summary provided.'}