Skip to content

Commit bcafa58

Browse files
committed
Add farcaster to social links
1 parent ec4b851 commit bcafa58

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

‎packages/starlight/__tests__/basics/config-errors.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ test('errors with bad social icon config', () => {
114114
"[AstroUserError]:
115115
Invalid config passed to starlight integration
116116
Hint:
117-
**social.unknown**: Invalid enum value. Expected 'twitter' | 'mastodon' | 'github' | 'gitlab' | 'bitbucket' | 'discord' | 'gitter' | 'codeberg' | 'codePen' | 'youtube' | 'threads' | 'linkedin' | 'twitch' | 'azureDevOps' | 'microsoftTeams' | 'instagram' | 'stackOverflow' | 'x.com' | 'telegram' | 'rss' | 'facebook' | 'email' | 'reddit' | 'patreon' | 'signal' | 'slack' | 'matrix' | 'openCollective' | 'hackerOne' | 'blueSky' | 'discourse' | 'zulip' | 'pinterest' | 'tiktok' | 'nostr' | 'backstage', received 'unknown'
117+
**social.unknown**: Invalid enum value. Expected 'twitter' | 'mastodon' | 'github' | 'gitlab' | 'bitbucket' | 'discord' | 'gitter' | 'codeberg' | 'codePen' | 'youtube' | 'threads' | 'linkedin' | 'twitch' | 'azureDevOps' | 'microsoftTeams' | 'instagram' | 'stackOverflow' | 'x.com' | 'telegram' | 'rss' | 'facebook' | 'email' | 'reddit' | 'patreon' | 'signal' | 'slack' | 'matrix' | 'openCollective' | 'hackerOne' | 'blueSky' | 'discourse' | 'zulip' | 'pinterest' | 'tiktok' | 'nostr' | 'backstage' | 'farcaster', received 'unknown'
118118
**social.unknown**: Invalid url"
119119
`
120120
);

‎packages/starlight/schemas/social.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ export const socialLinks = [
3737
'tiktok',
3838
'nostr',
3939
'backstage',
40+
'farcaster',
4041
] as const;
4142

4243
export const SocialLinksSchema = () =>
@@ -89,6 +90,7 @@ export const SocialLinksSchema = () =>
8990
tiktok: 'TikTok',
9091
nostr: 'Nostr',
9192
backstage: 'Backstage',
93+
farcaster: 'Farcaster',
9294
}[key];
9395
labelledLinks[key] = { label, url };
9496
}

0 commit comments

Comments
 (0)