Skip to content

Commit c44608a

Browse files
committed
fix: improve midnight setup docs structure
1 parent 51d33a5 commit c44608a

File tree

9 files changed

+40
-269
lines changed

9 files changed

+40
-269
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
{
22
"title": "Midnight",
3-
"pages": ["setup"]
3+
"pages": ["midnight-setup"]
44
}
File renamed without changes.
File renamed without changes.

apps/docs/content/docs/midnight/getting-started.mdx renamed to apps/docs/content/docs/midnight/midnight-setup/getting-started.mdx

File renamed without changes.
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
---
2+
title: "Overview"
3+
description: "Complete development setup for building Midnight Network dApps"
4+
---
5+
6+
import {linksMidnightSetup} from "@/data/links-midnight";
7+
import Link from "next/link";
8+
import {
9+
Card,
10+
CardDescription,
11+
CardTitle,
12+
} from "@/components/ui/card";
13+
14+
<div className="grid md:grid-cols-2 gap-6 items-stretch">
15+
{linksMidnightSetup.map((card) => (
16+
<Link key={card.title} href={card.link} className="no-underline">
17+
<Card className="h-full text-center hover:border-primary/50 transition-colors px-4 py-8">
18+
<CardTitle className="font-heading">{card.title}</CardTitle>
19+
<CardDescription>{card.desc}</CardDescription>
20+
</Card>
21+
</Link>
22+
))}
23+
</div>
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"title": "Midnight Setup",
3+
"pages": ["index", "getting-started", "api", "wallet", "examples"]
4+
}
File renamed without changes.

apps/docs/content/docs/midnight/setup.mdx

Lines changed: 0 additions & 263 deletions
This file was deleted.

apps/docs/data/links-midnight.ts

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,39 @@
11
export const metaMidnightGettingStarted = {
22
title: "Getting Started",
33
desc: "Install and set up @meshsdk/midnight-setup for building zero-knowledge privacy dApps",
4-
link: "/midnight/getting-started",
4+
link: "/midnight/midnight-setup/getting-started",
55
};
66

77
export const metaMidnightAPI = {
88
title: "Core API Methods",
99
desc: "Complete reference for MidnightSetupAPI methods and provider setup",
10-
link: "/midnight/api",
10+
link: "/midnight/midnight-setup/api",
1111
};
1212

1313
export const metaMidnightWallet = {
1414
title: "Lace Wallet Integration",
1515
desc: "Complete guide for integrating Lace Beta Wallet with Midnight Network dApps",
16-
link: "/midnight/wallet",
16+
link: "/midnight/midnight-setup/wallet",
1717
};
1818

1919
export const metaMidnightExamples = {
2020
title: "Integration Examples",
2121
desc: "React hooks, contract management, and complete dApp examples for Midnight Network",
22-
link: "/midnight/examples",
22+
link: "/midnight/midnight-setup/examples",
2323
};
2424

25+
export const linksMidnightSetup = [
26+
metaMidnightGettingStarted,
27+
metaMidnightAPI,
28+
metaMidnightWallet,
29+
metaMidnightExamples,
30+
];
31+
2532
export const linksMidnight = [
2633
{
2734
title: "Midnight Setup",
2835
desc: "Complete development setup for building Midnight Network dApps",
29-
link: "/midnight/setup"
36+
link: "/midnight/midnight-setup"
3037
}
3138
];
3239

0 commit comments

Comments
 (0)