(login: string)
| 40 | } |
| 41 | |
| 42 | async function getSpeakerLink(login: string) { |
| 43 | const contributors = getAllContributors(); |
| 44 | const contributor = contributors.find( |
| 45 | (contributor) => contributor.login === login |
| 46 | ); |
| 47 | if (contributor) return `/community/contributors/${login}`; |
| 48 | return `https://github.com/${login}`; |
| 49 | } |
| 50 | |
| 51 | export async function getEventContent(slug: string): Promise<EventWithContent> { |
| 52 | const fullPath = path.join(process.cwd(), `data/events/${slug}.mdx`); |
no test coverage detected