From 2314c9ba1ad391b1c3bca5e29ca9de0f7e3b5494 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Orhun=20Parmaks=C4=B1z?= Date: Sat, 2 Dec 2023 13:40:48 +0300 Subject: [PATCH 1/3] Add Matrix social icon --- .changeset/strange-boxes-know.md | 4 ++++ packages/starlight/components/Icons.ts | 2 ++ packages/starlight/schemas/social.ts | 2 ++ 3 files changed, 8 insertions(+) create mode 100644 .changeset/strange-boxes-know.md diff --git a/.changeset/strange-boxes-know.md b/.changeset/strange-boxes-know.md new file mode 100644 index 0000000000..c71a35b5bf --- /dev/null +++ b/.changeset/strange-boxes-know.md @@ -0,0 +1,4 @@ +--- +'@astrojs/starlight': patch +--- +Add Matrix social link icon diff --git a/packages/starlight/components/Icons.ts b/packages/starlight/components/Icons.ts index 6446a5ae8a..c97d27293d 100644 --- a/packages/starlight/components/Icons.ts +++ b/packages/starlight/components/Icons.ts @@ -101,4 +101,6 @@ export const Icons = { '', slack: '', + matrix: + '' }; diff --git a/packages/starlight/schemas/social.ts b/packages/starlight/schemas/social.ts index 6882f9f8a3..c3ccff8fa2 100644 --- a/packages/starlight/schemas/social.ts +++ b/packages/starlight/schemas/social.ts @@ -25,6 +25,7 @@ export const socialLinks = [ 'reddit', 'patreon', 'slack', + 'matrix', ] as const; export const SocialLinksSchema = () => @@ -65,6 +66,7 @@ export const SocialLinksSchema = () => reddit: 'Reddit', patreon: 'Patreon', slack: 'Slack', + matrix: 'Matrix', }[key]; labelledLinks[key] = { label, url }; } From 53c94d3968589840f9eca350b483ace77d233df9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Orhun=20Parmaks=C4=B1z?= Date: Mon, 4 Dec 2023 13:05:54 +0300 Subject: [PATCH 2/3] Add trailing comma to Matrix svg icon --- packages/starlight/components/Icons.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/starlight/components/Icons.ts b/packages/starlight/components/Icons.ts index c97d27293d..4aeabd27e8 100644 --- a/packages/starlight/components/Icons.ts +++ b/packages/starlight/components/Icons.ts @@ -102,5 +102,5 @@ export const Icons = { slack: '', matrix: - '' + '', }; From e75c79c71c8eb2915fece836e5b8a6f22e541ada Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Orhun=20Parmaks=C4=B1z?= Date: Tue, 5 Dec 2023 13:27:29 +0300 Subject: [PATCH 3/3] Update the phrasing for the changeset entry --- .changeset/strange-boxes-know.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.changeset/strange-boxes-know.md b/.changeset/strange-boxes-know.md index c71a35b5bf..2af4c76d62 100644 --- a/.changeset/strange-boxes-know.md +++ b/.changeset/strange-boxes-know.md @@ -1,4 +1,4 @@ --- '@astrojs/starlight': patch --- -Add Matrix social link icon +Adds Matrix social link icon