Skip to content

Commit d2a72d4

Browse files
committed
Update nav bar
1 parent bab15ec commit d2a72d4

File tree

8 files changed

+710
-177
lines changed

8 files changed

+710
-177
lines changed

docusaurus.config.js

Lines changed: 13 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,12 @@ const {
1212
MM_RPC_URL,
1313
} = require('./src/plugins/plugin-json-rpc')
1414
const codeTheme = themes.dracula
15-
const helpDropdown = fs.readFileSync('./src/components/NavDropdown/DeveloperTools.html', 'utf-8')
16-
const connectDropdown = fs.readFileSync(
17-
'./src/components/NavDropdown/ConnectMetaMask.html',
15+
const learnDropdown = fs.readFileSync('./src/components/NavDropdown/Learn.html', 'utf-8')
16+
const productsDropdown = fs.readFileSync(
17+
'./src/components/NavDropdown/Products.html',
1818
'utf-8'
1919
)
2020
const baseUrl = process.env.DEST || '/';
21-
const embedDropdown = fs.readFileSync('./src/components/NavDropdown/EmbedMetaMask.html', 'utf-8')
22-
const extendDropdown = fs.readFileSync('./src/components/NavDropdown/ExtendScale.html', 'utf-8')
2321
const npm2yarnPlugin = [require('@docusaurus/remark-plugin-npm2yarn'), { sync: true }]
2422
/** @type {import('@docusaurus/types').Config} */
2523
const siteUrl = 'https://docs.metamask.io'
@@ -362,31 +360,21 @@ const config = {
362360
items: [
363361
{
364362
type: 'dropdown',
365-
label: 'Connect to MetaMask',
363+
label: 'Products',
366364
items: [
367365
{
368366
type: 'html',
369-
value: connectDropdown,
367+
value: productsDropdown,
370368
},
371369
],
372370
},
373371
{
374372
type: 'dropdown',
375-
label: 'Embed MetaMask',
373+
label: 'Learn',
376374
items: [
377375
{
378376
type: 'html',
379-
value: embedDropdown,
380-
},
381-
],
382-
},
383-
{
384-
type: 'dropdown',
385-
label: 'Extend and scale',
386-
items: [
387-
{
388-
type: 'html',
389-
value: extendDropdown,
377+
value: learnDropdown,
390378
},
391379
],
392380
},
@@ -396,18 +384,14 @@ const config = {
396384
position: 'left',
397385
},
398386
{
399-
type: 'dropdown',
400-
label: 'Developer tools',
401-
items: [
402-
{
403-
type: 'html',
404-
value: helpDropdown,
405-
},
406-
],
387+
to: 'developer-tools/faucet/',
388+
label: "Faucet",
389+
position: 'right',
390+
excludeUrl: REF_ALLOW_LOGIN_PATH,
407391
},
408392
{
409-
to: 'whats-new',
410-
label: "What's new?",
393+
to: 'https://community.metamask.io/',
394+
label: "Help ↗",
411395
position: 'right',
412396
},
413397
{

src/components/NavDropdown/ConnectMetaMask.html

Lines changed: 0 additions & 35 deletions
This file was deleted.

src/components/NavDropdown/DeveloperTools.html

Lines changed: 0 additions & 33 deletions
This file was deleted.

src/components/NavDropdown/EmbedMetaMask.html

Lines changed: 0 additions & 38 deletions
This file was deleted.

src/components/NavDropdown/ExtendScale.html

Lines changed: 0 additions & 38 deletions
This file was deleted.

src/components/NavDropdown/Learn.html

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
<div class="sdk-menu">
2+
<span class="sdk-selection-menu selected-menu" id="features-menu">
3+
<ul>
4+
<li>
5+
<a href="/features/">
6+
<div>
7+
<h2>Features</h2>
8+
<p>Explore Metamask features and capabilities for developers.</p>
9+
</div>
10+
</a>
11+
</li>
12+
<li>
13+
<a href="/tutorials/">
14+
<div>
15+
<h2>Tutorials</h2>
16+
<p>Step by step guides to help you build with MetaMask.</p>
17+
</div>
18+
</a>
19+
</li>
20+
21+
</ul>
22+
</span>
23+
</div>

0 commit comments

Comments
 (0)