diff --git a/.changeset/cyan-pans-search.md b/.changeset/cyan-pans-search.md new file mode 100644 index 00000000000..7d0e8718946 --- /dev/null +++ b/.changeset/cyan-pans-search.md @@ -0,0 +1,5 @@ +--- +"@astrojs/starlight": patch +--- + +Adds Discourse to social icons diff --git a/packages/starlight/__tests__/basics/config-errors.test.ts b/packages/starlight/__tests__/basics/config-errors.test.ts index 7bf6a3be0f1..c76e06757a5 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' | 'blueSky', 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' | 'discourse', received 'unknown' **social.unknown**: Invalid url" ` ); diff --git a/packages/starlight/components/Icons.ts b/packages/starlight/components/Icons.ts index 3e7e1bf1dc9..721729c0979 100644 --- a/packages/starlight/components/Icons.ts +++ b/packages/starlight/components/Icons.ts @@ -121,6 +121,8 @@ export const BuiltInIcons = { '', blueSky: '', + discourse: + '', astro: '', alpine: '', diff --git a/packages/starlight/schemas/social.ts b/packages/starlight/schemas/social.ts index a7502597c4d..7617d3af3ba 100644 --- a/packages/starlight/schemas/social.ts +++ b/packages/starlight/schemas/social.ts @@ -30,6 +30,7 @@ export const socialLinks = [ 'openCollective', 'hackerOne', 'blueSky', + 'discourse', ] as const; export const SocialLinksSchema = () => @@ -75,6 +76,7 @@ export const SocialLinksSchema = () => openCollective: 'Open Collective', hackerOne: 'Hacker One', blueSky: 'BlueSky', + discourse: 'Discourse', }[key]; labelledLinks[key] = { label, url }; }