Skip to content

Conversation

@shahbaz17
Copy link
Member

@shahbaz17 shahbaz17 commented Nov 26, 2025

Description

Issue(s) fixed

Fixes #

Preview

Checklist

  • If this PR updates or adds documentation content that changes or adds technical meaning, it has received an approval from an engineer or DevRel from the relevant team.
  • If this PR updates or adds documentation content, it has received an approval from a technical writer.

External contributor checklist

  • I've read the contribution guidelines.
  • I've created a new issue (or assigned myself to an existing issue) describing what this PR addresses.

Note

Restructures EVM Connect docs: adds Quickstart section, reorganizes guides (send/sign/interact), updates links/assets and sidebar, and changes markdown broken link handling to warn.

  • EVM Docs IA/Structure:
    • Quickstart: Add evm/connect/quickstart/* (JavaScript, Wagmi, RainbowKit, ConnectKit, React Native, Dynamic, Embedded Wallets) and update sdk/evm/index cards to point to them.
    • Guides reorg: Introduce categories Send transactions and Sign data; add evm/connect/guides/interact-with-contracts; consolidate signing into evm/connect/guides/sign-data/index (+ siwe).
    • Removal/Migration: Remove evm/connect/guides/javascript/interact-with-contracts.md and JavaScript-specific nested guide structure.
  • Navigation:
    • Update sdk-sidebar.js to reflect new Quickstart and Guides structure; add MetaMask Exclusive group; tidy JSON-RPC category link spacing.
  • Content updates/fixes:
    • Standardize code examples (single quotes), update relative asset paths (../_assets/*), fix batching links in batch-requests and Wagmi guides, refresh tables, and example code in provider API reference.
  • Config:
    • In docusaurus.config.js, set markdown.hooks.onBrokenMarkdownLinks from throw to warn.

Written by Cursor Bugbot for commit 4adc574. This will update automatically on new commits. Configure here.

@shahbaz17 shahbaz17 requested review from a team as code owners November 26, 2025 16:27
@vercel
Copy link

vercel bot commented Nov 26, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Comments Updated (UTC)
metamask-docs Building Building Preview Comment Nov 26, 2025 4:27pm

@shahbaz17 shahbaz17 merged commit 6aad59b into improve-js-sections Nov 26, 2025
4 of 5 checks passed
@shahbaz17 shahbaz17 deleted the fix-evm-structure branch November 26, 2025 16:27
<p align="center">
<a href="https://metamask-sdk-examples.vercel.app/" target="_blank">
<img src={require("../../_assets/network.gif").default} alt="Switch Networks" width="450px" />
<img src={require(networkGif).default} alt="Switch Networks" width="450px" />
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Bug: Incorrect require() usage with imported module variable

The code imports a gif file as a module variable (e.g., import networkGif from '...') then incorrectly passes that variable to require() like require(networkGif).default. The require() function expects a string path, not an already-imported module. This will cause a runtime error and the images won't display. The fix is to either use the imported variable directly (src={networkGif}) or use require() with a string path.

Additional Locations (1)

Fix in Cursor Fix in Web

shahbaz17 added a commit that referenced this pull request Nov 27, 2025
* Enhance JS section

Add viem, web3, ethers support

* Feat EVM Structure changes (#2538)

* fix some cursor issues and use mm connect package

* fix links, slight file restructure

* add wagmi tabs + edits

* update redirects

* fix link

---------

Co-authored-by: Alexandra Carrillo <alexandra.carrillo@consensys.net>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants