feat(website): add support for source file links (#9048)

Co-authored-by: Noel <buechler.noel@outlook.com>
This commit is contained in:
Suneet Tipirneni
2023-01-12 07:49:11 -05:00
committed by GitHub
parent a580768cda
commit f6506e99c4
32 changed files with 332 additions and 244 deletions

View File

@@ -10,7 +10,7 @@ export interface ObjectHeaderProps {
export function ObjectHeader({ item }: ObjectHeaderProps) {
return (
<>
<Header kind={item.kind} name={item.displayName} />
<Header kind={item.kind} name={item.displayName} sourceURL={item.sourceLocation.fileUrl} />
<SyntaxHighlighter code={item.excerpt.text} />
<SummarySection item={item} />
</>