Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/components/Layout/mdx/tiles.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ const Tile = ({ title, description, image, link = '/docs' }: TileProps) => {

export const Tiles = ({ children }: { children: TileProps[] }) => {
return (
<div className="grid grid-cols-1 sm:grid-cols-2 gap-4 pb-40">
<div className="grid grid-cols-1 sm:grid-cols-2 gap-4">
{children
.filter((item) => item.title && item.description)
.map((item: TileProps) => (
Expand Down
20 changes: 11 additions & 9 deletions src/components/SDKsPage/Card/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,16 +26,18 @@ const Card = ({ githubRepoURL, setupLink, title, image, text }: CardProps) => {
<p className="ui-text-p3 py-4">{text}</p>
<div className="flex flex-col justify-center gap-2">
<Link to={setupLink} rel="noreferrer" className={cn(btn_sdks, 'ui-button-primary gap-2')}>
Setup <Icon name="icon-gui-arrow-long-right-micro" size="1rem" />
Get started <Icon name="icon-gui-arrow-long-right-micro" size="1rem" />
</Link>
<a
href={githubRepoURL}
target="_blank"
rel="noreferrer"
className={cn(btn_sdks, 'ui-button-secondary gap-2 align-middle')}
>
<span className="relative top-px">GitHub</span> <Icon name="icon-social-github" size="1.125rem" />
</a>
{githubRepoURL && (
<a
href={githubRepoURL}
target="_blank"
rel="noreferrer"
className={cn(btn_sdks, 'ui-button-secondary gap-2 align-middle')}
>
<span className="relative top-px">GitHub</span> <Icon name="icon-social-github" size="1.125rem" />
</a>
)}
</div>
</section>
);
Expand Down
89 changes: 32 additions & 57 deletions src/components/SDKsPage/data.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import js from './images/js.svg';
import java from './images/java.svg';
import python from './images/python.svg';
import react from './images/react.svg';
import reactnative from './images/reactnative.svg';
import csharp from './images/csharp.svg';
import go from './images/go.svg';
import nodejs from './images/nodejs.svg';
Expand Down Expand Up @@ -33,155 +34,139 @@ export const data = {
title: 'JavaScript',
text: 'Ably SDK for JavaScript.',
image: { src: js, isWide: false },
githubRepoURL: 'https://github.com/ably/ably-js',
setupLink: 'getting-started/setup?lang=javascript',
setupLink: 'getting-started/javascript',
},
{
title: 'Java',
text: 'Ably SDK for Java.',
image: { src: java, isWide: false },
githubRepoURL: 'https://github.com/ably/ably-java',
setupLink: 'getting-started/setup?lang=java',
setupLink: 'getting-started/java',
},
{
title: 'Python',
text: 'Ably SDK for Python.',
image: { src: python, isWide: false },
githubRepoURL: 'https://github.com/ably/ably-python',
setupLink: 'getting-started/setup?lang=python',
setupLink: 'getting-started/python',
},
{
title: 'React',
text: 'Ably React Hooks package.',
image: { src: react, isWide: false },
githubRepoURL: 'https://github.com/ably/ably-js',
setupLink: 'getting-started/react-hooks',
setupLink: 'getting-started/react',
},
{
title: 'React Native',
text: 'Ably React Native SDK.',
image: { src: reactnative, isWide: false },
setupLink: 'getting-started/react-native',
},
{
title: 'C#.NET',
text: 'Ably SDK for C#.NET.',
image: { src: csharp, isWide: false },
githubRepoURL: 'https://github.com/ably/ably-dotnet',
setupLink: 'getting-started/setup?lang=csharp',
setupLink: 'getting-started/dotnet',
},
{
title: 'Go',
text: 'Ably SDK for Go.',
image: { src: go, isWide: false },
githubRepoURL: 'https://github.com/ably/ably-go',
setupLink: 'getting-started/setup?lang=go',
setupLink: 'getting-started/go',
},
{
title: 'Node.js',
text: 'Ably SDK for Node.js.',
image: { src: nodejs, isWide: false },
githubRepoURL: 'https://github.com/ably/ably-js',
setupLink: 'getting-started/setup?lang=nodejs',
setupLink: 'getting-started/node',
},
{
title: 'Ruby',
text: 'Ably SDK for Ruby.',
image: { src: ruby, isWide: false },
githubRepoURL: 'https://github.com/ably/ably-ruby',
setupLink: 'getting-started/setup?lang=ruby',
setupLink: 'getting-started/ruby',
},
{
title: 'Swift',
text: 'Ably SDK for Swift.',
image: { src: swift, isWide: false },
githubRepoURL: 'https://github.com/ably/ably-cocoa',
setupLink: 'getting-started/setup?lang=swift',
setupLink: 'getting-started/swift',
},
{
title: 'Objective-C',
text: 'Ably SDK for Objective-C.',
image: { src: objectivec, isWide: false },
githubRepoURL: 'https://github.com/ably/ably-cocoa',
setupLink: 'getting-started/setup?lang=objc',
setupLink: 'getting-started/objective-c',
},
{
title: 'Flutter',
text: 'Ably SDK for Flutter.',
image: { src: flutter, isWide: false },
githubRepoURL: 'https://github.com/ably/ably-flutter',
setupLink: 'getting-started/setup?lang=flutter',
setupLink: 'getting-started/flutter',
},
{
title: 'PHP',
text: 'Ably SDK for PHP.',
image: { src: php, isWide: false },
githubRepoURL: 'https://github.com/ably/ably-php',
setupLink: 'getting-started/setup?lang=php',
setupLink: 'getting-started/php',
},
{
title: 'PHP Laravel',
text: 'Ably SDK for PHP Laravel.',
image: { src: laravel, isWide: false },
githubRepoURL: 'https://github.com/ably/ably-php#laravel-realtime-broadcasting',
setupLink: 'https://github.com/ably/ably-php#laravel-realtime-broadcasting',
setupLink: 'getting-started/laravel',
},
{
title: 'Android',
text: 'Ably SDK for Android.',
image: { src: android, isWide: false },
githubRepoURL: 'https://github.com/ably/ably-java',
setupLink: 'getting-started/setup?lang=java',
setupLink: 'getting-started/kotlin',
},
{
title: 'Kotlin',
text: 'Ably SDK for Kotlin.',
image: { src: kotlin, isWide: false },
githubRepoURL: 'https://github.com/ably/ably-java',
setupLink: 'getting-started/setup?lang=java',
setupLink: 'getting-started/kotlin',
},
{
title: 'Unity',
text: 'Ably SDK for Unity.',
image: { src: unity, isWide: false },
githubRepoURL: 'https://github.com/ably/ably-dotnet',
setupLink: 'https://github.com/ably/ably-dotnet/blob/main/unity/README.md',
},
{
title: 'Xamarin',
text: 'Ably SDK for Xamarin.',
image: { src: xamarin, isWide: false },
githubRepoURL: 'https://github.com/ably/ably-dotnet',
setupLink: 'getting-started/setup?lang=csharp',
setupLink: 'getting-started/dotnet',
},
{
title: 'NativeScript',
text: 'Ably SDK for NativeScript.',
image: { src: nativescript, isWide: false },
githubRepoURL: 'https://github.com/ably/ably-js-nativescript',
setupLink: 'https://github.com/ably/ably-js-nativescript#how-to-use-this-library',
},
{
title: 'React Native',
text: 'Ably SDK for React Native.',
image: { src: react, isWide: false },
githubRepoURL: 'https://github.com/ably/ably-js',
setupLink: 'getting-started/react-hooks',
setupLink: 'getting-started/react-native',
},
{
title: 'Cordova',
text: 'Ably SDK for Cordova.',
image: { src: cordova, isWide: false },
githubRepoURL: 'https://github.com/ably/ably-js',
setupLink: 'getting-started/setup?lang=javascript',
setupLink: 'getting-started/javascript',
},
{
title: 'Clojure',
text: 'Ably SDK for Clojure.',
image: { src: clojure, isWide: false },
githubRepoURL: 'https://github.com/ably/ably-java',
setupLink: 'getting-started/setup?lang=java',
setupLink: 'getting-started/java',
},
{
title: 'Scala',
text: 'Ably SDK for Scala.',
image: { src: scala, isWide: false },
githubRepoURL: 'https://github.com/ably/ably-java',
setupLink: 'getting-started/setup?lang=java',
setupLink: 'getting-started/java',
},
],
},
Expand All @@ -192,14 +177,12 @@ export const data = {
title: 'JavaScript',
text: 'Ably Spaces SDK for JavaScript.',
image: { src: js, isWide: false },
githubRepoURL: 'https://github.com/ably/spaces',
setupLink: 'spaces/setup',
},
{
title: 'React',
text: 'Ably Spaces React Hooks package.',
image: { src: react, isWide: false },
githubRepoURL: 'https://github.com/ably/spaces',
setupLink: 'spaces/react',
},
],
Expand All @@ -211,29 +194,25 @@ export const data = {
title: 'JavaScript',
text: 'Ably Chat SDK for JavaScript.',
image: { src: js, isWide: false },
githubRepoURL: 'https://github.com/ably/ably-chat-js',
setupLink: 'chat/setup?lang=javascript',
setupLink: 'chat/getting-started/javascript',
},
{
title: 'React',
text: 'Ably Chat React Hooks package.',
image: { src: react, isWide: false },
githubRepoURL: 'https://github.com/ably/ably-chat-js',
setupLink: 'chat/setup?lang=react',
setupLink: 'chat/getting-started/react',
},
{
title: 'Swift',
text: 'Ably Chat SDK for Swift.',
image: { src: swift, isWide: false },
githubRepoURL: 'https://github.com/ably/ably-chat-swift',
setupLink: 'chat/setup?lang=swift',
setupLink: 'chat/getting-started/swift',
},
{
title: 'Kotlin',
text: 'Ably Chat SDK for Kotlin.',
image: { src: kotlin, isWide: false },
githubRepoURL: 'https://github.com/ably/ably-chat-kotlin',
setupLink: 'chat/setup?lang=kotlin',
setupLink: 'chat/getting-started/kotlin',
},
],
},
Expand All @@ -244,21 +223,18 @@ export const data = {
title: 'JavaScript',
text: 'LiveObjects plugin for JavaScript.',
image: { src: js, isWide: false },
githubRepoURL: 'https://github.com/ably/ably-js',
setupLink: 'liveobjects/quickstart/javascript',
},
{
title: 'Swift',
text: 'LiveObjects plugin for Swift.',
image: { src: swift, isWide: false },
githubRepoURL: 'https://github.com/ably/ably-liveobjects-swift-plugin',
setupLink: 'liveobjects/quickstart/swift',
},
{
title: 'Java',
text: 'LiveObjects plugin for Java.',
image: { src: java, isWide: false },
githubRepoURL: 'https://github.com/ably/ably-java/tree/main/liveobjects',
setupLink: 'liveobjects/quickstart/java',
},
],
Expand All @@ -270,8 +246,7 @@ export const data = {
title: 'JavaScript',
text: 'Ably Models SDK for JavaScript.',
image: { src: js, isWide: false },
githubRepoURL: 'https://github.com/ably-labs/models',
setupLink: 'livesync/postgres/models',
setupLink: 'livesync/postgres/quickstart',
},
],
},
Expand Down
4 changes: 4 additions & 0 deletions src/components/SDKsPage/images/reactnative.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 5 additions & 0 deletions src/data/nav/chat.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,11 @@ export default {
{
name: 'Getting started',
pages: [
{
name: 'Overview',
link: '/docs/chat/getting-started',
index: true,
},
{
name: 'JavaScript',
link: '/docs/chat/getting-started/javascript',
Expand Down
4 changes: 0 additions & 4 deletions src/data/nav/pubsub.ts
Original file line number Diff line number Diff line change
Expand Up @@ -86,10 +86,6 @@ export default {
},
],
},
{
name: 'SDK setup',
link: '/docs/getting-started/setup',
},
{
name: 'React Hooks',
link: '/docs/getting-started/react-hooks',
Expand Down
Loading