Skip to content

Commit e072510

Browse files
alexandratranbgravenorstRobItudependabot[bot]
authored
High-level navigation enhancements (#2074)
* Migrate gator docs * fixes * swizzle desktop sidebar * update codeowners * Add initial dropdown component. Signed-off-by: bgravenorst <[email protected]> * Add front page. Signed-off-by: bgravenorst <[email protected]> * Update SDK connect guides * Fix category sections. Signed-off-by: bgravenorst <[email protected]> * Inital dropdown style changes. Signed-off-by: bgravenorst <[email protected]> * Update dropdown behaviour. Signed-off-by: bgravenorst <[email protected]> * Add link to Embedded wallets (#2069) * Add embedded wallets. Signed-off-by: bgravenorst <[email protected]> * Stylesheet updates. Signed-off-by: bgravenorst <[email protected]> * Apply feedback. Signed-off-by: bgravenorst <[email protected]> --------- Signed-off-by: bgravenorst <[email protected]> * Minor update. (#2070) Signed-off-by: bgravenorst <[email protected]> * Update react-native.md (#2068) * Update react-native.md Expo Demo repo had been deleted and was a broken link. * Update sdk/quickstart/react-native.md Co-authored-by: Alexandra Carrillo <[email protected]> * Update sdk/quickstart/react-native.md Co-authored-by: Alexandra Carrillo <[email protected]> * Update react-native.md --------- Co-authored-by: Alexandra Carrillo <[email protected]> * chore(deps): bump tar-fs from 1.16.4 to 1.16.5 in the npm_and_yarn group (#2072) Bumps the npm_and_yarn group with 1 update: [tar-fs](https://github.com/mafintosh/tar-fs). Updates `tar-fs` from 1.16.4 to 1.16.5 - [Commits](https://github.com/mafintosh/tar-fs/commits) --- updated-dependencies: - dependency-name: tar-fs dependency-version: 1.16.5 dependency-type: indirect dependency-group: npm_and_yarn ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Alexandra Carrillo <[email protected]> * fixes * Add front page. Signed-off-by: bgravenorst <[email protected]> * Remove dup. Signed-off-by: bgravenorst <[email protected]> * High-level navigation changes * add get started button * updates to sdk intro + redirects * add api reference docs and fix links * minor adjustments * address feedback * move llm prompt and update copy * change file names (delegation-toolkit) and fix links * fix lint error * Add product banner * update icons * minor fix * fix version ordering and color mode * hide top nav + enhancements * fix embedded wallets sdk dropdown * fix sidebar bug * address reviewer feedback --------- Signed-off-by: bgravenorst <[email protected]> Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: bgravenorst <[email protected]> Co-authored-by: Byron Gravenorst <[email protected]> Co-authored-by: RobItu <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
1 parent 6eb20f5 commit e072510

File tree

37 files changed

+914
-109
lines changed

37 files changed

+914
-109
lines changed

delegation-toolkit/index.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
---
2-
title: Introduction to the MetaMask Delegation Toolkit
2+
title: Delegation Toolkit introduction
33
sidebar_label: Introduction
44
description: High-level overview of the Delegation Toolkit, its benefits, and where to start in the documentation.
55
sidebar_position: 1
66
---
77

88
import CardList from "@site/src/components/CardList"
99

10-
# MetaMask Delegation Toolkit
10+
# Embed smart accounts using the Delegation Toolkit
1111

1212
The MetaMask Delegation Toolkit is a [Viem](https://viem.sh/)-based collection of tools for integrating
1313
embedded smart contract wallets, known as [MetaMask smart accounts](concepts/smart-accounts.md),

developer-tools/dashboard/index.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,14 @@
11
---
22
sidebar_label: Introduction
3+
title: Developer dashboard introduction
34
description: Documentation for using the MetaMask Developer dashboard
45
sidebar_position: 1
56
---
67

78
import CardList from '@site/src/components/CardList'
89
import Banner from '@site/src/components/Banner'
910

10-
# Developer dashboard documentation
11+
# Introduction
1112

1213
The [MetaMask Developer dashboard](https://developer.metamask.io/) provides developers with a
1314
comprehensive overview and control of their Infura service.

docusaurus.config.js

Lines changed: 30 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,9 @@ const codeTheme = themes.dracula
1515
const remarkCodesandbox = require('remark-codesandbox')
1616
const isProd = process.env.NODE_ENV === 'production'
1717
const helpDropdown = fs.readFileSync("./src/components/NavDropdown/DeveloperTools.html", "utf-8");
18+
const connectDropdown = fs.readFileSync("./src/components/NavDropdown/ConnectMetaMask.html", "utf-8");
19+
const embedDropdown = fs.readFileSync("./src/components/NavDropdown/EmbedMetaMask.html", "utf-8");
20+
const extendDropdown = fs.readFileSync("./src/components/NavDropdown/ExtendScale.html", "utf-8");
1821
/** @type {import('@docusaurus/types').Config} */
1922
const config = {
2023
title: 'MetaMask developer documentation',
@@ -225,33 +228,43 @@ const config = {
225228
respectPrefersColorScheme: true,
226229
},
227230
navbar: {
228-
title: ' │ ‎ Documentation',
229231
logo: {
230232
alt: 'MetaMask logo',
231233
src: 'img/metamask-logo.svg',
232234
srcDark: 'img/metamask-logo-dark.svg',
233235
width: 150,
234236
},
237+
hideOnScroll: true,
235238
items: [
236239
{
237-
to: 'sdk',
238-
label: 'SDK',
239-
},
240-
{
241-
to: 'wallet',
242-
label: 'Wallet API',
243-
},
244-
{
245-
to: 'delegation-toolkit',
246-
label: 'Delegation Toolkit',
240+
type: 'dropdown',
241+
label: 'Connect to MetaMask',
242+
items: [
243+
{
244+
type: "html",
245+
value: connectDropdown,
246+
},
247+
],
247248
},
248249
{
249-
to: 'snaps',
250-
label: 'Snaps',
250+
type: 'dropdown',
251+
label: 'Embed MetaMask',
252+
items: [
253+
{
254+
type: "html",
255+
value: embedDropdown,
256+
},
257+
],
251258
},
252259
{
253-
to: 'services',
254-
label: 'Services',
260+
type: 'dropdown',
261+
label: 'Extend and scale',
262+
items: [
263+
{
264+
type: "html",
265+
value: extendDropdown,
266+
},
267+
],
255268
},
256269
{
257270
type: 'dropdown',
@@ -333,15 +346,15 @@ const config = {
333346
href: 'https://github.com/MetaMask/metamask-docs',
334347
},
335348
{
336-
label: 'MetaMask wallet GitHub',
349+
label: 'MetaMask extension GitHub',
337350
href: 'https://github.com/MetaMask/metamask-extension/',
338351
},
339352
{
340353
label: 'MetaMask SDK GitHub',
341354
href: 'https://github.com/MetaMask/metamask-sdk/',
342355
},
343356
{
344-
label: 'MetaMask Mobile GitHub',
357+
label: 'MetaMask mobile GitHub',
345358
href: 'https://github.com/MetaMask/metamask-mobile',
346359
},
347360
{

sdk/connect/javascript-dynamic.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -271,4 +271,4 @@ Common issues and solutions include:
271271
- **Mobile experience issues:**
272272
- Test on actual mobile devices.
273273
- Verify redirect URLs.
274-
- Check MetaMask Mobile installation.
274+
- Check MetaMask mobile app installation.

sdk/guides/use-deeplinks.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,13 @@ import TabItem from "@theme/TabItem";
88

99
# Use deeplinks
1010

11-
You can use deeplinks to directly route your users to specific, pre-configured functions inside the MetaMask Mobile app.
11+
You can use deeplinks to directly route your users to specific, pre-configured functions inside the MetaMask mobile app.
1212
For example, you can create a deeplink that lets users make one-click payments with a preset token, recipient, and amount.
1313
You can also convert deeplinks to QR codes, so users can scan them with a mobile device.
1414

15-
If a user doesn't have MetaMask Mobile installed, deeplinks route the user to a landing page where they can download the app.
15+
If a user doesn't have the mobile app installed, deeplinks route the user to a landing page where they can download the app.
1616

17-
This page highlights deeplinks available for MetaMask Mobile.
17+
This page highlights deeplinks available for the MetaMask mobile app.
1818

1919
## Open a dapp inside the in-app browser
2020

@@ -36,7 +36,7 @@ https://metamask.app.link/dapp/app.uniswap.org
3636
</Tabs>
3737

3838

39-
This deeplink takes the user directly to the dapp URL in the MetaMask Mobile in-app browser.
39+
This deeplink takes the user directly to the dapp URL in the MetaMask mobile in-app browser.
4040

4141
The example navigates to `app.uniswap.org` in the in-app browser.
4242

@@ -64,7 +64,7 @@ https://metamask.app.link/send/0x0000000@137?value=1e16
6464
</Tabs>
6565

6666
This deeplink starts the process of sending a transaction in the native currency.
67-
If the chain ID is specified, MetaMask Mobile automatically switches to the correct network.
67+
If the chain ID is specified, the MetaMask mobile app automatically switches to the correct network.
6868

6969
The example displays the confirmation screen to send 0.01 POL (`1e16` wei) in Polygon (chain ID `137`) to recipient address `0x0000000`.
7070

@@ -97,7 +97,7 @@ https://metamask.app.link/send/0x176211869cA2b568f2A7D4EE941E073a821EE1ff@59144/
9797
</Tabs>
9898

9999
This deeplink starts the process of sending a transaction in an ERC-20 token.
100-
If the chain ID is specified, MetaMask Mobile automatically switches to the correct network.
100+
If the chain ID is specified, the MetaMask mobile app automatically switches to the correct network.
101101

102102
The example displays the confirmation screen to send 1 USDC (`1e6` units, contract address `0x176211869cA2b568f2A7D4EE941E073a821EE1ff`) on Linea (chain ID `59144`) to recipient address `0x0000000`.
103103

@@ -131,7 +131,7 @@ https://metamask.app.link/buy?chainId=59144&address=0x176211869cA2b568f2A7D4EE94
131131
</Tabs>
132132

133133
This deeplink starts the on-ramp process to buy native currency or ERC-20 tokens.
134-
If the chain ID is specified, MetaMask Mobile automatically switches to the correct network.
134+
If the chain ID is specified, the MetaMask mobile app automatically switches to the correct network.
135135

136136
The example starts the on-ramp process to buy $100 (`amount=100`) of USDC (contract address `0x176211869cA2b568f2A7D4EE941E073a821EE1ff`) on Linea (chain ID `59144`).
137137
The fiat currency depends on the onboarding status of the user and the region they select.
@@ -167,7 +167,7 @@ https://metamask.app.link/sell?chainId=59144&amount=125
167167
</Tabs>
168168

169169
This deeplink starts the off-ramp process to sell native currency.
170-
If the chain ID is specified, MetaMask Mobile automatically switches to the correct network.
170+
If the chain ID is specified, the MetaMask mobile app automatically switches to the correct network.
171171

172172
The example starts the off-ramp process to sell 125 ETH (`amount=125`) on Linea (chain ID `59144`).
173173

sdk/index.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
---
22
slug: /
3+
title: SDK introduction
34
description: Introduction page for MetaMask SDK documentation.
45
keywords: [connect, MetaMask, SDK, integrate, dapp]
56
---
@@ -9,7 +10,7 @@ import CardList from '@site/src/components/CardList'
910

1011
# Seamlessly connect to MetaMask using the SDK
1112

12-
MetaMask SDK enables a fast, reliable, and seamless connection from your dapp to the MetaMask extension and MetaMask Mobile.
13+
MetaMask SDK enables a fast, reliable, and seamless connection from your dapp to the MetaMask extension and MetaMask mobile app.
1314
With the SDK, you can easily onboard users and interact with their accounts on desktop or mobile, across all EVM networks.
1415

1516
<p align="center">
@@ -29,9 +30,9 @@ With the SDK, you can easily onboard users and interact with their accounts on d
2930

3031
MetaMask SDK gives your dapp a powerful upgrade:
3132

32-
- **Cross-platform, cross-browser support** - One integration covers both desktop and mobile, all major browsers, and the MetaMask Mobile app—streamlining your user onboarding and eliminating edge cases.
33+
- **Cross-platform, cross-browser support** - One integration covers both desktop and mobile, all major browsers, and the MetaMask mobile app—streamlining your user onboarding and eliminating edge cases.
3334
- **Mobile connection that just works** - Say goodbye to clunky "open in in-app browser" flows.
34-
The SDK enables a native connection from any mobile browser (Safari, Chrome, etc.) directly to MetaMask Mobile, using secure deeplinking and session management.
35+
The SDK enables a native connection from any mobile browser (Safari, Chrome, etc.) directly to the MetaMask mobile app, using secure deeplinking and session management.
3536
- **Production-ready, battle-tested** - MetaMask SDK is used in high-volume dapps across DeFi, NFTs, gaming, and more—ensuring stability, speed, and a smooth developer experience.
3637
- **Multichain-ready by design** - Today, the SDK supports all EVM networks.
3738
Coming soon: Seamless connection to non-EVM chains like Solana and Bitcoin.

sdk/reference/sdk-options.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -114,9 +114,9 @@ The metadata options are:
114114
- `iconUrl` - URL of the dapp's icon
115115

116116
:::tip important
117-
Setting `dappMetaData` creates a clear and trustworthy user experience when connecting your dapp to
118-
MetaMask Mobile.
119-
MetaMask Mobile displays this metadata in the connection modal to help users identify and verify the
117+
Setting `dappMetaData` creates a clear and trustworthy user experience when connecting your dapp to the
118+
MetaMask mobile app.
119+
MetaMask displays this metadata in the connection modal to help users identify and verify the
120120
connection request.
121121
:::
122122

@@ -262,7 +262,7 @@ openDeeplink: (link: string) => {
262262
</TabItem>
263263
</Tabs>
264264

265-
A function that is called to open a deeplink to the MetaMask Mobile app.
265+
A function that is called to open a deeplink to the MetaMask mobile app.
266266

267267
### `readonlyRPCMap`
268268

sdk/reference/supported-platforms.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@ description: Supported dapp platforms for MetaMask SDK.
66

77
With MetaMask SDK, you can connect your dapp to MetaMask in the following ways:
88

9-
- **Desktop web dapps** - Automatically connect to the MetaMask wallet extension, or connect to MetaMask Mobile using a QR code.
9+
- **Desktop web dapps** - Automatically connect to the MetaMask extension, or connect to the MetaMask mobile app using a QR code.
1010

11-
- **Mobile dapps** - The SDK generates a deeplink that takes users directly to MetaMask Mobile.
11+
- **Mobile dapps** - The SDK generates a deeplink that takes users directly to the MetaMask mobile app.
1212

1313
The following table expands on the SDK's connection methods:
1414

services/index.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
---
2+
title: Services introduction
23
sidebar_label: Introduction
34
sidebar_position: 1
45
---

snaps/index.mdx

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,17 @@
11
---
22
sidebar_label: Introduction
3+
title: Snaps introduction
34
description: Introduction page for the MetaMask Snaps documentation.
45
---
56

67
import CardList from '@site/src/components/CardList'
78
import YoutubeEmbed from '@site/src/components/YoutubeEmbed'
89

9-
# Extend the functionality of MetaMask using Snaps
10+
# Create a custom mini app using Snaps
1011

11-
Snaps is an open source system that allows anyone to safely extend the functionality of [MetaMask](https://metamask.io/), creating new web3 end user experiences. Get started building your own Snaps by [installing MetaMask Flask](get-started/install-flask.md).
12+
Snaps is an open source system that allows anyone to safely create a mini app that runs inside the MetaMask extension,
13+
enabling new web3 end user experiences.
14+
Get started building your own Snaps by [installing MetaMask Flask](get-started/install-flask.md).
1215

1316
## What can you do with a Snap?
1417

0 commit comments

Comments
 (0)