MCPcopy Create free account
hub / github.com/api-platform/website / getSpeakerLink

Function getSpeakerLink

pwa/api/events.ts:42–49  ·  view source on GitHub ↗
(login: string)

Source from the content-addressed store, hash-verified

40}
41
42async 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
51export async function getEventContent(slug: string): Promise<EventWithContent> {
52 const fullPath = path.join(process.cwd(), `data/events/${slug}.mdx`);

Callers 1

getEventContentFunction · 0.85

Calls 1

getAllContributorsFunction · 0.90

Tested by

no test coverage detected