Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
62 commits
Select commit Hold shift + click to select a range
963ee5a
Update snaps examples linked from docs (#878)
Montoya Aug 10, 2023
f27142f
Improve snaps permissions doc (#886)
alexandratran Aug 17, 2023
3b893c5
Update SDK concepts (#885)
alexandratran Aug 17, 2023
76aee40
Document how to work with third-party snaps (#847)
ziad-saab Aug 22, 2023
b012f3b
Added admonition for endowment:long-running topic (#891)
mjsmike62 Aug 22, 2023
b19a919
Update rpc-api.md (#893)
Montoya Aug 23, 2023
22433d2
Correct multiple mistakes in these links and add one more link (#894)
Montoya Aug 24, 2023
905631d
Better clarifications for publishing snaps (#897)
Montoya Aug 25, 2023
44564ae
Ethereum provider clarification - fixes #882 (#896)
Montoya Aug 25, 2023
92281d2
Document the eth_accounts permission for snaps (#889)
ziad-saab Aug 29, 2023
4916da0
Correct return values for prompt dialog (#902)
Montoya Aug 31, 2023
4954337
Update install-snaps.md (Fixes #895) (#901)
Montoya Aug 31, 2023
cf87695
Explicit developer onboarding (#905)
Montoya Sep 6, 2023
cbc44d4
Update numerous outdated examples in Anatomy of a Snap (#904)
Montoya Sep 6, 2023
63f1136
Doc how to add network and request permissions (#876)
alexandratran Sep 6, 2023
c290c92
Clarify API concepts (#906)
alexandratran Sep 8, 2023
cfe3dc8
Fix typo (#908)
Montoya Sep 9, 2023
ef0e8ee
Replace Ganache with Hardhat (#903)
alexandratran Sep 10, 2023
30366d2
Document Android SDK (#900)
alexandratran Sep 11, 2023
1487db7
Updates AndroidSDK version (#911)
andreahaku Sep 12, 2023
6a8eb00
Update android version to 0.1.2 (#913)
alexandratran Sep 12, 2023
9464241
Add Unity contract interaction docs (#914)
alexandratran Sep 15, 2023
d8c3bf0
Remove endowment:long-running from documentation (#919)
david0xd Sep 19, 2023
41cd9e3
Document React SDK packages (#918)
alexandratran Sep 19, 2023
2c4116c
Document Unity SDK / Dweb integration (#916)
alexandratran Sep 20, 2023
f1845a2
Fix pure js connection (#892) (#922)
bluejoyq Sep 20, 2023
c3debe9
Add Snaps Keyring API documentation (#852)
ziad-saab Sep 22, 2023
5c28856
Minor nav updates (#928)
alexandratran Sep 22, 2023
a5d748e
add temp instructions for ethglobal hackathon (#932)
ziad-saab Sep 23, 2023
9075039
Revert "add temp instructions for ethglobal hackathon" (#933)
ziad-saab Sep 24, 2023
c0c4009
Add Android SDK diagrams (#937)
alexandratran Sep 25, 2023
6a53d6d
Updated TypeDoc plugins (#940)
tgreyuk Sep 27, 2023
12d71fc
Update Docusaurus version to 2.4.3 (attempt 2) (#939)
alexandratran Sep 27, 2023
4183de5
Add flask-only UI elements (#941)
ziad-saab Sep 27, 2023
0cc4a74
Improve SDK concepts (screencaps, diagrams, etc) (#942)
alexandratran Sep 29, 2023
be0ed34
Capitalize "Snap" (#948)
alexandratran Oct 3, 2023
8ce692a
Add submodule to guidelines (#947)
alexandratran Oct 3, 2023
38ce8a2
Remove communicationServerUrl option from React SDK example (#952)
alexandratran Oct 5, 2023
c86a02d
Add condensed build steps to readme (#953)
alexandratran Oct 5, 2023
308eaaa
Update Broken Footer Link (wallet/how-to) (#954)
httpJunkie Oct 5, 2023
552643f
Update Keyring Snap diagrams (#951)
alexandratran Oct 5, 2023
d6e6628
Bump postcss from 8.4.25 to 8.4.31
dependabot[bot] Oct 7, 2023
674a2e2
add flask banner on snap_manageAccounts (#957)
ziad-saab Oct 9, 2023
66e56d3
Update SDK example links (#959)
alexandratran Oct 12, 2023
707e549
Add GetFeedback widget (#962)
alexandratran Oct 13, 2023
915e2e4
Bump postcss from 8.4.30 to 8.4.31 (#963)
dependabot[bot] Oct 13, 2023
c39866c
Update Android SDK ViewModel docs (#964)
alexandratran Oct 18, 2023
f39be07
Add `snap_getLocale` documentation (#965)
ziad-saab Oct 18, 2023
6392621
Document JS SDK options and read-only calls (#958)
alexandratran Oct 23, 2023
6715266
Update tokens.md (#972)
luigicallero Oct 25, 2023
64ed4cc
Update Android SDK docs to remove Hilt dependency (#971)
alexandratran Oct 25, 2023
72e1a06
Bump browserify-sign from 4.2.1 to 4.2.2 (#973)
dependabot[bot] Oct 27, 2023
8a2589b
Update access-provider.md (#977)
sam41306061 Oct 31, 2023
f4d4930
Update detect-metamask.md (#978)
sam41306061 Oct 31, 2023
fc6dec9
Minor fixes to mobile SDK pages (#976)
alexandratran Oct 31, 2023
4a6a41b
Add Usabilla feedback script (#722)
vandan Nov 1, 2023
53cdba3
fix SDK survey script path (#981)
alexandratran Nov 3, 2023
67a4f40
Document Web3-Onboard integration (#980)
alexandratran Nov 3, 2023
1171ffe
Lavanya_kasturi_11-06-23_Minor_sentence_rephrase_in_Update react-dapp…
LakshmiLavanyaKasturi Nov 6, 2023
6d65f28
Snaps: Add image component in custom UI how to (#988)
Montoya Nov 8, 2023
a87fa89
Document custom modals (#985)
alexandratran Nov 9, 2023
deec59b
Merge branch 'MetaMask:main' into dependabot/npm_and_yarn/postcss-8.4.31
Ameralameri Nov 11, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion .eslintignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
/build
/.yarn
/.yarn
/static/js/feedback-script.js
/external/keyring-api
4 changes: 2 additions & 2 deletions .github/CODEOWNERS
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
* @MetaMask/dev-ex
* @MetaMask/dev-ex @MetaMask/tech-writers
/snaps/ @MetaMask/tech-writers @MetaMask/snaps
/wallet/ @MetaMask/tech-writers @ziad-saab
/wallet/ @MetaMask/tech-writers
6 changes: 6 additions & 0 deletions .github/workflows/build-lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
submodules: true
- name: Use Node.js
uses: actions/setup-node@v3
with:
Expand All @@ -24,6 +26,8 @@ jobs:
- prepare
steps:
- uses: actions/checkout@v3
with:
submodules: true
- name: Use Node.js
uses: actions/setup-node@v3
with:
Expand All @@ -46,6 +50,8 @@ jobs:
- prepare
steps:
- uses: actions/checkout@v3
with:
submodules: true
- name: Use Node.js
uses: actions/setup-node@v3
with:
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/publish-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ jobs:
uses: actions/checkout@v3
with:
ref: ${{ inputs.ref }}
submodules: true
- name: Use Node.js
uses: actions/setup-node@v3
with:
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
.docusaurus
.cache-loader
.idea
/snaps/reference/keyring-api

# yarn v3 (w/o zero-install)
# See: https://yarnpkg.com/getting-started/qa#which-files-should-be-gitignored
Expand Down
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[submodule "external/keyring-api"]
path = external/keyring-api
url = git@github.com:MetaMask/keyring-api.git
1 change: 0 additions & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
{
"eslint.format.enable": true,
"eslint.packageManager": "yarn",
"editor.codeActionsOnSave": {
"source.fixAll.eslint": true
},
Expand Down
48 changes: 36 additions & 12 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ guide in some places.

- [Contribution workflow](#contribution-workflow)
- [Preview locally](#preview-locally)
- [Update the submodule](#update-the-submodule)
- [Style guide](#style-guide)
- [Add images](#add-images)
- [Format Markdown and MDX](#format-markdown-and-mdx)
Expand All @@ -32,10 +33,11 @@ To contribute changes:
If you don't have permission to assign yourself to it, leave a comment on the issue.

2. [Clone](https://docs.github.com/en/repositories/creating-and-managing-repositories/cloning-a-repository)
this repository to your computer.
this repository to your computer and navigate into it.

```bash
git clone https://github.com/MetaMask/metamask-docs.git
cd metamask-docs
```

> **Note**: If you don't have write access to this repository, you must [fork the
Expand All @@ -46,10 +48,17 @@ To contribute changes:
>
> ```bash
> git clone https://github.com/<YOUR-USERNAME>/metamask-docs.git
> cd metamask-docs
> git remote add upstream https://github.com/MetaMask/metamask-docs.git
> ```

3. [Create and checkout a topic branch](https://git-scm.com/book/en/v2/Git-Branching-Basic-Branching-and-Merging),
3. [Initialize and update the submodule.](#update-the-submodule)

```bash
git submodule init && git submodule update
```

4. [Create and checkout a topic branch](https://git-scm.com/book/en/v2/Git-Branching-Basic-Branching-and-Merging),
naming it appropriately.
We recommend including the issue number and a short description in the branch name (for example,
`183-doc-cli-option`), which is a reminder to fix only one issue in a PR.
Expand All @@ -60,7 +69,7 @@ To contribute changes:

> **Tip:** You can use a Git client such as [Fork](https://fork.dev/) instead of the command line.

4. Open this repository in a text editor of your choice (for example,
5. Open this repository in a text editor of your choice (for example,
[VS Code](https://code.visualstudio.com/)) and make your changes.
Make sure to [follow the style guidelines](https://docs-template.consensys.net/contribute/style-guide)
and [format your Markdown correctly](https://docs-template.consensys.net/contribute/format-markdown).
Expand All @@ -73,10 +82,10 @@ To contribute changes:
> - If you delete, rename, or move a documentation file, make sure to add a
> [redirect](https://docs-template.consensys.net/contribute/configure-docusaurus#redirects).

5. [Preview your changes locally](https://docs-template.consensys.net/contribute/preview) to check
6. [Preview your changes locally](https://docs-template.consensys.net/contribute/preview) to check
that the changes render correctly.

6. Add and commit your changes, briefly describing your changes in the commit message.
7. Add and commit your changes, briefly describing your changes in the commit message.
Push your changes to the remote origin.

```bash
Expand All @@ -85,26 +94,41 @@ To contribute changes:
git push origin
```

7. On [this repository on GitHub](https://github.com/MetaMask/metamask-docs), you’ll see a banner
8. On [this repository on GitHub](https://github.com/MetaMask/metamask-docs), you’ll see a banner
prompting you to create a PR with your recent changes.
Create a PR, describing your changes in detail.
[Link the issue](https://docs.github.com/en/issues/tracking-your-work-with-issues/linking-a-pull-request-to-an-issue)
that your PR fixes by adding `fixes #<ISSUE-NUM>` to the PR description.

8. Specific reviewers are automatically requested when you submit a PR.
9. Specific reviewers are automatically requested when you submit a PR.
You can request additional reviewers in the right sidebar of your PR – for example, the original
issue raiser.
Make any required changes to your PR based on reviewer feedback, repeating steps 4–6.
Make any required changes to your PR based on reviewer feedback, repeating steps 5–7.

9. After your PR is approved by two reviewers, all checks have passed, and your branch has no
conflicts with the main branch, you can merge your PR.
If you don't have merge access, a maintainer will merge your PR for you.
You can delete the topic branch after your PR is merged.
10. After your PR is approved by two reviewers, all checks have passed, and your branch has no
conflicts with the main branch, you can merge your PR.
If you don't have merge access, a maintainer will merge your PR for you.
You can delete the topic branch after your PR is merged.

## Preview locally

[Preview the docs locally using npm or Yarn.](https://docs-template.consensys.net/contribute/preview)

## Update the submodule

This repository uses the [`keyring-api`](https://github.com/MetaMask/keyring-api) repository as a
Git [submodule](https://git-scm.com/book/en/v2/Git-Tools-Submodules).

Run the following command to initialize and update the submodule when you first clone the
repository, and every time the submodule's target commit is updated:

```bash
git submodule init && git submodule update
```

> **Note**: You'll see when the submodule's commit is updated when you `git merge` or `git pull`.
> If you have trouble previewing the docs locally, try updating the submodule.

## Style guide

Refer to the [Consensys documentation style guide](https://docs-template.consensys.net/contribute/style-guide).
Expand Down
41 changes: 40 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,43 @@ The documentation site is hosted at [`docs.metamask.io`](https://docs.metamask.i
built using [Docusaurus](https://docusaurus.io/), a static site generator purpose-built for
technical documentation.

Learn how to [contribute to the documentation](CONTRIBUTING.md).
## Build locally

Build the documentation site locally using the following steps.

### Prerequisites

- [Node.js](https://nodejs.org/) version 16+
- [Yarn](https://yarnpkg.com/) version 3
- [Git](https://git-scm.com/)

### Steps

1. Clone the repository.

```bash
git clone https://github.com/MetaMask/metamask-docs.git
cd metamask-docs
```

2. Initialize and update the [`keyring-api`](https://github.com/MetaMask/keyring-api) submodule.

```bash
git submodule init && git submodule update
```

3. Install dependencies.

```bash
yarn install
```

4. Start the development server.

```bash
yarn start
```

Once the server starts, you can view the documentation at `http://localhost:3000`.

For more information on contributing to the documentation, see the [full contribution guidelines](CONTRIBUTING.md).
Loading