From a5ab8cd6a0095cb48b65b9784054714f87bd7e4d Mon Sep 17 00:00:00 2001 From: Kyle Lacy Date: Sun, 9 Jun 2024 11:15:39 -0700 Subject: [PATCH] Add new social icon for Zulip (#1978) Co-authored-by: Chris Swithinbank --- .changeset/clever-balloons-suffer.md | 5 +++++ packages/starlight/__tests__/basics/config-errors.test.ts | 2 +- packages/starlight/components/Icons.ts | 1 + packages/starlight/schemas/social.ts | 2 ++ 4 files changed, 9 insertions(+), 1 deletion(-) create mode 100644 .changeset/clever-balloons-suffer.md diff --git a/.changeset/clever-balloons-suffer.md b/.changeset/clever-balloons-suffer.md new file mode 100644 index 0000000000..149fd9cfdd --- /dev/null +++ b/.changeset/clever-balloons-suffer.md @@ -0,0 +1,5 @@ +--- +'@astrojs/starlight': patch +--- + +Add new social icon for Zulip diff --git a/packages/starlight/__tests__/basics/config-errors.test.ts b/packages/starlight/__tests__/basics/config-errors.test.ts index 63dcca5990..e48ea1a74e 100644 --- a/packages/starlight/__tests__/basics/config-errors.test.ts +++ b/packages/starlight/__tests__/basics/config-errors.test.ts @@ -113,7 +113,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' | 'discourse', 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' | 'zulip', received 'unknown' **social.unknown**: Invalid url" ` ); diff --git a/packages/starlight/components/Icons.ts b/packages/starlight/components/Icons.ts index 721729c097..a0d0317107 100644 --- a/packages/starlight/components/Icons.ts +++ b/packages/starlight/components/Icons.ts @@ -123,6 +123,7 @@ export const BuiltInIcons = { '', discourse: '', + zulip: '', astro: '', alpine: '', diff --git a/packages/starlight/schemas/social.ts b/packages/starlight/schemas/social.ts index 7617d3af3b..c9680723e4 100644 --- a/packages/starlight/schemas/social.ts +++ b/packages/starlight/schemas/social.ts @@ -31,6 +31,7 @@ export const socialLinks = [ 'hackerOne', 'blueSky', 'discourse', + 'zulip', ] as const; export const SocialLinksSchema = () => @@ -77,6 +78,7 @@ export const SocialLinksSchema = () => hackerOne: 'Hacker One', blueSky: 'BlueSky', discourse: 'Discourse', + zulip: 'Zulip', }[key]; labelledLinks[key] = { label, url }; }