From 02d7ac66a0bdca3f26001f556de070027d4e0faf Mon Sep 17 00:00:00 2001 From: dionysuz <13951458+dionysuzx@users.noreply.github.com> Date: Wed, 18 Dec 2024 05:26:14 -0500 Subject: [PATCH] Add farcaster to social links (#2724) Co-authored-by: Chris Swithinbank --- .changeset/real-pugs-fold.md | 5 +++++ packages/starlight/__tests__/basics/config-errors.test.ts | 2 +- packages/starlight/schemas/social.ts | 2 ++ 3 files changed, 8 insertions(+), 1 deletion(-) create mode 100644 .changeset/real-pugs-fold.md diff --git a/.changeset/real-pugs-fold.md b/.changeset/real-pugs-fold.md new file mode 100644 index 00000000000..b4c75878510 --- /dev/null +++ b/.changeset/real-pugs-fold.md @@ -0,0 +1,5 @@ +--- +"@astrojs/starlight": patch +--- + +Adds social link support for Farcaster diff --git a/packages/starlight/__tests__/basics/config-errors.test.ts b/packages/starlight/__tests__/basics/config-errors.test.ts index 6a4538958e3..0afea9418ec 100644 --- a/packages/starlight/__tests__/basics/config-errors.test.ts +++ b/packages/starlight/__tests__/basics/config-errors.test.ts @@ -114,7 +114,7 @@ test('errors with bad social icon config', () => { "[AstroUserError]: Invalid config passed to starlight integration Hint: - **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' + **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' **social.unknown**: Invalid url" ` ); diff --git a/packages/starlight/schemas/social.ts b/packages/starlight/schemas/social.ts index 2aea7ae92d5..d87156b20f2 100644 --- a/packages/starlight/schemas/social.ts +++ b/packages/starlight/schemas/social.ts @@ -37,6 +37,7 @@ export const socialLinks = [ 'tiktok', 'nostr', 'backstage', + 'farcaster', ] as const; export const SocialLinksSchema = () => @@ -89,6 +90,7 @@ export const SocialLinksSchema = () => tiktok: 'TikTok', nostr: 'Nostr', backstage: 'Backstage', + farcaster: 'Farcaster', }[key]; labelledLinks[key] = { label, url }; }