Skip to content
Draft
Show file tree
Hide file tree
Changes from 130 commits
Commits
Show all changes
137 commits
Select commit Hold shift + click to select a range
0b79037
SDK new structure PoC
alexandratran Sep 23, 2025
44a6248
edits
alexandratran Sep 24, 2025
f234baf
remove custom reference component
alexandratran Sep 24, 2025
f331654
edits
alexandratran Sep 25, 2025
e2f4b8b
Merge branch 'main' into sdk-new-structure
alexandratran Sep 30, 2025
ef20ee1
fix links, update redirects, "metamask wallet sdk"
alexandratran Sep 30, 2025
39b9b16
Merge branch 'main' into sdk-new-structure
alexandratran Oct 16, 2025
905d9a8
add simplified api reference with two examples
alexandratran Oct 18, 2025
549887c
missing files
alexandratran Oct 18, 2025
1b97b2c
Merge branch 'main' into sdk-new-structure
alexandratran Oct 20, 2025
bb103fb
remove starknet docs
alexandratran Oct 21, 2025
8216d8b
copy over solana docs
alexandratran Oct 21, 2025
34aed2c
Merge branch 'main' into sdk-new-structure
alexandratran Oct 22, 2025
d64e8a4
Merge branch 'main' into sdk-new-structure
alexandratran Oct 23, 2025
e02092a
Update terminology and restructure EVM docs
alexandratran Oct 23, 2025
956c09a
fix broken links
alexandratran Oct 23, 2025
86d2dfc
Merge branch 'main' into sdk-new-structure
alexandratran Nov 4, 2025
f70f940
fix broken links
alexandratran Nov 4, 2025
e1e0008
Add/update Solana Wallet Adapter docs (#2443)
alexandratran Nov 7, 2025
37a4d06
Merge branch 'main' into sdk-new-structure
alexandratran Nov 10, 2025
30d0439
Update mobile products menu
alexandratran Nov 10, 2025
3db005f
Update MM Connect EVM JS code samples with potential new usage (#2454)
alexandratran Nov 12, 2025
d122361
Merge branch 'main' into sdk-new-structure
alexandratran Nov 13, 2025
360383d
Remove ParserOpenRPC component and replace usage in Linea services
alexandratran Nov 14, 2025
98476fe
Merge branch 'main' into sdk-new-structure
alexandratran Nov 18, 2025
c04fb6d
fix broken link
alexandratran Nov 18, 2025
b034e01
Add more multichain info (#2479)
alexandratran Nov 18, 2025
77bb9a9
Merge branch 'main' into sdk-new-structure
alexandratran Nov 27, 2025
b4716d6
Enhance JS section {WIP} (#2450)
shahbaz17 Nov 27, 2025
2a6e4ab
Add view & wagmi options
shahbaz17 Nov 27, 2025
6cf2880
Merge branch 'main' into sdk-new-structure
alexandratran Nov 28, 2025
3027438
Merge branch 'main' into sdk-new-structure
shahbaz17 Jan 28, 2026
cbee9d2
MM Connect ( EVM + SOL ) fixes (#2619)
shahbaz17 Jan 28, 2026
f57cf3e
fix broken link
shahbaz17 Jan 28, 2026
ec33f3e
update MM to MetaMask
shahbaz17 Jan 28, 2026
2ff41c6
fix broken links
shahbaz17 Jan 28, 2026
12cdcea
Merge branch 'main' into sdk-new-structure
shahbaz17 Jan 28, 2026
f55bcfa
Merge branch 'main' into sdk-new-structure
shahbaz17 Feb 20, 2026
9ffb874
MM Connect docs updates (#2720)
shahbaz17 Feb 20, 2026
1aeed98
Reword + One more Option
shahbaz17 Feb 25, 2026
0e289c1
rm connector library page
shahbaz17 Feb 25, 2026
25476c6
connector library link remove
shahbaz17 Feb 25, 2026
2b2cb54
Multichain tutorial
shahbaz17 Feb 25, 2026
ecb3905
Merge branch 'main' into sdk-new-structure
shahbaz17 Feb 26, 2026
1535839
Update sdk/multichain/index.md
shahbaz17 Feb 26, 2026
5c87633
Update sdk/index.md
shahbaz17 Feb 26, 2026
20c1d7e
Update sdk/index.md
shahbaz17 Feb 26, 2026
3c1af87
Update sdk/index.md
shahbaz17 Feb 26, 2026
7bcb8a7
Update sdk/index.md
shahbaz17 Feb 26, 2026
fd1da69
Update sdk/multichain/index.md
shahbaz17 Feb 26, 2026
77c33a3
Update sdk/multichain/connect/guides/connect-to-multichain.md
shahbaz17 Feb 26, 2026
35fc942
Update sdk/index.md
shahbaz17 Feb 26, 2026
a1c7eb3
Update sdk/index.md
shahbaz17 Feb 26, 2026
76e32e2
Update sdk/index.md
shahbaz17 Feb 26, 2026
ce6e68a
Update sdk/index.md
shahbaz17 Feb 26, 2026
880cbfe
Update sdk/index.md
shahbaz17 Feb 26, 2026
621ebbe
Update sdk/index.md
shahbaz17 Feb 26, 2026
4d9e96b
Update sdk/index.md
shahbaz17 Feb 26, 2026
0566218
Update sdk/index.md
shahbaz17 Feb 26, 2026
ff9422f
Update sdk/index.md
shahbaz17 Feb 26, 2026
591788c
Update sdk/index.md
shahbaz17 Feb 26, 2026
774e442
Update sdk/index.md
shahbaz17 Feb 26, 2026
a997779
Update sdk/index.md
shahbaz17 Feb 26, 2026
3ec896a
Update sdk/index.md
shahbaz17 Feb 26, 2026
85eb870
Update sdk/index.md
shahbaz17 Feb 26, 2026
b80db83
Update sdk/multichain/index.md
shahbaz17 Feb 26, 2026
59ff3ef
Update sdk/multichain/index.md
shahbaz17 Feb 26, 2026
fd911a7
Update sdk/multichain/index.md
shahbaz17 Feb 26, 2026
e81b9a6
Update sdk/multichain/index.md
shahbaz17 Feb 26, 2026
fea749b
link fixes
shahbaz17 Feb 26, 2026
80d5f52
broken link fixes
shahbaz17 Feb 26, 2026
cd155dc
Merge branch 'main' into sdk-new-structure
shahbaz17 Feb 26, 2026
fe95892
Merge branch 'main' into sdk-new-structure
shahbaz17 Mar 3, 2026
fec6ea2
Update sdk/multichain/index.md
shahbaz17 Mar 3, 2026
05cedf5
MM Connect Solana 0.2.0 changes updates
shahbaz17 Mar 3, 2026
edfd3d8
solana fixes
shahbaz17 Mar 3, 2026
80aaad8
dep terminate and singleton behaviour
shahbaz17 Mar 4, 2026
ccae864
Updated based on new changes + revamp react native quickstart
shahbaz17 Mar 4, 2026
79c2b8c
Merge branch 'main' into sdk-new-structure
shahbaz17 Mar 4, 2026
f1e7f5f
Update sdk/multichain/connect/tutorials/create-multichain-dapp.md
shahbaz17 Mar 5, 2026
527207b
Update sdk/multichain/connect/tutorials/create-multichain-dapp.md
shahbaz17 Mar 5, 2026
85a3af4
Update sdk/multichain/connect/tutorials/create-multichain-dapp.md
shahbaz17 Mar 5, 2026
e288e17
Update sdk/multichain/connect/tutorials/create-multichain-dapp.md
shahbaz17 Mar 5, 2026
aa547b6
Update sdk/multichain/connect/tutorials/create-multichain-dapp.md
shahbaz17 Mar 5, 2026
dfe5898
Update sdk/multichain/connect/tutorials/create-multichain-dapp.md
shahbaz17 Mar 5, 2026
09ab71b
Solana support via Infura for RPC
shahbaz17 Mar 5, 2026
4b4a622
Merge branch 'main' into sdk-new-structure
shahbaz17 Mar 5, 2026
16e54b1
Edit Solana and EVM. (#2741)
bgravenorst Mar 5, 2026
54ac519
Restructure and complete multichain SDK documentation
shahbaz17 Mar 5, 2026
91579f1
Add Solana SDK methods page + sidebar changes
shahbaz17 Mar 5, 2026
dec9543
EVM fixes
shahbaz17 Mar 5, 2026
0796d03
Solana, Multichian fixes + typos
shahbaz17 Mar 5, 2026
cc2d9c1
fix broken link
shahbaz17 Mar 5, 2026
7317eff
Edits as per feedback
shahbaz17 Mar 6, 2026
5ac4217
reword
shahbaz17 Mar 6, 2026
5ddad43
remove as per feedback
shahbaz17 Mar 6, 2026
6a0792c
Merge branch 'main' into sdk-new-structure
shahbaz17 Mar 10, 2026
f7855a6
Update based on feedback on multichain api page
shahbaz17 Mar 10, 2026
f5daac6
Feat/ai copy button (#2743)
shahbaz17 Mar 11, 2026
6ac476d
Rename SDK docs to MetaMask Connect (#2749)
shahbaz17 Mar 11, 2026
da88575
Fix navbar navigation links
shahbaz17 Mar 11, 2026
b6420ea
Fix build + link inspector
shahbaz17 Mar 11, 2026
3bd3c7b
Throw on broken Markdown links; add wallet redirects
shahbaz17 Mar 11, 2026
c3e5b87
Merge branch 'main' into sdk-new-structure
shahbaz17 Mar 11, 2026
8b2f482
Add arbitrum docs to ignorepattern
shahbaz17 Mar 11, 2026
e17cf17
Update .linkspector.yml
shahbaz17 Mar 11, 2026
c9339c7
Merge branch 'main' into sdk-new-structure
shahbaz17 Mar 16, 2026
2a33f8a
Merge branch 'main' into sdk-new-structure
shahbaz17 Mar 17, 2026
cbaa96b
feat. MM Connect documentation (#2754)
shahbaz17 Mar 17, 2026
ba6fc09
Update in-app browser section
shahbaz17 Mar 17, 2026
ac2ac92
nit
shahbaz17 Mar 17, 2026
1589b44
Update migration guide to include polyfill issue
shahbaz17 Mar 17, 2026
6bc028f
minor edits to overview content for style/simplicity
alexandratran Mar 17, 2026
026520b
browser polyfill not needed
shahbaz17 Mar 17, 2026
0fe09f0
Merge branch 'sdk-new-structure' of https://github.com/MetaMask/metam…
shahbaz17 Mar 17, 2026
8adc20b
fix broken anchor
shahbaz17 Mar 17, 2026
5206519
minor edits to multichain content
alexandratran Mar 17, 2026
989a16c
Update as per newer getInfuraRpcUrls changes
shahbaz17 Mar 18, 2026
b52460b
Merge branch 'main' into sdk-new-structure
alexandratran Mar 18, 2026
c18ac51
some evm edits
alexandratran Mar 18, 2026
7eadc22
edit pass including EVM+Solana
alexandratran Mar 18, 2026
9a0d1ec
Merge branch 'main' into sdk-new-structure
shahbaz17 Mar 19, 2026
2c51a8c
fix build
shahbaz17 Mar 19, 2026
ecd4946
clean up redirects
alexandratran Mar 19, 2026
eb48d72
MetaMask Mobile -> The MetaMask mobile app
alexandratran Mar 19, 2026
71638fd
Add getInfuraRpcUrls for connect-solana + update getInfuraRpcUrls for…
shahbaz17 Mar 19, 2026
0be4311
Merge branch 'sdk-new-structure' of https://github.com/MetaMask/metam…
shahbaz17 Mar 19, 2026
9a88091
Migrate MM SDK to MM Connect EVM on MetaMask docs
shahbaz17 Mar 19, 2026
e587669
Update Root.tsx
shahbaz17 Mar 19, 2026
a678260
add infura api key
shahbaz17 Mar 19, 2026
591716e
Handle createEVMClient errors in Root.tsx
shahbaz17 Mar 19, 2026
fa56829
Fix merge issues.
bgravenorst Mar 26, 2026
7f75d0c
Update styles.
bgravenorst Mar 26, 2026
5a132e5
Merge branch 'main' into feat/migrate-sdk-to-mm-connect-evm
shahbaz17 Mar 30, 2026
56c44ea
Merge branch 'main' into feat/migrate-sdk-to-mm-connect-evm
shahbaz17 Apr 1, 2026
803a389
Fixes as per cursor suggestions
shahbaz17 Apr 1, 2026
a46f225
bump version
shahbaz17 Apr 1, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ npm-debug.log*
.envrc
.env
.integrationBuilderCache
.cursor

# Generated Snaps docs
snaps/reference/snaps-api/*.mdx
7 changes: 4 additions & 3 deletions .linkspector.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,9 @@ dirs:
- ./smart-accounts-kit
- ./developer-tools
- ./embedded-wallets
- ./sdk
- ./metamask-connect
- ./services
- ./snaps
- ./wallet
excludedDirs:
- ./build
- ./.vercel
Expand All @@ -28,13 +27,15 @@ ignorePatterns:
- pattern: '^/smart-accounts-kit/'
- pattern: '^/developer-tools/'
- pattern: '^/embedded-wallets/'
- pattern: '^/sdk/'
- pattern: '^/metamask-connect/'
- pattern: '^/services/'
- pattern: '^/snaps/'
- pattern: '^/wallet/'
- pattern: '^/tutorials/'
- pattern: 'https://web3onboard.thirdweb.com'
- pattern: 'https://0xfury.com/privacy'
- pattern: '^https://docs.arbitrum.io'
- pattern: '^https://nodefleet.org'
aliveStatusCodes:
- 200
- 206
Expand Down
133 changes: 11 additions & 122 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,6 @@ guide in some places.
- [Style guide](#style-guide)
- [Format links](#format-links)
- [Add images](#add-images)
- [Update the interactive API reference](#update-the-interactive-api-reference)
- [Update `MetaMask/api-specs`](#update-metamaskapi-specs)
- [Update `ethereum/execution-apis`](#update-ethereumexecution-apis)
- [Test analytics](#test-analytics)

## Contribution workflow
Expand Down Expand Up @@ -74,7 +71,7 @@ To contribute changes:
>
> - All documentation content is located in the `sdk`, `wallet`, `embedded-wallets`, `smart-accounts-kit`, `services`,
> `developer-tools`, `snaps`, and `src/pages` directories.
> - If you add a new documentation page, edit `sdk-sidebar.js`, `wallet-sidebar.js`, `ew-sidebar.js`, `gator-sidebar.js`,
> - If you add a new documentation page, edit `mm-connect-sidebar.js`, `ew-sidebar.js`, `gator-sidebar.js`,
> `services-sidebar.js`, `dashboard-sidebar.js`, or `snaps-sidebar.js` to add the page to the
> [sidebar](https://docs-template.consensys.io/create/configure-docusaurus#sidebar).
> - If you delete, rename, or move a documentation file, add a
Expand Down Expand Up @@ -119,13 +116,13 @@ Refer to the [Consensys documentation style guide](https://docs-template.consens

## Format links

Most links in the Markdown pages use *relative file paths*, for example:
Most links in the Markdown pages use _relative file paths_, for example:

```md
You can enable users to create a [MetaMask smart account](../../concepts/smart-accounts.md) directly in your dapp.
```

However, when linking between different product sections or using the `CardList` component, use *absolute URL paths*. For example:
However, when linking between different product sections or using the `CardList` component, use _absolute URL paths_. For example:

```md
When a dapp requests to submit a batch of transactions atomically, MetaMask may prompt users to upgrade their
Expand All @@ -134,14 +131,14 @@ externally owned account (EOA) to a [MetaMask smart account](/smart-accounts-kit

```md
<CardList
items={[
{
href: '/snaps/learn/about-snaps',
title: 'About Snaps',
description: 'See a high-level, technical overview of the Snaps system.',
},
...
]}
items={[
{
href: '/snaps/learn/about-snaps',
title: 'About Snaps',
description: 'See a high-level, technical overview of the Snaps system.',
},
...
]}
/>
```

Expand All @@ -154,114 +151,6 @@ When adding a new image, such as a screenshot or diagram, make sure the image ha

Additionally, follow the [Consensys guidelines on adding images](https://docs-template.consensys.net/contribute/add-images).

## Update the interactive API reference

The [Wallet JSON-RPC API reference](https://docs.metamask.io/wallet/reference/json-rpc-api/) uses
an internal plugin to import and parse OpenRPC
specifications from [`MetaMask/api-specs`](https://github.com/MetaMask/api-specs) (MetaMask-specific
methods) and [`ethereum/execution-apis`](https://github.com/ethereum/execution-apis) (standard
Ethereum methods).
The site renders documentation for each method based on the specification, and displays an
interactive module to test the methods in your browser.

### Update `MetaMask/api-specs`

To update documentation for MetaMask-specific JSON-RPC API methods:

1. Fork [`MetaMask/api-specs`](https://github.com/MetaMask/api-specs), clone the forked repository
to your computer, and navigate into it:

```bash
git clone git@github.com:<YOUR-USERNAME>/api-specs.git
cd api-specs
```

2. Follow the repository's [`README.md`](https://github.com/MetaMask/api-specs/blob/main/README.md)
instructions to edit the OpenRPC specification and generate the output file, `openrpc.json`.

3. To test the API updates in the MetaMask doc site's interactive reference:

1. Create and switch to a temporary local branch of the doc site, [`MetaMask/metamask-docs`](https://github.com/MetaMask/metamask-docs).
For example, to create and switch to a branch named `test-api-updates`:
```bash
cd metamask-docs
git checkout -b test-api-updates
```
2. Copy and paste the output file `openrpc.json` into the root directory of `metamask-docs`.
3. Use [`http-server`](https://www.npmjs.com/package/http-server) to serve `openrpc.json` locally.
Install `http-server` if you haven't yet, and start the server:
```bash
npm install --global http-server
http-server
```
The `openrpc.json` file is now served at [`http://127.0.0.1:8080/openrpc.json`](http://127.0.0.1:8080/openrpc.json).
4. In `src/plugins/plugin-json-rpc.ts`, update the following line to point to the locally served `openrpc.json` file:
```diff
- export const MM_RPC_URL = "https://metamask.github.io/api-specs/latest/openrpc.json";
+ export const MM_RPC_URL = "http://127.0.0.1:8080/openrpc.json";
```
5. In a new terminal window, preview the doc site locally:
```bash
cd metamask-docs
npm start
```
6. Navigate to the API reference, and view your updates.

4. Add and commit your changes to `api-specs`, and create a PR.

5. Once your PR is approved and merged, the following must happen to publish the changes to the
MetaMask doc site:

1. A new version of `api-specs` must be released by a user with write access to the repository.
To release, go to the [Create Release Pull Request](https://github.com/MetaMask/api-specs/actions/workflows/create-release-pr.yml)
action, select **Run workflow**, and enter a specific version to bump to in the last text box
(for example, `0.10.6`). This creates a PR releasing a version of `api-specs`.
2. Once the release PR is merged, the [Publish Release](https://github.com/MetaMask/api-specs/actions/workflows/publish-release.yml)
action must be approved by an npm publisher.
You can request an approval in the **#metamask-dev** Slack channel tagging
**@metamask-npm-publishers**.
For example:
> @metamask-npm-publishers `@metamask/api-specs@0.10.6` is awaiting deployment :rocketship:
https://github.com/MetaMask/api-specs/actions/runs/10615788573

### Update `ethereum/execution-apis`

To update documentation for standard Ethereum JSON-RPC API methods:

1. Fork [`ethereum/execution-apis`](https://github.com/ethereum/execution-apis), clone the forked
repository to your computer, and navigate into it:

```bash
git clone git@github.com:<YOUR-USERNAME>/execution-apis.git
cd execution-apis
```

2. Follow the repository's [`README.md`](https://github.com/ethereum/execution-apis/blob/main/README.md)
instructions to edit the OpenRPC specification and generate the output file, `openrpc.json`.

3. To test the API updates in the MetaMask doc site's interactive reference, complete Step 3 in
[Update `MetaMask/api-specs`](#update-metamaskapi-specs).

4. Add and commit your changes to `execution-apis`, and create a PR.

5. Once your PR is approved and merged, the following must happen to publish the changes to the
MetaMask doc site:

1. `api-specs` must import the updated Ethereum API specification.
Go to the [commit history](https://github.com/ethereum/execution-apis/commits/assembled-spec/)
of the `assembled-spec` branch of `execution-apis`.
Copy the full commit hash of the latest commit titled "assemble openrpc.json."
Update the following line in `merge-openrpc.js` of `api-specs` with the updated commit hash,
and create a PR:
```diff
const getFilteredExecutionAPIs = () => {
- return fetch("https://raw.githubusercontent.com/ethereum/execution-apis/ac19b518a2596221cd7cd6421ee3dc654d7ff3b7/refs-openrpc.json")
+ return fetch("https://raw.githubusercontent.com/ethereum/execution-apis/f75d4cc8eeb5d1952bd69f901954686b74c34c9b/refs-openrpc.json")
```
2. Once the change to `merge-openrpc.js` is merged, Step 5 in
[Update `MetaMask/api-specs`](#update-metamaskapi-specs) must be completed to publish the
changes to the MetaMask doc site.

## Test analytics

The [`docusaurus-plugin-segment`](https://github.com/xer0x/docusaurus-plugin-segment) plugin enables
Expand Down
111 changes: 50 additions & 61 deletions docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,6 @@ import fs from 'fs'
require('dotenv').config()
const { themes } = require('prism-react-renderer')
const { REF_ALLOW_LOGIN_PATH } = require('./src/lib/constants')
const {
fetchAndGenerateDynamicSidebarItems,
NETWORK_NAMES,
MM_REF_PATH,
MM_RPC_URL,
} = require('./src/plugins/plugin-json-rpc')
const codeTheme = themes.dracula
const productsDropdown = fs.readFileSync('./src/components/NavDropdown/Products.html', 'utf-8')
const baseUrl = process.env.DEST || '/'
Expand Down Expand Up @@ -81,14 +75,36 @@ const config = {
attributes: {
type: 'application/ld+json',
},
innerHTML: `
innerHTML: JSON.stringify({
"@context": "https://schema.org",
"@type": "Organization",
"@id": `${fullUrl}#organization`,
"name": "MetaMask",
"url": fullUrl,
"logo": new URL('img/favicons/favicon-96x96.png', fullUrl).toString(),
"description": "MetaMask is the leading self-custodial cryptocurrency wallet and Web3 gateway, enabling developers to build dapps that connect to MetaMask across EVM and Solana ecosystems.",
"sameAs": [
"https://github.com/MetaMask",
"https://twitter.com/MetaMask",
"https://www.linkedin.com/company/metamask",
"https://metamask.io"
]
}),
},
{
"@context": "https://schema.org",
"@type": "Organization",
"url": "${fullUrl}",
"logo": "${new URL('img/favicons/favicon-96x96.png', fullUrl).toString()}"
}
`,
tagName: 'script',
attributes: {
type: 'application/ld+json',
},
innerHTML: JSON.stringify({
"@context": "https://schema.org",
"@type": "WebSite",
"@id": `${fullUrl}#website`,
"name": "MetaMask Developer Documentation",
"url": fullUrl,
"publisher": { "@id": `${fullUrl}#organization` },
"description": "Official developer documentation for MetaMask Connect, Embedded Wallets, Snaps, and the MetaMask developer platform."
}),
},
],

Expand All @@ -115,6 +131,7 @@ const config = {
DISCOURSE_API_KEY: process.env.DISCOURSE_API_KEY,
DISCOURSE_API_USERNAME: process.env.DISCOURSE_API_USERNAME,
DISCOURSE_CATEGORY_ID: process.env.DISCOURSE_CATEGORY_ID,
INFURA_API_KEY: process.env.INFURA_API_KEY || '',
},

trailingSlash: true,
Expand Down Expand Up @@ -265,37 +282,13 @@ const config = {
[
'@docusaurus/plugin-content-docs',
{
id: 'wallet',
path: 'wallet',
routeBasePath: 'wallet',
id: 'metamask-connect',
path: 'metamask-connect',
routeBasePath: 'metamask-connect',
editUrl: 'https://github.com/MetaMask/metamask-docs/edit/main/',
sidebarPath: require.resolve('./wallet-sidebar.js'),
breadcrumbs: false,
remarkPlugins,
rehypePlugins,
sidebarItemsGenerator: async function ({ defaultSidebarItemsGenerator, ...args }) {
const sidebarItems = await defaultSidebarItemsGenerator(args)
const dynamicItems = await fetchAndGenerateDynamicSidebarItems(
MM_RPC_URL,
MM_REF_PATH,
NETWORK_NAMES.metamask
)
if (args.item.dirName === 'reference/json-rpc-methods') {
return [...sidebarItems, ...dynamicItems]
}
return sidebarItems
},
},
],
[
'@docusaurus/plugin-content-docs',
{
id: 'sdk',
path: 'sdk',
routeBasePath: 'sdk',
editUrl: 'https://github.com/MetaMask/metamask-docs/edit/main/',
sidebarPath: require.resolve('./sdk-sidebar.js'),
sidebarPath: require.resolve('./mm-connect-sidebar.js'),
breadcrumbs: false,
showLastUpdateTime: true,
remarkPlugins,
rehypePlugins,
},
Expand Down Expand Up @@ -384,18 +377,18 @@ const config = {
description: 'Complete documentation for MetaMask Embedded Wallets',
},
{
filename: 'llms-sdk.txt',
includePatterns: ['sdk/**/*.{md,mdx}'],
filename: 'llms-metamask-connect.txt',
includePatterns: ['metamask-connect/**/*.{md,mdx}'],
fullContent: false,
title: 'MetaMask SDK documentation',
description: 'Documentation links for MetaMask SDK',
title: 'MetaMask Connect documentation',
description: 'Documentation links for MetaMask Connect',
},
{
filename: 'llms-sdk-full.txt',
includePatterns: ['sdk/**/*.{md,mdx}'],
filename: 'llms-metamask-connect-full.txt',
includePatterns: ['metamask-connect/**/*.{md,mdx}'],
fullContent: true,
title: 'MetaMask SDK documentation',
description: 'Complete documentation for MetaMask SDK',
title: 'MetaMask Connect documentation',
description: 'Complete documentation for MetaMask Connect',
},
{
filename: 'llms-smart-accounts-kit.txt',
Expand Down Expand Up @@ -493,7 +486,7 @@ const config = {
{
name: 'keywords',
content:
'MetaMask, Embedded Wallets, Quickstart, Web3 Development, SDK, Wallet Integration, API, Dapp Development, Blockchain Development, Ethereum Development, Smart Contract, Account Abstraction, Snaps, Crypto Wallet, DeFi, NFT, Infura, Services, Dashboard',
'MetaMask, Embedded Wallets, Quickstart, Web3 Development, SDK, MetaMask Connect, Wallet Integration, API, Dapp Development, Blockchain Development, Ethereum Development, Smart Contract, Account Abstraction, Snaps, Crypto Wallet, DeFi, NFT, Infura, Services, Dashboard',
},
// Twitter-specific meta tags
{
Expand Down Expand Up @@ -612,21 +605,17 @@ const config = {
title: 'Documentation',
items: [
{
label: 'SDK',
to: '/sdk',
label: 'MetaMask Connect',
to: '/metamask-connect',
},
{
label: 'Wallet API',
to: '/wallet',
label: 'Embedded Wallets',
to: '/embedded-wallets',
},
{
label: 'Smart Accounts Kit',
to: '/smart-accounts-kit',
},
{
label: 'Embedded Wallets',
to: '/embedded-wallets',
},
{
label: 'Snaps',
to: '/snaps',
Expand All @@ -653,7 +642,7 @@ const config = {
href: 'https://github.com/MetaMask/metamask-extension/',
},
{
label: 'MetaMask SDK GitHub',
label: 'MetaMask Connect GitHub',
href: 'https://github.com/MetaMask/metamask-sdk/',
},
{
Expand Down Expand Up @@ -798,7 +787,7 @@ const config = {
},
mermaid: {
options: {
fontFamily: 'arial, verdana, sans-serif;',
fontFamily: 'arial, verdana, sans-serif',
wrap: true,
securityLevel: 'loose',
sequence: {
Expand Down
Loading