Skip to content

Commit

Permalink
docs: add new team members (#2715)
Browse files Browse the repository at this point in the history
  • Loading branch information
userquin committed Jan 30, 2023
1 parent 415c8a9 commit b666506
Show file tree
Hide file tree
Showing 6 changed files with 61 additions and 27 deletions.
2 changes: 2 additions & 0 deletions docs/.vitepress/config.ts
Expand Up @@ -6,6 +6,7 @@ import {
discord,
font,
github,
mastodon,
ogImage,
ogUrl,
releases,
Expand Down Expand Up @@ -71,6 +72,7 @@ export default withPwa(defineConfig({
},

socialLinks: [
{ icon: 'mastodon', link: mastodon },
{ icon: 'twitter', link: twitter },
{ icon: 'discord', link: discord },
{ icon: 'github', link: github },
Expand Down
69 changes: 48 additions & 21 deletions docs/.vitepress/contributors.ts
@@ -1,26 +1,18 @@
import type { DefaultTheme } from 'vitepress'
import contributorNames from './contributor-names.json'

export interface Contributor {
name: string
avatar: string
}

export interface SocialEntry {
icon: string
link: string
}

export interface CoreTeam {
avatar: string
name: string
export interface CoreTeam extends DefaultTheme.TeamMember {
// required to download avatars from GitHub
github: string
twitter: string
sponsor?: string
title?: string
org?: string
desc?: string
links?: SocialEntry[]
twitter?: string
mastodon?: string
discord?: string
youtube?: string
}

const contributorsAvatars: Record<string, string> = {}
Expand All @@ -32,12 +24,20 @@ export const contributors = (contributorNames as string[]).reduce((acc, name) =>
acc.push({ name, avatar: contributorsAvatars[name] })
return acc
}, [] as Contributor[])

const createLinks = (tm: CoreTeam): CoreTeam => {
tm.links = [
{ icon: 'github', link: `https://github.com/${tm.github}` },
{ icon: 'twitter', link: `https://twitter.com/${tm.twitter}` },
]
tm.links = [{ icon: 'github', link: `https://github.com/${tm.github}` }]
if (tm.mastodon)
tm.links.push({ icon: 'mastodon', link: tm.mastodon })

if (tm.discord)
tm.links.push({ icon: 'discord', link: tm.discord })

if (tm.youtube)
tm.links.push({ icon: 'youtube', link: `https://www.youtube.com/@${tm.youtube}` })

if (tm.twitter)
tm.links.push({ icon: 'twitter', link: `https://twitter.com/${tm.twitter}` })

return tm
}

Expand All @@ -46,16 +46,21 @@ const plainTeamMembers: CoreTeam[] = [
avatar: contributorsAvatars.antfu,
name: 'Anthony Fu',
github: 'antfu',
mastodon: 'https://elk.zone/m.webtoo.ls/@antfu',
twitter: 'antfu7',
discord: 'https://chat.antfu.me',
youtube: 'antfu',
sponsor: 'https://github.com/sponsors/antfu',
title: 'A fanatical open sourceror, working',
org: 'NuxtLabs',
orgLink: 'https://nuxtlabs.com/',
desc: 'Core team member of Vite & Vue',
},
{
avatar: contributorsAvatars['sheremet-va'],
name: 'Vladimir',
github: 'sheremet-va',
mastodon: 'https://elk.zone/m.webtoo.ls/@sheremet_va',
twitter: 'sheremet_va',
sponsor: 'https://github.com/sponsors/sheremet-va',
title: 'An open source fullstack developer',
Expand All @@ -65,16 +70,19 @@ const plainTeamMembers: CoreTeam[] = [
avatar: contributorsAvatars['patak-dev'],
name: 'Patak',
github: 'patak-dev',
mastodon: 'https://elk.zone/m.webtoo.ls/@patak',
twitter: 'patak_dev',
sponsor: 'https://github.com/sponsors/patak-dev',
title: 'A collaborative being, working',
org: 'StackBlitz',
orgLink: 'https://stackblitz.com/',
desc: 'Core team member of Vite & Vue',
},
{
avatar: contributorsAvatars.Aslemammad,
name: 'Mohammad Bagher',
github: 'Aslemammad',
mastodon: 'https://elk.zone/m.webtoo.ls/@aslemammad',
twitter: 'asleMammadam',
title: 'An open source developer',
desc: 'Team member of Poimandres & Vike',
Expand All @@ -83,14 +91,15 @@ const plainTeamMembers: CoreTeam[] = [
avatar: contributorsAvatars.Demivan,
name: 'Ivan Demchuk',
github: 'Demivan',
twitter: 'IvanDemchuk',
mastodon: 'https://elk.zone/fosstodon.org/@demivan',
title: 'A tech lead, fullstack developer',
desc: 'Author of fluent-vue',
},
{
avatar: contributorsAvatars.userquin,
name: 'Joaquín Sánchez',
github: 'userquin',
mastodon: 'https://elk.zone/m.webtoo.ls/@userquin',
twitter: 'userquin',
title: 'A fullstack and android developer',
desc: 'Vite\'s fanatical follower',
Expand All @@ -99,9 +108,27 @@ const plainTeamMembers: CoreTeam[] = [
avatar: contributorsAvatars.zxch3n,
name: 'Zixuan Chen',
github: 'zxch3n',
mastodon: 'https://elk.zone/hachyderm.io/@zx',
twitter: 'zxch3n',
title: 'A fullstack developer',
desc: 'Creating tools for collaboration',
desc: 'Working on CRDTs & local-first software',
},
{
avatar: contributorsAvatars.poyoho,
name: 'Yoho Po',
github: 'poyoho',
twitter: '@yoho_po',
title: 'It\'s no problem in my locall',
desc: 'Core team member of Vite & Team member of Vitest',
},
{
avatar: contributorsAvatars.AriPerkkio,
name: 'Ari Perkkiö',
github: 'AriPerkkio',
title: 'A fullstack developer, working',
desc: 'Team member of Vitest',
org: 'Cloudamite',
orgLink: 'https://cloudamite.com/',
},
]

Expand Down
1 change: 1 addition & 0 deletions docs/.vitepress/meta.ts
Expand Up @@ -19,6 +19,7 @@ export const github = 'https://github.com/vitest-dev/vitest'
export const releases = 'https://github.com/vitest-dev/vitest/releases'
export const contributing = 'https://github.com/vitest-dev/vitest/blob/main/CONTRIBUTING.md'
export const discord = 'https://chat.vitest.dev'
export const mastodon = 'https://elk.zone/m.webtoo.ls/@vitest'
export const twitter = 'https://twitter.com/vitest_dev'

/* Avatar/Image/Sponsors servers */
Expand Down
3 changes: 2 additions & 1 deletion docs/.vitepress/scripts/pwa.ts
@@ -1,3 +1,4 @@
import type { VitePWAOptions } from 'vite-plugin-pwa'
import {
githubusercontentRegex,
pwaFontStylesRegex,
Expand All @@ -7,7 +8,7 @@ import {
vitestShortName,
} from '../meta'

export const pwa = {
export const pwa: Partial<VitePWAOptions> = {
outDir: '.vitepress/dist',
registerType: 'autoUpdate',
// include all static assets under public/
Expand Down
2 changes: 1 addition & 1 deletion docs/package.json
Expand Up @@ -28,7 +28,7 @@
"unplugin-vue-components": "^0.22.12",
"vite": "^4.0.0",
"vite-plugin-pwa": "^0.14.1",
"vitepress": "1.0.0-alpha.36",
"vitepress": "1.0.0-alpha.40",
"workbox-window": "^6.5.4"
}
}
11 changes: 7 additions & 4 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit b666506

Please sign in to comment.