mirror of
https://github.com/NVIDIA/OpenShell.git
synced 2026-10-16 05:20:22 +08:00
Remove the legacy Sphinx pipeline and make docs/ the single source of truth so the published site matches the repository layout.
27 lines
674 B
TypeScript
27 lines
674 B
TypeScript
/**
|
|
* Badge links for GitHub, License, PyPI, etc.
|
|
* Uses a flex wrapper to display badges horizontally and hides Fern's
|
|
* external-link icon that otherwise stacks under each badge image.
|
|
* Requires the `.badge-links` CSS rule from main.css.
|
|
*/
|
|
export type BadgeItem = {
|
|
href: string;
|
|
src: string;
|
|
alt: string;
|
|
};
|
|
|
|
export function BadgeLinks({ badges = [] }: { badges?: BadgeItem[] }) {
|
|
if (badges.length === 0) {
|
|
return null;
|
|
}
|
|
return (
|
|
<div className="badge-links">
|
|
{badges.map((b) => (
|
|
<a key={b.href} href={b.href} target="_blank" rel="noreferrer">
|
|
<img src={b.src} alt={b.alt} />
|
|
</a>
|
|
))}
|
|
</div>
|
|
);
|
|
}
|