Skip to content

Commit ef8eeef

Browse files
committed
feat: restructure content
Address Tatiana's feedback: https://sumup.slack.com/archives/C090ZU2KVPT/p1770893443069369
1 parent 8af3275 commit ef8eeef

21 files changed

Lines changed: 293 additions & 74 deletions

astro.config.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -200,9 +200,13 @@ export default defineConfig({
200200
autogenerate: { directory: "online-payments", collapsed: true },
201201
},
202202
{
203-
label: "Common Topics",
203+
label: "Developer Resources",
204204
autogenerate: { directory: "tools", collapsed: true },
205205
},
206+
{
207+
label: "SDKs",
208+
autogenerate: { directory: "sdks", collapsed: true },
209+
},
206210
{
207211
label: "Resources",
208212
autogenerate: { directory: "resources", collapsed: true },

public/_redirects

Lines changed: 23 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -19,24 +19,34 @@
1919
/docs/integration-bookings/ /terminal-payments
2020

2121
# Online Payments - Tools & SDKs
22-
/online-payments/sdks/ /online-payments/checkouts/sdks
23-
/docs/online-payments/sdks/ /online-payments/checkouts/sdks
24-
/online-payments/sdks/react-native-sdk/ /online-payments/checkouts/react-native-sdk
25-
/docs/online-payments/sdks/react-native-sdk/ /online-payments/checkouts/react-native-sdk
22+
/tools/sdks/ /online-payments/sdks
23+
/docs/tools/sdks/ /online-payments/sdks
24+
/tools/sdks/nodejs/ /online-payments/sdks/nodejs
25+
/tools/sdks/go/ /online-payments/sdks/go
26+
/tools/sdks/python/ /online-payments/sdks/python
27+
/tools/sdks/java/ /online-payments/sdks/java
28+
/tools/sdks/php/ /online-payments/sdks/php
29+
/tools/sdks/php-sdk/ /online-payments/sdks/php
30+
/tools/sdks/dotnet/ /online-payments/sdks/dotnet
31+
/tools/sdks/rust/ /online-payments/sdks/rust
32+
/online-payments/sdks/react-native-sdk/ /online-payments/sdks/react-native
33+
/docs/online-payments/sdks/react-native-sdk/ /online-payments/sdks/react-native
2634
/online-payments/sdks/swift-checkout/ /online-payments/checkouts/swift-checkout
2735
/docs/online-payments/sdks/swift-checkout/ /online-payments/checkouts/swift-checkout
28-
/online-payments/checkouts/sdks/react-native-sdk/ /online-payments/checkouts/react-native-sdk
29-
/docs/online-payments/checkouts/sdks/react-native-sdk/ /online-payments/checkouts/react-native-sdk
36+
/online-payments/checkouts/react-native-sdk/ /online-payments/sdks/react-native
37+
/docs/online-payments/checkouts/react-native-sdk/ /online-payments/sdks/react-native
38+
/online-payments/checkouts/sdks/react-native-sdk/ /online-payments/sdks/react-native
39+
/docs/online-payments/checkouts/sdks/react-native-sdk/ /online-payments/sdks/react-native
3040
/online-payments/checkouts/sdks/swift-checkout/ /online-payments/checkouts/swift-checkout
3141
/docs/online-payments/checkouts/sdks/swift-checkout/ /online-payments/checkouts/swift-checkout
32-
/online-payments/tools/react-native-sdk/ /online-payments/checkouts/react-native-sdk
42+
/online-payments/tools/react-native-sdk/ /online-payments/sdks/react-native
3343
/online-payments/tools/hosted-checkout/ /online-payments/checkouts/hosted-checkout
3444
/docs/online-payments/tools/swift-checkout/ /online-payments/checkouts/swift-checkout
35-
/docs/online-payments/tools/php-sdk/ /tools/sdks/php-sdk
45+
/docs/online-payments/tools/php-sdk/ /online-payments/sdks/php
3646
/docs/online-payments/tools/card-widget/ /online-payments/checkouts/card-widget
37-
/docs/php-sdk/ /tools/sdks/php-sdk
38-
/online-payments/sdks/php-sdk/ /tools/sdks/php-sdk
39-
/docs/online-payments/sdks/php-sdk/ /tools/sdks/php-sdk
47+
/docs/php-sdk/ /online-payments/sdks/php
48+
/online-payments/sdks/php-sdk/ /online-payments/sdks/php
49+
/docs/online-payments/sdks/php-sdk/ /online-payments/sdks/php
4050

4151
# Online Payments - Plugins
4252
/docs/sumup-woocommerce-plugin/ /online-payments/plugins/woocommerce
@@ -78,7 +88,7 @@
7888
/docs/category/guides/ /online-payments/guides
7989
/docs/category/alternative-payment-methods/ /online-payments/apm
8090
/docs/category/tools-1/ /terminal-payments/sdks
81-
/docs/category/tools/ /online-payments/checkouts/sdks
91+
/docs/category/tools/ /online-payments/sdks
8292
/docs/category/introduction-1/ /terminal-payments
8393
/docs/category/features/ /online-payments
8494

@@ -88,6 +98,7 @@
8898
/affiliate-keys/ /tools/authorization/affiliate-keys
8999
/docs/authorization/ /tools/authorization
90100
/docs/register-app/ /tools/authorization/register-app
101+
/tools/models/merchant/ /tools/glossary/merchant
91102

92103
# Resources
93104
/extdev/ /getting-started

src/content/docs/online-payments/guides/index.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ title: Custom Integrations
33
description: Integration guides for building with SumUp SDKs and APIs.
44
sidebar:
55
label: Overview
6-
order: 149
6+
order: 90
77
icon: article
88
---
99

src/content/docs/online-payments/guides/refund.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
title: Refunds
33
description: Walks through looking up transactions and issuing full or partial refunds.
44
sidebar:
5-
order: 400
5+
order: 92
66
---
77

88
import { Aside, Tabs, TabItem } from '@astrojs/starlight/components';

src/content/docs/online-payments/guides/response-handling.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
title: Response Handling
33
description: Explains how to interpret SumUp API responses.
44
sidebar:
5-
order: 300
5+
order: 93
66
---
77

88
## Overview

src/content/docs/online-payments/guides/single-payment.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
title: Accept a Payment
33
description: Create and process a checkout for a single card payment.
44
sidebar:
5-
order: 150
5+
order: 91
66
---
77

88
import { Aside, Tabs, TabItem } from '@astrojs/starlight/components';

src/content/docs/tools/sdks/dotnet.mdx renamed to src/content/docs/online-payments/sdks/dotnet.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
title: .NET SDK
33
description: Use the official .NET client to talk to every SumUp public API.
44
sidebar:
5-
order: 45
5+
order: 102
66
links:
77
- title: Source code
88
href: https://github.com/sumup/sumup-dotnet
@@ -56,7 +56,7 @@ var checkoutResponse = await client.Checkouts.CreateAsync(new CheckoutCreateRequ
5656
Console.WriteLine($"Checkout ID: {checkoutResponse.Data?.Id}");
5757
```
5858

59-
### Solo Cloud API Checkout
59+
### Cloud API Checkout
6060

6161
```csharp
6262
using SumUp;

src/content/docs/tools/sdks/go.mdx renamed to src/content/docs/online-payments/sdks/go.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
title: Go SDK
33
description: Call the SumUp APIs from idiomatic Go code.
44
sidebar:
5-
order: 20
5+
order: 105
66
links:
77
- title: Source code
88
href: https://github.com/sumup/sumup-go
@@ -63,7 +63,7 @@ func main() {
6363
}
6464
```
6565

66-
### Solo Cloud API Checkout
66+
### Cloud API Checkout
6767

6868
```go
6969
package main

src/content/docs/tools/sdks/index.mdx renamed to src/content/docs/online-payments/sdks/index.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ title: SDKs
33
description: Build on SumUp's APIs with officially supported server-side SDKs.
44
sidebar:
55
label: Overview
6-
order: 1
6+
order: 100
77
---
88

99
SumUp maintains open-source SDKs that wrap the public API and handle the heavy lifting of authentication, pagination, and resource helpers. Each package ships with examples and type definitions so you spend less time wiring HTTP requests and more time on your business logic.

src/content/docs/tools/sdks/java.mdx renamed to src/content/docs/online-payments/sdks/java.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
title: Java SDK
33
description: Use the official Java client to talk to every SumUp public API.
44
sidebar:
5-
order: 35
5+
order: 103
66
links:
77
- title: Source code
88
href: https://github.com/sumup/sumup-java
@@ -82,7 +82,7 @@ var checkout = client.checkouts().createCheckout(request);
8282
System.out.println(checkout.id());
8383
```
8484

85-
### Solo Cloud API Checkout
85+
### Cloud API Checkout
8686

8787
```java
8888
import com.sumup.sdk.SumUpClient;

0 commit comments

Comments
 (0)