Skip to content

Commit 513939a

Browse files
authored
Get toolkits from the design system. (#468)
* Get toolkits from the design system. * Remove biome ignore and add copy page * Add copy page to our _meta files * fix package.json
1 parent 22cc9cd commit 513939a

File tree

34 files changed

+1553
-2183
lines changed

34 files changed

+1553
-2183
lines changed

app/_components/analytics.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ export const SignupLink = ({
1818

1919
const trackSignupClick = (source: string) => {
2020
posthog?.capture("Signup clicked", {
21-
// biome-ignore lint/style/useNamingConvention: This is ok for PostHog
2221
link_location: source,
2322
});
2423
};

app/_components/dynamic-survey/index.tsx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,6 @@ export default function DynamicSurvey({
3737
return;
3838
}
3939
if (!surveyShown.current) {
40-
// biome-ignore lint/style/useNamingConvention: This is ok for PostHog
4140
posthog?.capture("survey shown", { $survey_id: surveyData.id });
4241
surveyShown.current = true;
4342
}
@@ -51,7 +50,6 @@ export default function DynamicSurvey({
5150

5251
const handleBeforeUnload = () => {
5352
if (currentQuestionIndex < surveyData.questions.length - 1) {
54-
// biome-ignore lint/style/useNamingConvention: This is ok for PostHog
5553
posthog?.capture("survey dismissed", { $survey_id: surveyData.id });
5654
}
5755
};

app/_components/dynamic-survey/utils.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,6 @@ export const createSurveyEventProperties = (
5252
// biome-ignore lint/performance/noAccumulatingSpread: safe and clearer here, small object size
5353
return { ...acc, [key]: formattedResponse };
5454
},
55-
// biome-ignore lint/style/useNamingConvention: This is ok for PostHog
5655
{ $survey_id: surveyId }
5756
);
5857
};

app/_layouts/shared-layout.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ export default async function SharedLayout({
104104
<TranslationBanner dictionary={dictionary} locale={lang} />
105105
)}
106106
<Layout
107-
copyPageButton={false}
107+
copyPageButton={true}
108108
docsRepositoryBase="https://github.com/ArcadeAI/docs"
109109
editLink={dictionary.editPage}
110110
footer={

app/en/_meta.tsx

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
import type { MetaRecord } from "nextra";
22

33
const meta: MetaRecord = {
4+
"*": {
5+
theme: {
6+
copyPage: false,
7+
},
8+
},
49
home: {
510
type: "page",
611
title: "Home",

app/en/home/_meta.tsx

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,11 @@ import { BadgeHelp, Home } from "lucide-react";
22
import type { MetaRecord } from "nextra";
33

44
export const meta: MetaRecord = {
5+
"*": {
6+
theme: {
7+
copyPage: true,
8+
},
9+
},
510
index: {
611
title: (
712
<span className="flex items-center gap-2 font-medium">
@@ -13,6 +18,7 @@ export const meta: MetaRecord = {
1318
breadcrumb: false,
1419
layout: "full",
1520
toc: false,
21+
copyPage: false,
1622
},
1723
},
1824
"contact-us": {

app/en/home/auth-providers/_meta.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ const meta: MetaRecord = {
55
theme: {
66
breadcrumb: true,
77
toc: true,
8+
copyPage: true,
89
},
910
},
1011
index: {

app/en/home/crewai/_meta.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ const meta: MetaRecord = {
55
theme: {
66
breadcrumb: true,
77
toc: true,
8+
copyPage: true,
89
},
910
},
1011
"use-arcade-tools": {

app/en/home/hybrid-deployment/_meta.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ const meta: MetaRecord = {
55
theme: {
66
breadcrumb: true,
77
toc: true,
8+
copyPage: true,
89
},
910
},
1011
"hybrid-worker": {

app/en/home/mastra/_meta.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ const meta: MetaRecord = {
55
theme: {
66
breadcrumb: true,
77
toc: true,
8+
copyPage: true,
89
},
910
},
1011
overview: {

0 commit comments

Comments
 (0)