refactor: docs (#10126)

This commit is contained in:
Noel
2024-02-29 04:37:52 +01:00
committed by GitHub
parent 0f9017ef95
commit 18cce83d80
192 changed files with 8116 additions and 6321 deletions

View File

@@ -0,0 +1,23 @@
import Link from 'next/link';
export async function InheritedFromNode({
node,
packageName,
version,
}: {
readonly node: any;
readonly packageName: string;
readonly version: string;
}) {
return (
<p className="break-words pl-4">
<span className="font-semibold">Inherited from:</span>{' '}
<Link
className="font-mono text-blurple hover:text-blurple-500 dark:hover:text-blurple-300"
href={`/docs/packages/${packageName}/${version}/${node}`}
>
{node.slice(0, node.indexOf(':'))}
</Link>
</p>
);
}