diff --git a/.changeset/big-baboons-poke.md b/.changeset/big-baboons-poke.md new file mode 100644 index 0000000000..11ecc4b091 --- /dev/null +++ b/.changeset/big-baboons-poke.md @@ -0,0 +1,5 @@ +--- +'@astrojs/starlight': patch +--- + +Adds a `blueSky` icon and social link option diff --git a/packages/starlight/__tests__/basics/config-errors.test.ts b/packages/starlight/__tests__/basics/config-errors.test.ts index a3be2b324e..7bf6a3be0f 100644 --- a/packages/starlight/__tests__/basics/config-errors.test.ts +++ b/packages/starlight/__tests__/basics/config-errors.test.ts @@ -111,7 +111,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' | 'microsoftTeams' | 'instagram' | 'stackOverflow' | 'x.com' | 'telegram' | 'rss' | 'facebook' | 'email' | 'reddit' | 'patreon' | 'signal' | 'slack' | 'matrix' | 'openCollective' | 'hackerOne', received 'unknown' + **social.unknown**: Invalid enum value. Expected 'twitter' | 'mastodon' | 'github' | 'gitlab' | 'bitbucket' | 'discord' | 'gitter' | 'codeberg' | 'codePen' | 'youtube' | 'threads' | 'linkedin' | 'twitch' | 'microsoftTeams' | 'instagram' | 'stackOverflow' | 'x.com' | 'telegram' | 'rss' | 'facebook' | 'email' | 'reddit' | 'patreon' | 'signal' | 'slack' | 'matrix' | 'openCollective' | 'hackerOne' | 'blueSky', received 'unknown' **social.unknown**: Invalid url" ` ); diff --git a/packages/starlight/components/Icons.ts b/packages/starlight/components/Icons.ts index c8ad66b88a..3e7e1bf1dc 100644 --- a/packages/starlight/components/Icons.ts +++ b/packages/starlight/components/Icons.ts @@ -119,6 +119,8 @@ export const BuiltInIcons = { '', openCollective: '', + blueSky: + '', astro: '', alpine: '', diff --git a/packages/starlight/schemas/social.ts b/packages/starlight/schemas/social.ts index 677a31682e..a7502597c4 100644 --- a/packages/starlight/schemas/social.ts +++ b/packages/starlight/schemas/social.ts @@ -29,6 +29,7 @@ export const socialLinks = [ 'matrix', 'openCollective', 'hackerOne', + 'blueSky', ] as const; export const SocialLinksSchema = () => @@ -73,6 +74,7 @@ export const SocialLinksSchema = () => matrix: 'Matrix', openCollective: 'Open Collective', hackerOne: 'Hacker One', + blueSky: 'BlueSky', }[key]; labelledLinks[key] = { label, url }; }