Skip to content

Commit 3a1a011

Browse files
authored
Merge branch 'main' into simulatev1
2 parents 109e3e9 + 5e5bcbb commit 3a1a011

File tree

89 files changed

+21877
-18199
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

89 files changed

+21877
-18199
lines changed

.github/CODEOWNERS

Lines changed: 1 addition & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -2,22 +2,7 @@
22
# so the listed codeowners apply only if there is no later match.
33

44
# Default owner for all other files
5-
* @MetaMask/activation
6-
7-
# Docusaurus configuration
8-
docusaurus.config.js @MetaMask/activation @MetaMask/tech-writers
9-
10-
# GitHub workflows and templates
11-
/.github/ @MetaMask/activation @MetaMask/tech-writers
12-
13-
# Static image and video files
14-
/static/ @MetaMask/activation @MetaMask/tech-writers
15-
16-
# Vercel configuration
17-
vercel.json @MetaMask/activation @MetaMask/tech-writers
18-
19-
# Sidebar files
20-
*-sidebar.js @MetaMask/activation @MetaMask/tech-writers
5+
* @MetaMask/dashboard @MetaMask/tech-writers
216

227
# All other Markdown files
238
*.md @MetaMask/tech-writers

CONTRIBUTING.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -71,9 +71,9 @@ To contribute changes:
7171

7272
> **Notes:**
7373
>
74-
> - All documentation content is located in the `wallet`, `snaps`, `services`, and
74+
> - All documentation content is located in the `wallet`, `sdk`, `snaps`, `services`, and
7575
> `developer-tools` directories.
76-
> - If you add a new documentation page, edit `wallet-sidebar.js`, `snaps-sidebar.js`,
76+
> - If you add a new documentation page, edit `wallet-sidebar.js`, `sdk-sidebar.js`, `snaps-sidebar.js`,
7777
> `services-sidebar.js`, or `dashboard-sidebar.js` to add the page to the
7878
> [sidebar](https://docs-template.consensys.io/create/configure-docusaurus#sidebar).
7979
> - If you delete, rename, or move a documentation file, add a
@@ -120,7 +120,7 @@ Refer to the [Consensys documentation style guide](https://docs-template.consens
120120

121121
## Add images
122122

123-
All images are located in the `wallet/assets`, `snaps/assets`, `services/images`, and
123+
All images are located in the `wallet/assets`, `sdk/_assets`, `snaps/assets`, `services/images`, and
124124
`developer-tools/images` directories.
125125
When adding a new image, such as a screenshot or diagram, make sure the image has a white or
126126
`#1b1b1d` color background in order for it to be compatible with the site's light and dark modes.

developer-tools/dashboard/get-started/create-api.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ Based on your plan, Infura allows for the following amount of API keys:
1313
- Developer plan - Allows up to five API keys.
1414
- Team plans and higher - No limit on the number of API keys.
1515

16-
For more information, see to the [Infura pricing page](https://www.infura.io/pricing).
16+
For more information, see the [Infura pricing page](https://www.infura.io/pricing).
1717

1818
:::
1919

developer-tools/dashboard/how-to/credit-usage.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ description: View your Infura credit usage stats.
55
# View credit usage
66

77
You can view your daily credit usage in relation to your daily credit quota limit. Daily credit usage
8-
counts are reset everyday at 00:00 UTC for all customers.
8+
counts are reset every day at 00:00 UTC for all customers.
99

1010
Select **View Usage** from the **Daily Credit Usage** section on the dashboard, or select
1111
the **Usage** tab from the **Settings** > **Billing** dropdown.

docs/whats-new.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,15 @@ of the [MetaMask developer page](https://metamask.io/developer/).
1212
## January 2025
1313

1414
- Documented [`eth_simulateV1`](/services/reference/ethereum/json-rpc-methods/eth_simulatev1). ([#1798](https://github.com/MetaMask/metamask-docs/pull/1798))
15+
- Added new [MetaMask SDK documentation section](/sdk).
16+
([#1766](https://github.com/MetaMask/metamask-docs/pull/1766))
17+
- Documented Snaps [`Banner`](/snaps/features/custom-ui/#banner), [`Container`](/snaps/features/custom-ui/#container), [`Footer`](/snaps/features/custom-ui/#footer), [`Skeleton`](/snaps/features/custom-ui/#skeleton), and [`Value`](/snaps/features/custom-ui/#value) UI components.
18+
([#1835](https://github.com/MetaMask/metamask-docs/pull/1835))
1519

1620
## December 2024
1721

1822
- Documented [Swellchain](/services/reference/swellchain) support. ([#1776](https://github.com/MetaMask/metamask-docs/pull/1776))
19-
- Documented [Snap Notifications Expanded View](/snaps/features/notifications/#expanded-view).
23+
- Documented [Snaps notifications expanded view](/snaps/features/notifications/#expanded-view).
2024
([#1774](https://github.com/MetaMask/metamask-docs/pull/1774))
2125
- Documented [`snap_getInterfaceContext`](/snaps/reference/snaps-api/#snap_getinterfacecontext).
2226
([#1772](https://github.com/MetaMask/metamask-docs/pull/1772))
@@ -25,7 +29,7 @@ of the [MetaMask developer page](https://metamask.io/developer/).
2529

2630
- Documented [updated error responses](/services/reference/ethereum/json-rpc-methods) when rate-limiting Infura JSON-RPC API calls. ([#1749](https://github.com/MetaMask/metamask-docs/pull/1749))
2731
- Documented [Unichain Sepolia](/services/reference/unichain) support. ([#1725](https://github.com/MetaMask/metamask-docs/pull/1725))
28-
- Updated Snaps [Custom UI documentation](/snaps/features/custom-ui/) for MetaMask Extension version 12.6.
32+
- Updated Snaps [custom UI documentation](/snaps/features/custom-ui/) for MetaMask Extension version 12.6.
2933
([#1715](https://github.com/MetaMask/metamask-docs/pull/1715))
3034
- Added tutorial for
3135
[creating a simple Starknet dapp](/wallet/how-to/use-non-evm-networks/starknet/create-a-simple-starknet-dapp).

docusaurus.config.js

Lines changed: 23 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -139,18 +139,29 @@ const config = {
139139
breadcrumbs: false,
140140
sidebarItemsGenerator: async function ({ defaultSidebarItemsGenerator, ...args }) {
141141
const sidebarItems = await defaultSidebarItemsGenerator(args);
142-
const dymanicItems = await fetchAndGenerateDynamicSidebarItems(
142+
const dynamicItems = await fetchAndGenerateDynamicSidebarItems(
143143
MM_RPC_URL,
144144
MM_REF_PATH,
145145
NETWORK_NAMES.metamask
146146
)
147147
if (args.item.dirName === "reference/json-rpc-methods") {
148-
return [...sidebarItems, ...dymanicItems]
148+
return [...sidebarItems, ...dynamicItems]
149149
}
150150
return sidebarItems;
151151
}
152152
},
153153
],
154+
[
155+
"@docusaurus/plugin-content-docs",
156+
{
157+
id: "sdk",
158+
path: "sdk",
159+
routeBasePath: "sdk",
160+
editUrl: "https://github.com/MetaMask/metamask-docs/edit/main/",
161+
sidebarPath: require.resolve("./sdk-sidebar.js"),
162+
breadcrumbs: false,
163+
},
164+
],
154165
"./src/plugins/plugin-json-rpc.ts",
155166
isProd
156167
? [
@@ -178,9 +189,13 @@ const config = {
178189
width: 150,
179190
},
180191
items: [
192+
{
193+
to: "sdk",
194+
label: "SDK",
195+
},
181196
{
182197
to: "wallet",
183-
label: "Wallet",
198+
label: "Wallet API",
184199
},
185200
{
186201
to: "snaps",
@@ -248,6 +263,10 @@ const config = {
248263
label: "Wallet",
249264
to: "/wallet",
250265
},
266+
{
267+
label: "SDK",
268+
to: "/sdk",
269+
},
251270
{
252271
label: "Snaps",
253272
to: "/snaps",
@@ -336,7 +355,7 @@ const config = {
336355
appId: "AWX4QVM59R",
337356

338357
// Public API key: it is safe to commit it
339-
apiKey: "6095a25a6824bfa909fa0692e6847ec4",
358+
apiKey: "861f327c200a8eab62a28ee1396f90de",
340359

341360
indexName: "mm--v2-staging",
342361

0 commit comments

Comments
 (0)