Skip to content

Commit 49f0c5d

Browse files
committed
Update SDKsPage, removing GitHub button, and directing set up to getting started guides
1 parent ed78277 commit 49f0c5d

File tree

2 files changed

+36
-66
lines changed

2 files changed

+36
-66
lines changed

src/components/SDKsPage/Card/index.tsx

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -26,16 +26,18 @@ const Card = ({ githubRepoURL, setupLink, title, image, text }: CardProps) => {
2626
<p className="ui-text-p3 py-4">{text}</p>
2727
<div className="flex flex-col justify-center gap-2">
2828
<Link to={setupLink} rel="noreferrer" className={cn(btn_sdks, 'ui-button-primary gap-2')}>
29-
Setup <Icon name="icon-gui-arrow-long-right-micro" size="1rem" />
29+
Get started <Icon name="icon-gui-arrow-long-right-micro" size="1rem" />
3030
</Link>
31-
<a
32-
href={githubRepoURL}
33-
target="_blank"
34-
rel="noreferrer"
35-
className={cn(btn_sdks, 'ui-button-secondary gap-2 align-middle')}
36-
>
37-
<span className="relative top-px">GitHub</span> <Icon name="icon-social-github" size="1.125rem" />
38-
</a>
31+
{githubRepoURL && (
32+
<a
33+
href={githubRepoURL}
34+
target="_blank"
35+
rel="noreferrer"
36+
className={cn(btn_sdks, 'ui-button-secondary gap-2 align-middle')}
37+
>
38+
<span className="relative top-px">GitHub</span> <Icon name="icon-social-github" size="1.125rem" />
39+
</a>
40+
)}
3941
</div>
4042
</section>
4143
);

src/components/SDKsPage/data.ts

Lines changed: 25 additions & 57 deletions
Original file line numberDiff line numberDiff line change
@@ -33,155 +33,133 @@ export const data = {
3333
title: 'JavaScript',
3434
text: 'Ably SDK for JavaScript.',
3535
image: { src: js, isWide: false },
36-
githubRepoURL: 'https://github.com/ably/ably-js',
37-
setupLink: 'getting-started/setup?lang=javascript',
36+
setupLink: 'getting-started/javascript',
3837
},
3938
{
4039
title: 'Java',
4140
text: 'Ably SDK for Java.',
4241
image: { src: java, isWide: false },
43-
githubRepoURL: 'https://github.com/ably/ably-java',
44-
setupLink: 'getting-started/setup?lang=java',
42+
setupLink: 'getting-started/java',
4543
},
4644
{
4745
title: 'Python',
4846
text: 'Ably SDK for Python.',
4947
image: { src: python, isWide: false },
50-
githubRepoURL: 'https://github.com/ably/ably-python',
51-
setupLink: 'getting-started/setup?lang=python',
48+
setupLink: 'getting-started/python',
5249
},
5350
{
5451
title: 'React',
5552
text: 'Ably React Hooks package.',
5653
image: { src: react, isWide: false },
57-
githubRepoURL: 'https://github.com/ably/ably-js',
58-
setupLink: 'getting-started/react-hooks',
54+
setupLink: 'getting-started/react',
5955
},
6056
{
6157
title: 'C#.NET',
6258
text: 'Ably SDK for C#.NET.',
6359
image: { src: csharp, isWide: false },
64-
githubRepoURL: 'https://github.com/ably/ably-dotnet',
65-
setupLink: 'getting-started/setup?lang=csharp',
60+
setupLink: 'getting-started/dotnet',
6661
},
6762
{
6863
title: 'Go',
6964
text: 'Ably SDK for Go.',
7065
image: { src: go, isWide: false },
71-
githubRepoURL: 'https://github.com/ably/ably-go',
72-
setupLink: 'getting-started/setup?lang=go',
66+
setupLink: 'getting-started/go',
7367
},
7468
{
7569
title: 'Node.js',
7670
text: 'Ably SDK for Node.js.',
7771
image: { src: nodejs, isWide: false },
78-
githubRepoURL: 'https://github.com/ably/ably-js',
79-
setupLink: 'getting-started/setup?lang=nodejs',
72+
setupLink: 'getting-started/node',
8073
},
8174
{
8275
title: 'Ruby',
8376
text: 'Ably SDK for Ruby.',
8477
image: { src: ruby, isWide: false },
85-
githubRepoURL: 'https://github.com/ably/ably-ruby',
86-
setupLink: 'getting-started/setup?lang=ruby',
78+
setupLink: 'getting-started/ruby',
8779
},
8880
{
8981
title: 'Swift',
9082
text: 'Ably SDK for Swift.',
9183
image: { src: swift, isWide: false },
92-
githubRepoURL: 'https://github.com/ably/ably-cocoa',
93-
setupLink: 'getting-started/setup?lang=swift',
84+
setupLink: 'getting-started/swift',
9485
},
9586
{
9687
title: 'Objective-C',
9788
text: 'Ably SDK for Objective-C.',
9889
image: { src: objectivec, isWide: false },
99-
githubRepoURL: 'https://github.com/ably/ably-cocoa',
100-
setupLink: 'getting-started/setup?lang=objc',
90+
setupLink: 'getting-started/objective-c',
10191
},
10292
{
10393
title: 'Flutter',
10494
text: 'Ably SDK for Flutter.',
10595
image: { src: flutter, isWide: false },
106-
githubRepoURL: 'https://github.com/ably/ably-flutter',
107-
setupLink: 'getting-started/setup?lang=flutter',
96+
setupLink: 'getting-started/flutter',
10897
},
10998
{
11099
title: 'PHP',
111100
text: 'Ably SDK for PHP.',
112101
image: { src: php, isWide: false },
113-
githubRepoURL: 'https://github.com/ably/ably-php',
114-
setupLink: 'getting-started/setup?lang=php',
102+
setupLink: 'getting-started/php',
115103
},
116104
{
117105
title: 'PHP Laravel',
118106
text: 'Ably SDK for PHP Laravel.',
119107
image: { src: laravel, isWide: false },
120-
githubRepoURL: 'https://github.com/ably/ably-php#laravel-realtime-broadcasting',
121-
setupLink: 'https://github.com/ably/ably-php#laravel-realtime-broadcasting',
108+
setupLink: 'getting-started/laravel',
122109
},
123110
{
124111
title: 'Android',
125112
text: 'Ably SDK for Android.',
126113
image: { src: android, isWide: false },
127-
githubRepoURL: 'https://github.com/ably/ably-java',
128-
setupLink: 'getting-started/setup?lang=java',
114+
setupLink: 'getting-started/kotlin',
129115
},
130116
{
131117
title: 'Kotlin',
132118
text: 'Ably SDK for Kotlin.',
133119
image: { src: kotlin, isWide: false },
134-
githubRepoURL: 'https://github.com/ably/ably-java',
135-
setupLink: 'getting-started/setup?lang=java',
120+
setupLink: 'getting-started/kotlin',
136121
},
137122
{
138123
title: 'Unity',
139124
text: 'Ably SDK for Unity.',
140125
image: { src: unity, isWide: false },
141-
githubRepoURL: 'https://github.com/ably/ably-dotnet',
142126
setupLink: 'https://github.com/ably/ably-dotnet/blob/main/unity/README.md',
143127
},
144128
{
145129
title: 'Xamarin',
146130
text: 'Ably SDK for Xamarin.',
147131
image: { src: xamarin, isWide: false },
148-
githubRepoURL: 'https://github.com/ably/ably-dotnet',
149-
setupLink: 'getting-started/setup?lang=csharp',
132+
setupLink: 'getting-started/dotnet',
150133
},
151134
{
152135
title: 'NativeScript',
153136
text: 'Ably SDK for NativeScript.',
154137
image: { src: nativescript, isWide: false },
155-
githubRepoURL: 'https://github.com/ably/ably-js-nativescript',
156138
setupLink: 'https://github.com/ably/ably-js-nativescript#how-to-use-this-library',
157139
},
158140
{
159141
title: 'React Native',
160142
text: 'Ably SDK for React Native.',
161143
image: { src: react, isWide: false },
162-
githubRepoURL: 'https://github.com/ably/ably-js',
163-
setupLink: 'getting-started/react-hooks',
144+
setupLink: 'getting-started/react-native',
164145
},
165146
{
166147
title: 'Cordova',
167148
text: 'Ably SDK for Cordova.',
168149
image: { src: cordova, isWide: false },
169-
githubRepoURL: 'https://github.com/ably/ably-js',
170-
setupLink: 'getting-started/setup?lang=javascript',
150+
setupLink: 'getting-started/javascript',
171151
},
172152
{
173153
title: 'Clojure',
174154
text: 'Ably SDK for Clojure.',
175155
image: { src: clojure, isWide: false },
176-
githubRepoURL: 'https://github.com/ably/ably-java',
177-
setupLink: 'getting-started/setup?lang=java',
156+
setupLink: 'getting-started/java',
178157
},
179158
{
180159
title: 'Scala',
181160
text: 'Ably SDK for Scala.',
182161
image: { src: scala, isWide: false },
183-
githubRepoURL: 'https://github.com/ably/ably-java',
184-
setupLink: 'getting-started/setup?lang=java',
162+
setupLink: 'getting-started/java',
185163
},
186164
],
187165
},
@@ -192,14 +170,12 @@ export const data = {
192170
title: 'JavaScript',
193171
text: 'Ably Spaces SDK for JavaScript.',
194172
image: { src: js, isWide: false },
195-
githubRepoURL: 'https://github.com/ably/spaces',
196173
setupLink: 'spaces/setup',
197174
},
198175
{
199176
title: 'React',
200177
text: 'Ably Spaces React Hooks package.',
201178
image: { src: react, isWide: false },
202-
githubRepoURL: 'https://github.com/ably/spaces',
203179
setupLink: 'spaces/react',
204180
},
205181
],
@@ -211,29 +187,25 @@ export const data = {
211187
title: 'JavaScript',
212188
text: 'Ably Chat SDK for JavaScript.',
213189
image: { src: js, isWide: false },
214-
githubRepoURL: 'https://github.com/ably/ably-chat-js',
215-
setupLink: 'chat/setup?lang=javascript',
190+
setupLink: 'chat/getting-started/javascript',
216191
},
217192
{
218193
title: 'React',
219194
text: 'Ably Chat React Hooks package.',
220195
image: { src: react, isWide: false },
221-
githubRepoURL: 'https://github.com/ably/ably-chat-js',
222-
setupLink: 'chat/setup?lang=react',
196+
setupLink: 'chat/getting-started/react',
223197
},
224198
{
225199
title: 'Swift',
226200
text: 'Ably Chat SDK for Swift.',
227201
image: { src: swift, isWide: false },
228-
githubRepoURL: 'https://github.com/ably/ably-chat-swift',
229-
setupLink: 'chat/setup?lang=swift',
202+
setupLink: 'chat/getting-started/swift',
230203
},
231204
{
232205
title: 'Kotlin',
233206
text: 'Ably Chat SDK for Kotlin.',
234207
image: { src: kotlin, isWide: false },
235-
githubRepoURL: 'https://github.com/ably/ably-chat-kotlin',
236-
setupLink: 'chat/setup?lang=kotlin',
208+
setupLink: 'chat/getting-started/kotlin',
237209
},
238210
],
239211
},
@@ -244,21 +216,18 @@ export const data = {
244216
title: 'JavaScript',
245217
text: 'LiveObjects plugin for JavaScript.',
246218
image: { src: js, isWide: false },
247-
githubRepoURL: 'https://github.com/ably/ably-js',
248219
setupLink: 'liveobjects/quickstart/javascript',
249220
},
250221
{
251222
title: 'Swift',
252223
text: 'LiveObjects plugin for Swift.',
253224
image: { src: swift, isWide: false },
254-
githubRepoURL: 'https://github.com/ably/ably-liveobjects-swift-plugin',
255225
setupLink: 'liveobjects/quickstart/swift',
256226
},
257227
{
258228
title: 'Java',
259229
text: 'LiveObjects plugin for Java.',
260230
image: { src: java, isWide: false },
261-
githubRepoURL: 'https://github.com/ably/ably-java/tree/main/liveobjects',
262231
setupLink: 'liveobjects/quickstart/java',
263232
},
264233
],
@@ -270,8 +239,7 @@ export const data = {
270239
title: 'JavaScript',
271240
text: 'Ably Models SDK for JavaScript.',
272241
image: { src: js, isWide: false },
273-
githubRepoURL: 'https://github.com/ably-labs/models',
274-
setupLink: 'livesync/postgres/models',
242+
setupLink: 'livesync/postgres/quickstart',
275243
},
276244
],
277245
},

0 commit comments

Comments
 (0)