Skip to content

Commit 10849ac

Browse files
phananchrisvfritz
authored andcommitted
docs: add main focus for An (#1255)
Add vi.vuejs.org as an additional main focus for An (that’s me). Also, since vi.vuejs.org’s repo is intentially outside of vuejs org, modified the code a bit to accept an object { name, url } as a valid repo.
1 parent 98448fb commit 10849ac

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

src/v2/guide/team.md

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ order: 803
2323
<dd>
2424
<ul>
2525
<li v-for="repo in profile.reposOfficial">
26-
<a :href="githubUrl('vuejs', repo)" target=_blank>{{ repo }}</a>
26+
<a :href="githubUrl('vuejs', repo)" target=_blank>{{ repo.name || repo }}</a>
2727
</li>
2828
</ul>
2929
</dd>
@@ -33,7 +33,7 @@ order: 803
3333
<dd>
3434
<ul>
3535
<li v-for="repo in profile.reposPersonal">
36-
<a :href="githubUrl(profile.github, repo)" target=_blank>{{ repo }}</a>
36+
<a :href="githubUrl(profile.github, repo)" target=_blank>{{ repo.name || repo }}</a>
3737
</li>
3838
</ul>
3939
</dd>
@@ -427,7 +427,10 @@ order: 803
427427
github: 'phanan',
428428
twitter: 'notphanan',
429429
reposOfficial: [
430-
'vuejs.org'
430+
'vuejs.org', {
431+
name: 'vi.vuejs.org',
432+
url: 'https://github.com/vuejs-vn/vuejs.org'
433+
}
431434
],
432435
reposPersonal: [
433436
'vuequery', 'vue-google-signin-button'
@@ -903,6 +906,9 @@ order: 803
903906
* Generate a GitHub URL using a repo and a handle.
904907
*/
905908
githubUrl: function (handle, repo) {
909+
if (repo && repo.url) {
910+
return repo.url
911+
}
906912
if (repo && repo.indexOf('/') !== -1) {
907913
// If the repo name has a slash, it must be an organization repo.
908914
// In such a case, we discard the (personal) handle.

0 commit comments

Comments
 (0)