feat: new docs ia (#29364)

New Docs IA, mainly splitting up the miscellaneous bucket that is Platform into multiple sections
This commit is contained in:
Charis
2024-10-09 12:38:34 -04:00
committed by GitHub
parent 7f0a3de733
commit 41d924b074
75 changed files with 1827 additions and 842 deletions

View File

@@ -34,8 +34,15 @@ const ContentAccordionLink = React.memo(function ContentAccordionLink(props: any
const activeItemRef = useRef<HTMLLIElement>(null)
const LinkContainer = (props) => {
const isExternal = props.url.startsWith('https://')
return (
<Link href={props.url} className={props.className}>
<Link
href={props.url}
className={props.className}
target={isExternal ? '_blank' : undefined}
rel={isExternal ? 'noopener noreferrer' : undefined}
>
{props.children}
</Link>
)