Update all documentation buttons (#30163)

This commit is contained in:
Joshen Lim authored and GitHub committed 2024-10-31 13:58:17 +08:00
1 parent 996f01fdd6
commit 585477752a
70 files changed
+916 -1649

No files matched your search

@@ -23,6 +23,7 @@ import { useIsAPIDocsSidePanelEnabled } from '../App/FeaturePreview/FeaturePrevi
import { navigateToSection } from './Content/Content.utils'
import { DOCS_RESOURCE_CONTENT } from './ProjectAPIDocs.constants'
import { ChevronLeft, Code, ExternalLink } from 'lucide-react'
import { DocsButton } from 'components/ui/DocsButton'
const SecondLevelNav = () => {
const { ref } = useParams()
@@ -155,17 +156,7 @@ const SecondLevelNav = () => {
<p className="text-xs !leading-normal">
Head over to our docs site for the full API documentation.
</p>
<Button
asChild
className="!mt-2"
size="tiny"
type="default"
icon={<ExternalLink strokeWidth={1.5} />}
>
<Link href={content[section].docsUrl} target="_blank" rel="noreferrer">
Documentation
</Link>
</Button>
<DocsButton className="!mt-2" href={content[section].docsUrl} />
</AlertDescription_Shadcn_>
</Alert_Shadcn_>
</div>