Skip to content

Commit afdf4dc

Browse files
authored
Merge pull request #38 from swan-io/upgrade-docusaurus
Upgrade to docusaurus 3
2 parents ce05e53 + d005447 commit afdf4dc

File tree

7 files changed

+2890
-2538
lines changed

7 files changed

+2890
-2538
lines changed

docs/developers/tools/event-simulator.mdx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,11 +29,11 @@ Events you can simulate include:
2929
- Approving a Merchant profile and their submitted payment product
3030
- Manually provision a card for Apple or Google Pay
3131

32-
:::info
32+
:::info
3333
The list of simulator events is not exhaustive, and Swan often adds events as new features are released.
3434
Please go to **Dashboard** > **Developers** > **Event Simulator** for all possibilities.
3535

36-
If there is an event you'd like to simulate to test your integration, please send an email to support@swan.io.
36+
If there is an event you'd like to simulate to test your integration, please send an email to support@swan.io.
3737
:::
3838

3939
## Example {#example}
@@ -44,12 +44,12 @@ In Sandbox, you need to do it yourself.
4444

4545
1. On your Dashboard, go to **Developers** > **Event Simulator** > **SEPA Credit Transfers**.
4646
1. In the **Receive an Incoming Transfer** tab, enter all required information.
47-
- You can also add an internal reference and a label. If you don't add a label, your transaction history will show *Transfer from {Debtor name}*.
47+
- You can also add an internal reference and a label. If you don't add a label, your transaction history will show _Transfer from \{Debtor name\}_.
4848
1. Click **Simulate**.
4949
1. Instantly, the status changes to the new status. If the simulation succeeded, you'll see the status `Success` and your transaction ID.
5050

5151
![Image of Dashboard Event Simulator example using SEPA Credit Transfers](../../images/developers/tools/simulator-example.png)
5252

5353
:::tip Success
5454
After a successful simulation transfer, you can use these funds on API Explorer.
55-
:::
55+
:::
Lines changed: 13 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,13 @@
1-
<div>Your main action is to <b>create {props.accountType} onboarding link</b>.
2-
The link leads your user to a <b>multi-step form</b> through which Swan collects essential information to open the account.
3-
<br/><br/>
4-
When creating an onboarding link for your users, you can <b>pre-fill most of the information</b> for them.
5-
When your user goes through the form, they'll confirm that the information you entered is correct.
6-
Users can also fill in this information themselves.
7-
<br/><br/>
8-
</div>
1+
<div>
2+
Your main action is to <b>create {props.accountType} onboarding link</b>. The
3+
link leads your user to a <b>multi-step form</b> through which Swan collects
4+
essential information to open the account.
5+
<br />
6+
<br />
7+
When creating an onboarding link for your users, you can <b>
8+
pre-fill most of the information
9+
</b> for them. When your user goes through the form, they'll confirm that the information
10+
you entered is correct. Users can also fill in this information themselves.
11+
<br />
12+
<br />
13+
</div>

docusaurus.config.js

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
1-
const lightCodeTheme = require("prism-react-renderer/themes/palenight");
2-
const darkCodeTheme = require("prism-react-renderer/themes/oceanicNext");
3-
const path = require("path");
1+
const prism = require("prism-react-renderer");
42

53
/** @type {import('@docusaurus/types').DocusaurusConfig} */
64
module.exports = {
@@ -66,8 +64,8 @@ module.exports = {
6664
// copyright: `Copyright © ${new Date().getFullYear()} Swan`,
6765
// },
6866
prism: {
69-
theme: lightCodeTheme,
70-
darkTheme: darkCodeTheme,
67+
theme: prism.themes.palenight,
68+
darkTheme: prism.themes.oceanicNext,
7169
},
7270
},
7371
markdown: {

package.json

Lines changed: 11 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22
"name": "@swan-io/docs",
33
"version": "0.0.0",
44
"private": true,
5+
"engines": {
6+
"node": ">=18.0"
7+
},
58
"scripts": {
69
"docusaurus": "docusaurus",
710
"start": "docusaurus start",
@@ -15,26 +18,18 @@
1518
"graphql-update-schemas": "mkdir scripts/graphql/dist && node scripts/graphql/downloadSchema.mjs"
1619
},
1720
"dependencies": {
18-
"@docusaurus/core": "2.4.3",
19-
"@docusaurus/preset-classic": "2.4.3",
20-
"@docusaurus/theme-mermaid": "2.4.3",
21-
"@docusaurus/theme-search-algolia": "2.4.3",
22-
"@graphiql/plugin-explorer": "0.1.14",
23-
"@graphiql/toolkit": "0.9.1",
24-
"@graphql-markdown/docusaurus": "1.21.3",
25-
"@graphql-tools/graphql-file-loader": "7.5.17",
26-
"@mdx-js/react": "1.6.22",
21+
"@docusaurus/core": "3.1.0",
22+
"@docusaurus/preset-classic": "3.1.0",
23+
"@docusaurus/theme-mermaid": "3.1.0",
24+
"@docusaurus/theme-search-algolia": "3.1.0",
25+
"@mdx-js/react": "^3.0.0",
2726
"@svgr/webpack": "5.5.0",
2827
"clsx": "1.2.1",
2928
"docusaurus-plugin-matomo": "0.0.8",
3029
"file-loader": "6.2.0",
31-
"graphiql": "2.4.7",
32-
"graphql": "16.8.1",
33-
"graphql-config": "5.0.3",
34-
"node-fetch": "3.3.2",
35-
"prism-react-renderer": "1.3.5",
36-
"react": "17.0.2",
37-
"react-dom": "17.0.2",
30+
"prism-react-renderer": "^2.1.0",
31+
"react": "^18.2.0",
32+
"react-dom": "^18.2.0",
3833
"url-loader": "4.1.1"
3934
},
4035
"browserslist": {

scripts/graphql/downloadSchema.mjs

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

src/pages/explorer.js

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

0 commit comments

Comments
 (0)