From cc0364233b9510a2f30fe5b2a26b2ba47d95c79c Mon Sep 17 00:00:00 2001 From: D3vil0p3r Date: Fri, 11 Aug 2023 16:24:18 +0200 Subject: [PATCH 1/8] Adding Instagram icon --- packages/starlight/components/Icons.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/starlight/components/Icons.ts b/packages/starlight/components/Icons.ts index 92d5cc61ade..7d5f451195c 100644 --- a/packages/starlight/components/Icons.ts +++ b/packages/starlight/components/Icons.ts @@ -82,4 +82,6 @@ export const Icons = { '', microsoftTeams: '', + instagram: + '', }; From 51a0ddf9a54cee836dc37b4a859a7e9b5d24cdd2 Mon Sep 17 00:00:00 2001 From: D3vil0p3r Date: Fri, 11 Aug 2023 16:28:39 +0200 Subject: [PATCH 2/8] Create nervous-plants-relate.md --- .changeset/nervous-plants-relate.md | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 .changeset/nervous-plants-relate.md diff --git a/.changeset/nervous-plants-relate.md b/.changeset/nervous-plants-relate.md new file mode 100644 index 00000000000..1878d8438b7 --- /dev/null +++ b/.changeset/nervous-plants-relate.md @@ -0,0 +1,5 @@ +--- +"@astrojs/starlight": patch +--- + +Add icons for Instagram From 3590df5d4086ba24146cd3cd06840422f75aa8f3 Mon Sep 17 00:00:00 2001 From: D3vil0p3r Date: Fri, 11 Aug 2023 16:29:51 +0200 Subject: [PATCH 3/8] Update customization.mdx --- docs/src/content/docs/guides/customization.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/src/content/docs/guides/customization.mdx b/docs/src/content/docs/guides/customization.mdx index 733ff6ceb9a..8bbd525062c 100644 --- a/docs/src/content/docs/guides/customization.mdx +++ b/docs/src/content/docs/guides/customization.mdx @@ -178,7 +178,7 @@ defineConfig({ Starlight has built-in support for adding links to your social media accounts to the site header via the [`social`](/reference/configuration/#social) option in the Starlight integration. -Currently, links to Bitbucket, Codeberg, CodePen, Discord, GitHub, GitLab, Gitter, LinkedIn, Mastodon, Microsoft Teams, Threads, Twitch, Twitter, and Youtube are supported. +Currently, links to Bitbucket, Codeberg, CodePen, Discord, GitHub, GitLab, Gitter, Instagram, LinkedIn, Mastodon, Microsoft Teams, Threads, Twitch, Twitter, and Youtube are supported. Let us know on GitHub or Discord if you need support for another service! ```js From b26975eade7d5b6588db5d4e77b253b1d4a6e264 Mon Sep 17 00:00:00 2001 From: D3vil0p3r Date: Fri, 11 Aug 2023 16:31:09 +0200 Subject: [PATCH 4/8] Update configuration.md --- docs/src/content/docs/reference/configuration.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/src/content/docs/reference/configuration.md b/docs/src/content/docs/reference/configuration.md index 593f4593def..8f3a15daab2 100644 --- a/docs/src/content/docs/reference/configuration.md +++ b/docs/src/content/docs/reference/configuration.md @@ -295,7 +295,7 @@ The default locale will be used to provide fallback content where translations a ### `social` -**type:** `Partial>` +**type:** `Partial>` Optional details about the social media accounts for this site. Adding any of these will display them as icon links in the site header. From e219327910e255fa8a0e783c86fb4898c2781bf8 Mon Sep 17 00:00:00 2001 From: D3vil0p3r Date: Fri, 11 Aug 2023 16:37:57 +0200 Subject: [PATCH 5/8] Update SocialIcons.astro --- packages/starlight/components/SocialIcons.astro | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/starlight/components/SocialIcons.astro b/packages/starlight/components/SocialIcons.astro index 14b9876a27c..340916bd52b 100644 --- a/packages/starlight/components/SocialIcons.astro +++ b/packages/starlight/components/SocialIcons.astro @@ -19,6 +19,7 @@ const labels: Record = { linkedin: 'LinkedIn', twitch: 'Twitch', microsoftTeams: 'Microsoft Teams', + instagram: 'Instagram', }; const links = Object.entries(config.social || {}).filter(([, url]) => Boolean(url)) as [ From fe8a8fc7ed0f16f1b8c7878649319c1b7e5e30d1 Mon Sep 17 00:00:00 2001 From: D3vil0p3r Date: Fri, 11 Aug 2023 16:38:45 +0200 Subject: [PATCH 6/8] Update user-config.ts --- packages/starlight/utils/user-config.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/starlight/utils/user-config.ts b/packages/starlight/utils/user-config.ts index 16a0827dfd4..e91e0cdce13 100644 --- a/packages/starlight/utils/user-config.ts +++ b/packages/starlight/utils/user-config.ts @@ -147,6 +147,7 @@ const UserConfigSchema = z.object({ 'linkedin', 'twitch', 'microsoftTeams', + 'instagram', ]), // Link to the respective social profile for this site z.string().url() From 5549dd7dbf3f8f7c0281dd9609f7c8c6c8850128 Mon Sep 17 00:00:00 2001 From: D3vil0p3r Date: Fri, 11 Aug 2023 16:43:46 +0200 Subject: [PATCH 7/8] Update Icons.ts --- 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 7d5f451195c..343ab5e8e96 100644 --- a/packages/starlight/components/Icons.ts +++ b/packages/starlight/components/Icons.ts @@ -83,5 +83,5 @@ export const Icons = { microsoftTeams: '', instagram: - '', + '', }; From 57f0a45c03979c2b6754a32350de532f4c2b66f2 Mon Sep 17 00:00:00 2001 From: D3vil0p3r Date: Sat, 12 Aug 2023 19:15:21 +0200 Subject: [PATCH 8/8] Update packages/starlight/components/Icons.ts Co-authored-by: Chris Swithinbank --- 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 343ab5e8e96..262d5f019f6 100644 --- a/packages/starlight/components/Icons.ts +++ b/packages/starlight/components/Icons.ts @@ -83,5 +83,5 @@ export const Icons = { microsoftTeams: '', instagram: - '', + '', };