Skip to content

Commit

Permalink
Fix internal hyperlinks (MetaMask#222)
Browse files Browse the repository at this point in the history
  • Loading branch information
rekmarks authored Jan 29, 2021
1 parent d26be6d commit 18b3332
Show file tree
Hide file tree
Showing 6 changed files with 15 additions and 15 deletions.
4 changes: 2 additions & 2 deletions docs/guide/create-dapp.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ We will be building this [app](https://metamask.github.io/test-dapp/)

## Project Setup

Before you set up make sure you've visited and gone through our [Getting Started Guide](./guide/getting-started.html#getting-started)
Before you set up make sure you've visited and gone through our [Getting Started Guide](./getting-started.html#getting-started)

Make sure you have:

Expand Down Expand Up @@ -69,7 +69,7 @@ As you can see here, as soon as the content in the DOM is loaded we are calling

What we'll cover in part one:

- [Connecting to the MetaMask Wallet](./guide/create-dapp.html#connecting-to-the-metamask-wallet)
- [Connecting to the MetaMask Wallet](./create-dapp.html#connecting-to-the-metamask-wallet)
- See our eth_accounts result
- Display our network number
- Display our ChainId
Expand Down
4 changes: 2 additions & 2 deletions docs/guide/ethereum-provider.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ We recommend that all web3 site developers read the [Basic Usage](#basic-usage)

::: tip Recent Breaking Provider Changes
If you are an Ethereum application developer and are looking for information about our January 2021 provider API changes,
please see our [Migration Guide](./guide/provider-migration.html) for more details.
please see our [Migration Guide](./provider-migration.html) for more details.
:::

MetaMask injects a global API into websites visited by its users at `window.ethereum`.
Expand Down Expand Up @@ -115,7 +115,7 @@ If the request fails for any reason, the Promise will reject with an [Ethereum R

MetaMask supports most standardized Ethereum RPC methods, in addition to a number of methods that may not be
supported by other wallets.
See the MetaMask [RPC API documentation](./guide/rpc-api.html) for details.
See the MetaMask [RPC API documentation](./rpc-api.html) for details.

#### Example

Expand Down
8 changes: 4 additions & 4 deletions docs/guide/getting-started.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ This guide assumes intermediate knowledge of HTML, CSS, and JavaScript.
Once MetaMask is installed and running, you should find that new browser tabs have a `window.ethereum` object available in the developer console.
This is how your website will interact with MetaMask.

You can review the full API for that object [here](./guide/ethereum-provider.html).
You can review the full API for that object [here](./ethereum-provider.html).
Note that in **over the course of 2020**, we are introducing significant changes to this API, and we recommend that you refer to its documentation.

## Basic Considerations
Expand All @@ -24,7 +24,7 @@ if (typeof window.ethereum !== 'undefined') {
}
```

You can review the full API for the `window.ethereum` object [here](./guide/ethereum-provider.html).
You can review the full API for the `window.ethereum` object [here](./ethereum-provider.html).

### Running a Test Network

Expand All @@ -36,7 +36,7 @@ Since your seed phrase is the power to control all your accounts, it is probably

#### Resetting Your Local Nonce Calculation

If you're running a test blockchain and restart it, you can accidentally confuse MetaMask because it calculates the next [nonce](./guide/sending-transactions.html#nonce-ignored)
If you're running a test blockchain and restart it, you can accidentally confuse MetaMask because it calculates the next [nonce](./sending-transactions.html#nonce-ignored)
based on both the network state _and_ the known sent transactions.

To clear MetaMask's transaction queue, and effectively reset its nonce calculation, you can use the `Reset Account` button in `Settings` (available in the top-right sandwich menu).
Expand All @@ -53,7 +53,7 @@ Currently there are a few stateful things to consider when interacting with this
- What is the current account?

Both of these are available synchronously as `ethereum.networkVersion` and `ethereum.selectedAddress`.
You can listen for changes using events too, see ([the API reference](./guide/ethereum-provider.html)).
You can listen for changes using events too, see ([the API reference](./ethereum-provider.html)).

### Connecting to MetaMask

Expand Down
4 changes: 2 additions & 2 deletions docs/guide/mobile-best-practices.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ If this page doesn't answer your question, please feel free to open an issue [in

::: tip Recent Breaking Provider Changes
If you are an Ethereum application developer and are looking for information about our January 2021 provider API changes,
please see our [Migration Guide](./guide/provider-migration.html) for more details.
please see our [Migration Guide](./provider-migration.html) for more details.
:::

The [provider API](./guide/ethereum-provider.html) is the same for both MetaMask Mobile and the desktop extension.
The [provider API](./ethereum-provider.html) is the same for both MetaMask Mobile and the desktop extension.
However, the providers become available (i.e., are injected into the page) at different points in the page lifecycle.

### Provider Availability
Expand Down
6 changes: 3 additions & 3 deletions docs/guide/rpc-api.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# RPC API

MetaMask uses the [`ethereum.request(args)` method](./guide/ethereum-provider.html#ethereum-request-args) to wrap an RPC API.
MetaMask uses the [`ethereum.request(args)` method](./ethereum-provider.html#ethereum-request-args) to wrap an RPC API.

The API is based on an interface exposed by all Ethereum clients, along with a growing number of methods that may or may not be supported by other wallets.

Expand Down Expand Up @@ -55,7 +55,7 @@ If you're interested in learning more about the theory behind this _capability_-

::: tip Tip EIP-1102
This method is specified by [EIP-1102](https://eips.ethereum.org/EIPS/eip-1102).
It is equivalent to the deprecated [`ethereum.enable()`](./guide/ethereum-provider.html#ethereum-enable) provider API method.
It is equivalent to the deprecated [`ethereum.enable()`](./ethereum-provider.html#ethereum-enable) provider API method.

Under the hood, it calls [`wallet_requestPermissions`](#wallet-requestpermissions) for the `eth_accounts` permission.
Since `eth_accounts` is currently the only permission, this method is all you need for now.
Expand Down Expand Up @@ -180,7 +180,7 @@ If the caller has no permissions, the array will be empty.

::: tip Tip
As an API consumer, you are unlikely to have to call this method yourself.
Please see the [Onboarding Library documentation](./guide/onboarding-library.html) for more information.
Please see the [Onboarding Library documentation](./onboarding-library.html) for more information.
:::

#### Returns
Expand Down
4 changes: 2 additions & 2 deletions docs/guide/site-compatibility-checklist.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
# Site Compatibility Checklist

- Ensure that your site is compatible with the [MetaMask Ethereum provider API](./guide/ethereum-provider.html) and review the [MetaMask Mobile best practices](./guide/mobile-best-practices.html)
- Ensure that your site is compatible with the [MetaMask Ethereum provider API](./ethereum-provider.html) and review the [MetaMask Mobile best practices](./mobile-best-practices.html)

- Include MetaMask Mobile as a listed wallet in your application, and link to open the MetaMask Mobile app (if installed) or to go to the app store (if not yet installed)
- We recommend adding a `Connect With MetaMask` button and using [deeplinks](https://metamask.github.io/metamask-deeplinks/)
- For more information about deeplinks, please see the [deeplinking documentation](./guide/mobile-best-practices.html#deeplinking)
- For more information about deeplinks, please see the [deeplinking documentation](./mobile-best-practices.html#deeplinking)

Please direct your users to either the relevant app store listing or to [the MetaMask homepage](https://metamask.io/download.html) to download MetaMask Mobile

Expand Down

0 comments on commit 18b3332

Please sign in to comment.