Composio powers 1000+ toolkits, tool search, context management, authentication, and a sandboxed workbench to help you build AI agents that turn intent into action.
TypeScript agentic-aiagentsaiai-agentsaiagentsdeveloper-toolsfunction-callinggpt-4javascriptjsllmllmopsmcppythonremote-mcp-serverssetypescript
fix(docs): position Copy markdown button at top right
Sushmithamallesh74d57483ff80
diff --git a/docs/app/(home)/docs/[[...slug]]/page.tsx b/docs/app/(home)/docs/[[...slug]]/page.tsxindex f58a60a3d..cee3f56ab 100644--- a/docs/app/(home)/docs/[[...slug]]/page.tsx+++ b/docs/app/(home)/docs/[[...slug]]/page.tsx@@ -22,11 +22,12 @@ export default async function Page(props: PageProps<'/docs/[[...slug]]'>) {return (<DocsPage toc={data.toc} full={data.full} footer={{ enabled: false }} tableOfContentPopover={{ enabled: false }}>- <DocsTitle>{data.title}</DocsTitle>- <DocsDescription>{data.description}</DocsDescription>- <div className="flex items-center gap-2 mt-2 mb-6">+ <div className="flex items-center justify-between mb-2">+ <div className="flex-1" /><CopyPage path={page.url} /></div>+ <DocsTitle>{data.title}</DocsTitle>+ <DocsDescription className="mb-6">{data.description}</DocsDescription><DocsBody><MDXcomponents={getMDXComponents({diff --git a/docs/components/copy-page.tsx b/docs/components/copy-page.tsxindex fee3836fb..32a9f0322 100644--- a/docs/components/copy-page.tsx+++ b/docs/components/copy-page.tsx@@ -36,7 +36,7 @@ export function CopyPage({ path }: CopyPageProps) {<buttononClick={handleCopy}disabled={state === 'loading'}- className="inline-flex items-center gap-1.5 px-3 py-1.5 text-sm font-medium text-fd-muted-foreground hover:text-fd-foreground bg-fd-secondary hover:bg-fd-accent rounded-md transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-orange-500 focus-visible:ring-offset-2 disabled:opacity-50"+ className="inline-flex items-center gap-1.5 text-sm text-fd-muted-foreground hover:text-fd-foreground transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-orange-500 focus-visible:ring-offset-2 disabled:opacity-50"aria-label="Copy page as markdown">{state === 'loading' ? (@@ -46,7 +46,7 @@ export function CopyPage({ path }: CopyPageProps) {) : (<Copy className="w-4 h-4" aria-hidden="true" />)}- {state === 'copied' ? 'Copied!' : 'Copy page'}+ {state === 'copied' ? 'Copied!' : 'Copy markdown'}</button>);}