Skip to content

Commit 204fd96

Browse files
authored
Doc changes (#477)
* Arcade Docs Navigation Bar Edits * Use exact versions * Remove the logic for the button at the top of the sidebar * Update pnpm-lock.yaml
1 parent 10d2f4e commit 204fd96

File tree

5 files changed

+726
-707
lines changed

5 files changed

+726
-707
lines changed

app/en/_meta.tsx

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -26,11 +26,6 @@ const meta: MetaRecord = {
2626
title: "API Reference",
2727
href: "https://reference.arcade.dev/",
2828
},
29-
status: {
30-
type: "page",
31-
title: "Status",
32-
href: "https://status.arcade.dev/",
33-
},
3429
};
3530

3631
export default meta;

app/en/home/_meta.tsx

Lines changed: 32 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,40 +1,40 @@
1-
import { BadgeHelp, Home } from "lucide-react";
1+
import { BadgeHelp, Globe, HeartPulse, Home } from "lucide-react";
22
import type { MetaRecord } from "nextra";
33

4+
function TitleWithIcon({
5+
icon: Icon,
6+
children,
7+
}: {
8+
icon: React.ComponentType<{ className?: string }>;
9+
children: React.ReactNode;
10+
}) {
11+
return (
12+
<span className="flex items-center gap-2 font-medium">
13+
<Icon className="size-4" />
14+
{children}
15+
</span>
16+
);
17+
}
18+
419
export const meta: MetaRecord = {
520
"*": {
621
theme: {
722
copyPage: true,
823
},
924
},
1025
index: {
11-
title: (
12-
<span className="flex items-center gap-2 font-medium">
13-
<Home className="size-4" />
14-
Home
15-
</span>
16-
),
26+
title: <TitleWithIcon icon={Home}>Home</TitleWithIcon>,
1727
theme: {
1828
breadcrumb: false,
1929
layout: "full",
2030
toc: false,
2131
copyPage: false,
2232
},
2333
},
24-
"contact-us": {
25-
title: (
26-
<span className="flex items-center gap-2 font-medium">
27-
<BadgeHelp className="size-4" />
28-
Contact us
29-
</span>
30-
),
31-
href: "/contact-us",
32-
// theme: {
33-
// breadcrumb: false,
34-
// pagination: false,
35-
// },
34+
arcade: {
35+
title: <TitleWithIcon icon={Globe}>Arcade.dev</TitleWithIcon>,
36+
href: "https://arcade.dev",
3637
},
37-
3838
"-- Getting Started": {
3939
type: "separator",
4040
title: "Using Arcade",
@@ -135,6 +135,18 @@ export const meta: MetaRecord = {
135135
"registry-early-access": {
136136
title: "Registry Early Access",
137137
},
138+
"-- Resources": {
139+
type: "separator",
140+
title: "Resources",
141+
},
142+
"contact-us": {
143+
title: <TitleWithIcon icon={BadgeHelp}>Contact us</TitleWithIcon>,
144+
href: "/contact-us",
145+
},
146+
status: {
147+
title: <TitleWithIcon icon={HeartPulse}>Status</TitleWithIcon>,
148+
href: "https://status.arcade.dev/",
149+
},
138150
};
139151

140152
export default meta;

app/globals.css

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,3 +60,15 @@ code {
6060
text-wrap: pretty;
6161
white-space: pre-wrap;
6262
}
63+
64+
/* Position search next to logo */
65+
nav > a[aria-label="Home page"] {
66+
order: -2;
67+
margin-inline-end: 0 !important;
68+
}
69+
70+
nav > div:has(.nextra-search) {
71+
order: -1;
72+
margin-inline-start: 1rem;
73+
margin-inline-end: auto;
74+
}

package.json

Lines changed: 43 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -31,53 +31,53 @@
3131
},
3232
"homepage": "https://arcade.dev/",
3333
"dependencies": {
34-
"@arcadeai/design-system": "^3.2.0",
35-
"@next/third-parties": "^15.5.4",
36-
"@ory/client": "^1.22.3",
37-
"@theguild/remark-mermaid": "^0.3.0",
38-
"@uidotdev/usehooks": "^2.4.1",
39-
"lucide-react": "^0.544.0",
40-
"mdast-util-to-string": "^4.0.0",
41-
"motion": "^12.23.22",
42-
"next": "^15.5.4",
43-
"next-sitemap": "^4.2.3",
44-
"nextra": "^4.6.0",
45-
"nextra-theme-docs": "^4.6.0",
46-
"posthog-js": "^1.269.1",
47-
"react": "^19.2.0",
48-
"react-dom": "^19.2.0",
49-
"react-hook-form": "7.63.0",
50-
"react-syntax-highlighter": "^15.6.6",
51-
"tailwindcss-animate": "^1.0.7",
52-
"zustand": "^5.0.8",
53-
"unist-util-visit": "^5.0.0",
54-
"unist-util-visit-parents": "^6.0.1"
34+
"@arcadeai/design-system": "3.2.0",
35+
"@next/third-parties": "15.5.4",
36+
"@ory/client": "1.22.4",
37+
"@theguild/remark-mermaid": "0.3.0",
38+
"@uidotdev/usehooks": "2.4.1",
39+
"lucide-react": "0.545.0",
40+
"mdast-util-to-string": "4.0.0",
41+
"motion": "12.23.22",
42+
"next": "15.5.4",
43+
"next-sitemap": "4.2.3",
44+
"nextra": "4.6.0",
45+
"nextra-theme-docs": "4.6.0",
46+
"posthog-js": "1.272.0",
47+
"react": "19.2.0",
48+
"react-dom": "19.2.0",
49+
"react-hook-form": "7.64.0",
50+
"react-syntax-highlighter": "15.6.6",
51+
"tailwindcss-animate": "1.0.7",
52+
"unist-util-visit": "5.0.0",
53+
"unist-util-visit-parents": "6.0.1",
54+
"zustand": "5.0.8"
5555
},
5656
"devDependencies": {
5757
"@biomejs/biome": "2.2.5",
58-
"@tailwindcss/postcss": "^4.1.14",
59-
"@types/mdast": "^4.0.4",
60-
"@types/mdx": "^2.0.13",
61-
"@types/node": "24.6.2",
62-
"@types/react": "^19.2.0",
63-
"@types/react-dom": "^19.2.0",
64-
"@types/react-syntax-highlighter": "^15.5.13",
65-
"@types/unist": "^3.0.3",
66-
"commander": "^14.0.1",
67-
"fast-glob": "^3.3.3",
68-
"husky": "^9.1.7",
69-
"lint-staged": "^16.2.3",
70-
"next-validate-link": "^1.6.3",
71-
"openai": "^6.0.1",
72-
"ora": "^9.0.0",
73-
"pagefind": "^1.4.0",
74-
"picocolors": "^1.1.1",
75-
"postcss": "^8.5.6",
76-
"tailwindcss": "^4.1.14",
58+
"@tailwindcss/postcss": "4.1.14",
59+
"@types/mdast": "4.0.4",
60+
"@types/mdx": "2.0.13",
61+
"@types/node": "24.7.0",
62+
"@types/react": "19.2.1",
63+
"@types/react-dom": "19.2.0",
64+
"@types/react-syntax-highlighter": "15.5.13",
65+
"@types/unist": "3.0.3",
66+
"commander": "14.0.1",
67+
"fast-glob": "3.3.3",
68+
"husky": "9.1.7",
69+
"lint-staged": "16.2.3",
70+
"next-validate-link": "1.6.3",
71+
"openai": "6.2.0",
72+
"ora": "9.0.0",
73+
"pagefind": "1.4.0",
74+
"picocolors": "1.1.1",
75+
"postcss": "8.5.6",
76+
"tailwindcss": "4.1.14",
7777
"typescript": "5.9.3",
78-
"ultracite": "5.5.0",
79-
"vitest": "^3.2.4",
80-
"zod": "^4.1.11"
78+
"ultracite": "5.5.1",
79+
"vitest": "3.2.4",
80+
"zod": "4.1.12"
8181
},
8282
"engines": {
8383
"node": "22.x",

0 commit comments

Comments
 (0)