Skip to content

Commit 19927d7

Browse files
committed
Fix navigation order on docs
1 parent 5233b6e commit 19927d7

1 file changed

Lines changed: 14 additions & 22 deletions

File tree

docs/src/lib/navigation-utils.ts

Lines changed: 14 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { BookOpen, FlaskConical, Hammer, Puzzle, type LucideIcon } from 'lucide-react';
1+
import { Book, Code, Layers, Zap, type LucideIcon } from 'lucide-react';
22
import { getSmartPlatformRedirect } from './platform-navigation';
33
import type { Platform } from './platform-utils';
44

@@ -67,33 +67,25 @@ export function generateNavLinks(platform: Platform): NavLink[] {
6767
const baseLinks = [
6868
{
6969
href: `/docs/${platform}/overview`,
70-
label: "Documentation",
71-
icon: BookOpen
70+
label: "Guides",
71+
icon: Book
7272
},
73+
...platformSupportsSDK(platform) ? [{
74+
href: `/docs/${platform}/sdk`,
75+
label: "SDK",
76+
icon: Code
77+
}] : [],
78+
...platformSupportsComponents(platform) ? [{
79+
href: `/docs/${platform}/components`,
80+
label: "Components",
81+
icon: Layers
82+
}] : [],
7383
{
7484
href: "/api/overview",
7585
label: "API Reference",
76-
icon: FlaskConical
86+
icon: Zap
7787
}
7888
];
7989

80-
// Add Components link only for platforms that support React components
81-
if (platformSupportsComponents(platform)) {
82-
baseLinks.push({
83-
href: `/docs/${platform}/components`,
84-
label: "Components",
85-
icon: Puzzle
86-
});
87-
}
88-
89-
// Add SDK link only for platforms that support SDK
90-
if (platformSupportsSDK(platform)) {
91-
baseLinks.push({
92-
href: `/docs/${platform}/sdk`,
93-
label: "SDK",
94-
icon: Hammer
95-
});
96-
}
97-
9890
return baseLinks;
9991
}

0 commit comments

Comments
 (0)