Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion app/_components/analytics.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
import { cn } from "@arcadeai/design-system/lib/utils";
import Link from "next/link";
import { usePostHog } from "posthog-js/react";
import { getDashboardUrl } from "./dashboard-link";

export type LinkClickedProps = {
linkLocation: string;
Expand All @@ -25,7 +26,7 @@ export const SignupLink = ({
return (
<Link
className={cn("text-primary", className)}
href={"https://api.arcade.dev/signup"}
href={getDashboardUrl("register")}
onClick={() => trackSignupClick(linkLocation)}
>
{children}
Expand Down
19 changes: 19 additions & 0 deletions app/_components/dashboard-link.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
import Link from "next/link";

const DASHBOARD_BASE_URL =
process.env.NEXT_PUBLIC_DASHBOARD_URL || "https://api.arcade.dev";

export const getDashboardUrl = (path = "") =>
path
? `${DASHBOARD_BASE_URL}/dashboard/${path}`
: `${DASHBOARD_BASE_URL}/dashboard`;

type DashboardLinkProps = {
path?: string;
children?: React.ReactNode;
};

export const DashboardLink = ({
path = "",
children = "Arcade account",
}: DashboardLinkProps) => <Link href={getDashboardUrl(path)}>{children}</Link>;
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ Configure your MCP clients to call tools from your MCP server.

<GuideOverview.Prerequisites>

- [Arcade account](https://api.arcade.dev/signup)
- <DashboardLink path="register" />
- [Arcade CLI](/home/arcade-cli)
- [An MCP Server](/home/build-tools/create-a-mcp-server)
- [uv package manager](https://docs.astral.sh/uv/getting-started/installation/)
Expand Down
2 changes: 1 addition & 1 deletion app/en/home/build-tools/create-a-tool-with-auth/page.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ Create and use an MCP tool that requires OAuth to access Reddit, prompting users

<GuideOverview.Prerequisites>

- [Arcade account](https://api.arcade.dev/signup)
- <DashboardLink path="register" />
- [uv package manager](https://docs.astral.sh/uv/getting-started/installation/)
- [Create an MCP Server](/home/build-tools/create-a-mcp-server)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ Build an MCP tool that can read a secret from Context and return a masked confir

<GuideOverview.Prerequisites>

- [Arcade account](https://api.arcade.dev/signup)
- <DashboardLink path="register" />
- [Arcade CLI](/home/quickstart)
- [An MCP Server](/home/build-tools/create-a-mcp-server)
- [uv package manager](https://docs.astral.sh/uv/getting-started/installation/)
Expand Down
2 changes: 1 addition & 1 deletion app/en/home/build-tools/organize-mcp-server-tools/page.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ Learn best practices for organizing your MCP server and tools, how to import too

<GuideOverview.Prerequisites>

- [Arcade account](https://api.arcade.dev/signup)
- <DashboardLink path="register" />
- [An MCP Server](/home/build-tools/create-a-mcp-server)
- [uv package manager](https://docs.astral.sh/uv/getting-started/installation/)

Expand Down
2 changes: 1 addition & 1 deletion app/en/home/deployment/on-prem-mcp/page.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ An on-premises MCP server deployment allows you to execute tools in your own env

<GuideOverview.Prerequisites>

- [Arcade account](https://api.arcade.dev/signup)
- <DashboardLink path="register" />
- [Arcade CLI](/home/quickstart)
- [uv package manager](https://docs.astral.sh/uv/getting-started/installation/)

Expand Down
2 changes: 1 addition & 1 deletion app/en/home/langchain/use-arcade-with-langchain/page.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ Learn how to integrate Arcade tools using LangChain primitives

<GuideOverview.Prerequisites>

- [Arcade account](https://api.arcade.dev/signup)
- <DashboardLink path="register" />
- The [`bun` runtime](https://bun.com/)

</GuideOverview.Prerequisites>
Expand Down
2 changes: 1 addition & 1 deletion app/en/home/serve-tools/arcade-deploy/page.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ This guide shows you how to deploy your MCP Server with Arcade Deploy.

<GuideOverview.Prerequisites>

- [Arcade account](https://api.arcade.dev/signup)
- <DashboardLink path="register" />
- [uv package manager](https://docs.astral.sh/uv/getting-started/installation/)
- [Create an MCP Server](/home/build-tools/create-a-mcp-server)

Expand Down
3 changes: 2 additions & 1 deletion app/layout.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import { getDictionary } from "@/_dictionaries/get-dictionary";
import { SignupLink } from "@/app/_components/analytics";
import CustomLayout from "@/app/_components/custom-layout";
import { getDashboardUrl } from "@/app/_components/dashboard-link";
import { Footer } from "@/app/_components/footer";
import { Logo } from "@/app/_components/logo";
import NavBarButton from "@/app/_components/nav-bar-button";
Expand Down Expand Up @@ -139,7 +140,7 @@ export default async function RootLayout({
text="Sign Up"
/>
</SignupLink>
<Link href="https://api.arcade.dev/dashboard/playground/chat">
<Link href={getDashboardUrl("playground/chat")}>
<NavBarButton text="Dashboard" variant="outline" />
</Link>
</Navbar>
Expand Down
2 changes: 2 additions & 0 deletions mdx-components.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import type { UseMDXComponents } from "nextra/mdx-components";
import { useMDXComponents as getDocsMdxComponents } from "nextra-theme-docs";
import CustomPre from "./app/_components/custom-pre";
import { DashboardLink } from "./app/_components/dashboard-link";
import { GlossaryTerm } from "./app/_components/glossary-term";
import { GuideOverview } from "./app/_components/guide-overview";

Expand All @@ -12,6 +13,7 @@ export const useMDXComponents: UseMDXComponents<typeof docsComponents> = <T>(
components?: T
) => ({
...docsComponents,
DashboardLink,
GlossaryTerm,
GuideOverview,
...components,
Expand Down