From 03bb126b74d9adaba1be2f0df3f34566815dd77f Mon Sep 17 00:00:00 2001
From: Chris Swithinbank
Date: Thu, 16 May 2024 23:13:19 +0200
Subject: Add BlueSky social icon (#1871)
---
.changeset/big-baboons-poke.md | 5 +++++
packages/starlight/__tests__/basics/config-errors.test.ts | 2 +-
packages/starlight/components/Icons.ts | 2 ++
packages/starlight/schemas/social.ts | 2 ++
4 files changed, 10 insertions(+), 1 deletion(-)
create mode 100644 .changeset/big-baboons-poke.md
diff --git a/.changeset/big-baboons-poke.md b/.changeset/big-baboons-poke.md
new file mode 100644
index 00000000..11ecc4b0
--- /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 a3be2b32..7bf6a3be 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 c8ad66b8..3e7e1bf1 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 677a3168..a7502597 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 };
}
--
cgit