From 1ea5abb81d1cbbea7adc1d7fe68d63106fc902c7 Mon Sep 17 00:00:00 2001 From: Alexandra Tran Date: Tue, 17 Sep 2024 21:34:21 -0700 Subject: [PATCH] fix sidebar --- wallet-sidebar.js | 45 +++++++++++++++++-- .../gaming/{unity/index.md => unity.md} | 0 wallet/connect/metamask-sdk/index.md | 2 +- .../use-unity-sdk}/connect-and-sign.md | 0 .../unity => how-to/use-unity-sdk}/dweb.md | 0 wallet/how-to/use-unity-sdk/index.md | 17 +++++++ .../unity => how-to/use-unity-sdk}/infura.md | 2 +- .../smart-contracts/contract-factory.md | 0 .../smart-contracts/contract-interface.md | 0 .../smart-contracts/contract-provider.md | 0 .../smart-contracts/contract-proxy-class.md | 0 .../use-unity-sdk}/smart-contracts/index.md | 6 +-- 12 files changed, 64 insertions(+), 8 deletions(-) rename wallet/connect/metamask-sdk/gaming/{unity/index.md => unity.md} (100%) rename wallet/{connect/metamask-sdk/gaming/unity => how-to/use-unity-sdk}/connect-and-sign.md (100%) rename wallet/{connect/metamask-sdk/gaming/unity => how-to/use-unity-sdk}/dweb.md (100%) create mode 100644 wallet/how-to/use-unity-sdk/index.md rename wallet/{connect/metamask-sdk/gaming/unity => how-to/use-unity-sdk}/infura.md (96%) rename wallet/{connect/metamask-sdk/gaming/unity => how-to/use-unity-sdk}/smart-contracts/contract-factory.md (100%) rename wallet/{connect/metamask-sdk/gaming/unity => how-to/use-unity-sdk}/smart-contracts/contract-interface.md (100%) rename wallet/{connect/metamask-sdk/gaming/unity => how-to/use-unity-sdk}/smart-contracts/contract-provider.md (100%) rename wallet/{connect/metamask-sdk/gaming/unity => how-to/use-unity-sdk}/smart-contracts/contract-proxy-class.md (100%) rename wallet/{connect/metamask-sdk/gaming/unity => how-to/use-unity-sdk}/smart-contracts/index.md (95%) diff --git a/wallet-sidebar.js b/wallet-sidebar.js index d87a9186efd..76b39455ea0 100644 --- a/wallet-sidebar.js +++ b/wallet-sidebar.js @@ -7,13 +7,52 @@ const sidebar = { { type: "category", label: "Connect to MetaMask", - link: {type: "doc", id: "connect/index"}, + link: { type: "doc", id: "connect/index" }, items: [ { type: "category", label: "MetaMask SDK", - link: {type: "doc", id: "connect/metamask-sdk/index"}, - items: [{ type: "autogenerated", dirName: "connect/metamask-sdk" }], + link: { type: "doc", id: "connect/metamask-sdk/index" }, + items: [ + { + type: "category", + label: "JavaScript", + link: { type: "doc", id: "connect/metamask-sdk/javascript/index" }, + items: [ + { + type: "category", + label: "React", + link: { type: "doc", id: "connect/metamask-sdk/javascript/react/index" }, + items: [ + "connect/metamask-sdk/javascript/react/react-ui", + ], + }, + "connect/metamask-sdk/javascript/pure-js", + "connect/metamask-sdk/javascript/other-web-frameworks", + "connect/metamask-sdk/javascript/nodejs", + "connect/metamask-sdk/javascript/electron", + ], + }, + { + type: "category", + label: "Mobile", + link: { type: "doc", id: "connect/metamask-sdk/mobile/index" }, + items: [ + "connect/metamask-sdk/mobile/ios", + "connect/metamask-sdk/mobile/android", + "connect/metamask-sdk/mobile/react-native", + ], + }, + { + type: "category", + label: "Gaming", + link: { type: "doc", id: "connect/metamask-sdk/gaming/index" }, + items: [ + "connect/metamask-sdk/gaming/unity", + "connect/metamask-sdk/gaming/unreal-engine", + ], + }, + ], }, { type: "category", diff --git a/wallet/connect/metamask-sdk/gaming/unity/index.md b/wallet/connect/metamask-sdk/gaming/unity.md similarity index 100% rename from wallet/connect/metamask-sdk/gaming/unity/index.md rename to wallet/connect/metamask-sdk/gaming/unity.md diff --git a/wallet/connect/metamask-sdk/index.md b/wallet/connect/metamask-sdk/index.md index ab69cf6edd3..8b7f51855e3 100644 --- a/wallet/connect/metamask-sdk/index.md +++ b/wallet/connect/metamask-sdk/index.md @@ -8,7 +8,7 @@ tags: - Unity SDK --- -# Use MetaMask SDK +# MetaMask SDK MetaMask SDK is a library that provides a reliable, secure, and seamless connection from your dapp to the MetaMask browser extension and MetaMask Mobile. diff --git a/wallet/connect/metamask-sdk/gaming/unity/connect-and-sign.md b/wallet/how-to/use-unity-sdk/connect-and-sign.md similarity index 100% rename from wallet/connect/metamask-sdk/gaming/unity/connect-and-sign.md rename to wallet/how-to/use-unity-sdk/connect-and-sign.md diff --git a/wallet/connect/metamask-sdk/gaming/unity/dweb.md b/wallet/how-to/use-unity-sdk/dweb.md similarity index 100% rename from wallet/connect/metamask-sdk/gaming/unity/dweb.md rename to wallet/how-to/use-unity-sdk/dweb.md diff --git a/wallet/how-to/use-unity-sdk/index.md b/wallet/how-to/use-unity-sdk/index.md new file mode 100644 index 00000000000..1d670c81576 --- /dev/null +++ b/wallet/how-to/use-unity-sdk/index.md @@ -0,0 +1,17 @@ +--- +sidebar_position: 9 +description: Use the Unity SDK. +tags: + - Unity SDK +--- + +# Use the Unity SDK + +See the guides in this section for using advanced features of the Unity SDK: + +- [Connect and sign in Unity.](connect-and-sign.md) +- [Set up Infura in Unity.](infura.md) +- [Interact with smart contracts in Unity.](smart-contracts/index.md) +- [Enable human-readable addresses in Unity using Decentraweb.](dweb.md) + +You can also see the guide to [set up MetaMask SDK in your Unity game](../../connect/metamask-sdk/gaming/). diff --git a/wallet/connect/metamask-sdk/gaming/unity/infura.md b/wallet/how-to/use-unity-sdk/infura.md similarity index 96% rename from wallet/connect/metamask-sdk/gaming/unity/infura.md rename to wallet/how-to/use-unity-sdk/infura.md index 4173b323774..bff57f40548 100644 --- a/wallet/connect/metamask-sdk/gaming/unity/infura.md +++ b/wallet/how-to/use-unity-sdk/infura.md @@ -47,7 +47,7 @@ your Unity game.

-![MetaMask Unity script](../../../../assets/unity-infura.png) +![MetaMask Unity script](../../assets/unity-infura.png)

diff --git a/wallet/connect/metamask-sdk/gaming/unity/smart-contracts/contract-factory.md b/wallet/how-to/use-unity-sdk/smart-contracts/contract-factory.md similarity index 100% rename from wallet/connect/metamask-sdk/gaming/unity/smart-contracts/contract-factory.md rename to wallet/how-to/use-unity-sdk/smart-contracts/contract-factory.md diff --git a/wallet/connect/metamask-sdk/gaming/unity/smart-contracts/contract-interface.md b/wallet/how-to/use-unity-sdk/smart-contracts/contract-interface.md similarity index 100% rename from wallet/connect/metamask-sdk/gaming/unity/smart-contracts/contract-interface.md rename to wallet/how-to/use-unity-sdk/smart-contracts/contract-interface.md diff --git a/wallet/connect/metamask-sdk/gaming/unity/smart-contracts/contract-provider.md b/wallet/how-to/use-unity-sdk/smart-contracts/contract-provider.md similarity index 100% rename from wallet/connect/metamask-sdk/gaming/unity/smart-contracts/contract-provider.md rename to wallet/how-to/use-unity-sdk/smart-contracts/contract-provider.md diff --git a/wallet/connect/metamask-sdk/gaming/unity/smart-contracts/contract-proxy-class.md b/wallet/how-to/use-unity-sdk/smart-contracts/contract-proxy-class.md similarity index 100% rename from wallet/connect/metamask-sdk/gaming/unity/smart-contracts/contract-proxy-class.md rename to wallet/how-to/use-unity-sdk/smart-contracts/contract-proxy-class.md diff --git a/wallet/connect/metamask-sdk/gaming/unity/smart-contracts/index.md b/wallet/how-to/use-unity-sdk/smart-contracts/index.md similarity index 95% rename from wallet/connect/metamask-sdk/gaming/unity/smart-contracts/index.md rename to wallet/how-to/use-unity-sdk/smart-contracts/index.md index c70649b04e3..acc52e2b1f2 100644 --- a/wallet/connect/metamask-sdk/gaming/unity/smart-contracts/index.md +++ b/wallet/how-to/use-unity-sdk/smart-contracts/index.md @@ -29,7 +29,7 @@ A new dialog box opens:

-![dialog](../../../../../assets/contract-abi-converter-dialog.png) +![dialog](../../../assets/contract-abi-converter-dialog.png)

@@ -99,7 +99,7 @@ Before using the contract template, configure the contract address to use for ea

-![empty template](../../../../../assets/unity-empty-template.png) +![empty template](../../../assets/unity-empty-template.png)

@@ -109,7 +109,7 @@ When adding a new address, if you don't see your desired blockchain listed, you

-![full template](../../../../../assets/unity-example-template.png) +![full template](../../../assets/unity-example-template.png)