Skip to content

Commit 0804d45

Browse files
committed
fix breaking card links, remove what's new content, and fix quickstart card styles
1 parent e91e2a4 commit 0804d45

File tree

8 files changed

+37
-226
lines changed

8 files changed

+37
-226
lines changed

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,3 @@ Fixes #
1111
## Preview
1212

1313
<!-- Provide a PR preview link to the page(s) changed. -->
14-
15-
## Checklist
16-
17-
Complete this checklist before merging your PR:
18-
19-
- [ ] If this PR contains a major change to the documentation content, I have added an entry to the top of the ["What's new?"](https://github.com/MetaMask/metamask-docs/blob/main/docs/whats-new.md) page.
20-
- [ ] The proposed changes have been reviewed and approved by a member of the documentation team.

CONTRIBUTING.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,8 +79,6 @@ To contribute changes:
7979
> - If you delete, rename, or move a documentation file, add a
8080
> [redirect](https://vercel.com/docs/edge-network/redirects#configuration-redirects).
8181
> - See additional instructions for [updating the interactive API reference](#update-the-interactive-api-reference).
82-
> - If the PR contains a major change to the documentation content, add an entry to the top of
83-
> the ["What's new?"](docs/whats-new.md) page.
8482
8583
5. [Preview your changes locally](https://docs-template.consensys.net/contribute/preview) to check
8684
that the changes render correctly.

docs/whats-new.md

Lines changed: 2 additions & 173 deletions
Large diffs are not rendered by default.

gator_versioned_docs/version-0.12.0/index.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,17 +48,17 @@ Check out the following sections to get started with the MetaMask Delegation Too
4848
<CardList
4949
items={[
5050
{
51-
href: "get-started",
51+
href: "/delegation-toolkit/get-started",
5252
title: "🏁 Get started",
5353
description: "If you're ready to get started building, install the Toolkit and follow a quickstart.",
5454
},
5555
{
56-
href: "how-to",
56+
href: "/delegation-toolkit/how-to",
5757
title: "🛠️ How-to guides",
5858
description: "To complete specific tasks with the Delegation Toolkit, follow the how-to guides.",
5959
},
6060
{
61-
href: "concepts",
61+
href: "/delegation-toolkit/concepts",
6262
title: "💭 Concepts",
6363
description: "If you're new to the Delegation Toolkit, learn about some key concepts.",
6464
}

sdk/index.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ With the SDK, you can easily onboard users and interact with their accounts on d
1616
<p align="center">
1717
<Button
1818
as="a"
19-
href="connect/javascript-wagmi"
19+
href="/sdk/connect/javascript-wagmi"
2020
label="Get started with the SDK"
2121
icon="arrow-right"
2222
style={{
@@ -46,27 +46,27 @@ You can access it directly via npm, through popular developer libraries like Wag
4646
<CardList
4747
items={[
4848
{
49-
href: 'connect/javascript-wagmi',
49+
href: '/sdk/connect/javascript-wagmi',
5050
title: 'JavaScript + Wagmi (recommended)',
5151
description: 'Use the CLI or template to set up the SDK in a Next.js and Wagmi dapp.',
5252
},
5353
{
54-
href: 'connect/javascript',
54+
href: '/sdk/connect/javascript',
5555
title: 'JavaScript',
5656
description: 'Set up the SDK in a JavaScript dapp.',
5757
},
5858
{
59-
href: 'connect/javascript-dynamic',
59+
href: '/sdk/connect/javascript-dynamic',
6060
title: 'Dynamic SDK',
6161
description: 'Use the CLI or template to set up Dynamic SDK in a Next.js dapp. Use MetaMask SDK features with Dynamic.',
6262
},
6363
{
64-
href: 'connect/javascript-web3auth',
64+
href: '/sdk/connect/javascript-web3auth',
6565
title: 'Web3Auth SDK',
6666
description: 'Use the CLI or template to set up Web3Auth SDK in a Next.js dapp. Use MetaMask SDK features with Web3Auth.',
6767
},
6868
{
69-
href: 'connect/react-native',
69+
href: '/sdk/connect/react-native',
7070
title: 'React Native',
7171
description: 'Set up the SDK in a React Native or Expo dapp.',
7272
},

snaps/index.mdx

Lines changed: 21 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -24,57 +24,57 @@ The following Snaps features are available in the stable version of MetaMask:
2424
<CardList
2525
items={[
2626
{
27-
href: 'features/cron-jobs',
27+
href: '/snaps/features/cron-jobs',
2828
title: 'Cron jobs',
2929
description: 'Schedule periodic actions for your users.',
3030
},
3131
{
32-
href: 'features/custom-evm-accounts',
32+
href: '/snaps/features/custom-evm-accounts',
3333
title: 'Custom EVM accounts',
3434
description: 'Connect to custom EVM accounts in MetaMask.',
3535
},
3636
{
37-
href: 'features/custom-name-resolution',
37+
href: '/snaps/features/custom-name-resolution',
3838
title: 'Custom name resolution',
3939
description: 'Resolve names to addresses and vice versa.',
4040
},
4141
{
42-
href: 'features/custom-ui',
42+
href: '/snaps/features/custom-ui',
4343
title: 'Custom UI',
4444
description: 'Display custom UI in MetaMask using a set of pre-defined components.',
4545
},
4646
{
47-
href: 'features/data-storage',
47+
href: '/snaps/features/data-storage',
4848
title: 'Data storage',
4949
description: 'Store encrypted and unencrypted data within a Snap.',
5050
},
5151
{
52-
href: 'features/custom-ui/dialogs',
52+
href: '/snaps/features/custom-ui/dialogs',
5353
title: 'Dialogs',
5454
description: 'Display custom alert, confirmation, or prompt screens in MetaMask.',
5555
},
5656
{
57-
href: 'features/custom-ui/home-pages',
57+
href: '/snaps/features/custom-ui/home-pages',
5858
title: 'Home pages',
5959
description: 'Display a dedicated UI page in MetaMask for your Snap.',
6060
},
6161
{
62-
href: 'features/custom-ui/interactive-ui',
62+
href: '/snaps/features/custom-ui/interactive-ui',
6363
title: 'Interactive UI',
6464
description: 'Display interactive UI in MetaMask that can be updated dynamically.',
6565
},
6666
{
67-
href: 'features/lifecycle-hooks',
67+
href: '/snaps/features/lifecycle-hooks',
6868
title: 'Lifecycle hooks',
6969
description: 'Call an action when your Snap is installed or updated.',
7070
},
7171
{
72-
href: 'features/localization',
72+
href: '/snaps/features/localization',
7373
title: 'Localization',
7474
description: "Translate your Snap UI based on the user's locale.",
7575
},
7676
{
77-
href: 'features/network-access',
77+
href: '/snaps/features/network-access',
7878
title: 'Network access',
7979
description: (
8080
<>
@@ -83,29 +83,27 @@ The following Snaps features are available in the stable version of MetaMask:
8383
),
8484
},
8585
{
86-
href: 'features/non-evm-networks',
86+
href: '/snaps/features/non-evm-networks',
8787
title: 'Non-EVM networks',
8888
description: 'Manage non-EVM accounts and assets in MetaMask.',
8989
},
9090
{
91-
href: 'features/notifications',
91+
href: '/snaps/features/notifications',
9292
title: 'Notifications',
9393
description: 'Notify users directly in MetaMask, or natively in their OS.',
9494
},
9595
{
96-
icon: require('./assets/features/signature-insights.png').default,
97-
href: 'features/signature-insights',
96+
href: '/snaps/features/signature-insights',
9897
title: 'Signature insights',
9998
description: 'Provide signature insights before a user signs a message.',
10099
},
101100
{
102-
icon: require('./assets/features/getfile.png').default,
103-
href: 'features/static-files',
101+
href: '/snaps/features/static-files',
104102
title: 'Static files',
105103
description: 'Lazy-load static files such as Wasm modules or ZK circuits.',
106104
},
107105
{
108-
href: 'features/transaction-insights',
106+
href: '/snaps/features/transaction-insights',
109107
title: 'Transaction insights',
110108
description: "Provide transaction insights in MetaMask's transaction confirmation window.",
111109
},
@@ -117,7 +115,7 @@ The following Snaps features are only available in [MetaMask Flask](get-started/
117115
<CardList
118116
items={[
119117
{
120-
href: 'features/custom-evm-accounts#account-abstraction-erc-4337',
118+
href: '/snaps/features/custom-evm-accounts#account-abstraction-erc-4337',
121119
title: 'Account abstraction',
122120
description: 'Connect to ERC-4337 accounts in MetaMask.',
123121
flaskOnly: true,
@@ -132,22 +130,22 @@ If you're new to Snaps, get started learning with the following topics:
132130
<CardList
133131
items={[
134132
{
135-
href: 'learn/about-snaps',
133+
href: '/snaps/learn/about-snaps',
136134
title: 'About Snaps',
137135
description: 'See a high-level, technical overview of the Snaps system.',
138136
},
139137
{
140-
href: 'learn/about-snaps/apis',
138+
href: '/snaps/learn/about-snaps/apis',
141139
title: 'About the Snaps APIs',
142140
description: 'Learn about how Snaps, dapps, and MetaMask communicate with each other.',
143141
},
144142
{
145-
href: 'learn/tutorials/gas-estimation',
143+
href: '/snaps/learn/tutorials/gas-estimation',
146144
title: 'Gas estimation Snap tutorial',
147145
description: 'Follow an end-to-end tutorial to create a Snap that estimates gas fees.',
148146
},
149147
{
150-
href: 'learn/resources',
148+
href: '/snaps/learn/resources',
151149
title: 'Snaps resources',
152150
description:
153151
'Learn and explore MetaMask Snaps with supplemental resources, tools, examples, and guides.',

src/pages/quickstart/NavigationOverlay/NavigationOverlay.module.css

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
background: var(--ifm-background-surface-color);
66
z-index: 100;
77
animation: fade-in 0.3s ease-out;
8-
height: max-content;
8+
height: 100vh;
99
}
1010

1111
/* Dark mode: Use darker background for better contrast with cards */
@@ -19,7 +19,7 @@ html[data-theme='dark'] .overlayContainer {
1919
overflow-y: auto;
2020
display: flex;
2121
flex-direction: column;
22-
margin-top: 80px;
22+
margin-top: 6rem;
2323
}
2424

2525
/* Tablet and up */
@@ -115,7 +115,6 @@ html[data-theme='dark'] .overlayContainer {
115115

116116
/* Flow Container */
117117
.flowContainer {
118-
flex: 1;
119118
display: flex;
120119
flex-direction: column;
121120
}
@@ -194,7 +193,6 @@ html[data-theme='dark'] .overlayContainer {
194193
grid-template-columns: 1fr;
195194
gap: 2rem;
196195
margin-bottom: 2rem;
197-
flex: 1;
198196
}
199197

200198
@media (width >=997px) {
@@ -256,25 +254,24 @@ html[data-theme='dark'] .overlayContainer {
256254
justify-content: space-between;
257255
padding: 2rem;
258256
gap: 0.5rem;
259-
min-height: 16rem;
257+
height: 20rem;
260258
position: relative;
261-
height: 100%;
262259
color: var(--general-black);
263260
}
264261

265262
/* Tablet and up */
266263
@media (width >=768px) {
267264
.cardInner {
268265
padding: 2.4rem;
269-
min-height: 18rem;
266+
height: 22rem;
270267
}
271268
}
272269

273270
/* Desktop and up */
274271
@media (width >=997px) {
275272
.cardInner {
276273
padding: 3.2rem;
277-
min-height: 20rem;
274+
height: 24rem;
278275
}
279276
}
280277

static/llms.txt

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1089,7 +1089,3 @@
10891089
- [Snaps permissions | MetaMask developer documentation](https://docs.metamask.io/snaps/reference/permissions/): See the Snaps permissions reference.
10901090
- [Snaps API | MetaMask developer documentation](https://docs.metamask.io/snaps/reference/snaps-api/): See the Snaps API reference.
10911091
- [Wallet API for Snaps | MetaMask developer documentation](https://docs.metamask.io/snaps/reference/wallet-api-for-snaps/): See the Wallet API for Snaps reference.
1092-
1093-
## Whats-new
1094-
1095-
- [What's new in the documentation? | MetaMask developer documentation](https://docs.metamask.io/whats-new/): Summary of the latest updates to this documentation.

0 commit comments

Comments
 (0)