Skip to content
This repository has been archived by the owner on Jul 23, 2021. It is now read-only.

Commit

Permalink
Created a Metamask docs contributor list via github api (MetaMask#162)
Browse files Browse the repository at this point in the history
* Reworded and simplified the Getting Started and Browser Detection verbage.

* Adding metamask docs contributor list

* pushing contributors page

* moved fetch call to the created()

* Use mounted instead of created

Co-authored-by: Tim Woodson <[email protected]>
Co-authored-by: unknown <[email protected]>
Co-authored-by: Whymarrh Whitby <[email protected]>
  • Loading branch information
4 people authored Oct 15, 2020
1 parent f1eeb86 commit b199383
Show file tree
Hide file tree
Showing 3 changed files with 79 additions and 0 deletions.
47 changes: 47 additions & 0 deletions docs/.vuepress/components/GithubContributor.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
<template>
<div>
<div>
<div v-for="contributor in metaMaskContributorList" class="card">
<img :src="contributor.avatar_url" width="100px" />
<h4>
<a :href="contributor.html_url" target="_blank">
{{ contributor.login }}
</a>
</h4>
</div>
</div>
</div>
</template>
<style scoped>
.card {
display: inline-block;
min-width: 175px;
text-align: center;
}
h4 {
margin-top: 0;
}
</style>

<script>
export default {
props: {
repoName: {
type: String,
required: true,
},
},
data() {
return {
metaMaskContributorList: [],
};
},
mounted() {
fetch(`https://api.github.com/repos/MetaMask/${this.repoName}/contributors`)
.then((response) => response.json())
.then((data) => {
this.metaMaskContributorList = data;
});
},
};
</script>
1 change: 1 addition & 0 deletions docs/.vuepress/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,7 @@ function getGuideSidebar(guide, api, bestPractices, mobile, resources) {
collapsable: false,
children: [
'create-dapp',
'contributors'
]
}
]
Expand Down
31 changes: 31 additions & 0 deletions docs/guide/contributors.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
# Contributors

## MetaMask Repositories
:::: tabs :options="{ useUrlFragment: false }"

::: tab Extension

<GithubContributor
repoName="metamask-extension"
/>

:::

::: tab Mobile

<GithubContributor
repoName="metamask-mobile"
/>

:::

::: tab Documentation

<GithubContributor
repoName="metamask-docs"
/>

:::

::::

0 comments on commit b199383

Please sign in to comment.