From 2b30321bde801bb9945d73dc954e25b40f4324fa Mon Sep 17 00:00:00 2001 From: Chris Swithinbank Date: Fri, 13 Oct 2023 16:42:17 +0200 Subject: Add Patreon social link (#892) --- .changeset/afraid-vans-count.md | 5 +++++ docs/src/content/docs/guides/customization.mdx | 2 +- docs/src/content/docs/reference/configuration.md | 2 +- packages/starlight/components/Icons.ts | 2 ++ packages/starlight/schemas/social.ts | 2 ++ 5 files changed, 11 insertions(+), 2 deletions(-) create mode 100644 .changeset/afraid-vans-count.md diff --git a/.changeset/afraid-vans-count.md b/.changeset/afraid-vans-count.md new file mode 100644 index 00000000..ea153b80 --- /dev/null +++ b/.changeset/afraid-vans-count.md @@ -0,0 +1,5 @@ +--- +'@astrojs/starlight': patch +--- + +Add Patreon social link icon diff --git a/docs/src/content/docs/guides/customization.mdx b/docs/src/content/docs/guides/customization.mdx index a86cdb41..9cfe9cbe 100644 --- a/docs/src/content/docs/guides/customization.mdx +++ b/docs/src/content/docs/guides/customization.mdx @@ -191,7 +191,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, Email, Facebook, GitHub, GitLab, Gitter, Instagram, LinkedIn, Mastodon, Microsoft Teams, Reddit, an RSS feed, Stack Overflow, Telegram, Threads, Twitch, Twitter, X, and Youtube are supported. +Currently, links to Bitbucket, Codeberg, CodePen, Discord, Email, Facebook, GitHub, GitLab, Gitter, Instagram, LinkedIn, Mastodon, Microsoft Teams, Patreon, Reddit, an RSS feed, Stack Overflow, Telegram, Threads, Twitch, Twitter, X, and Youtube are supported. Let us know on GitHub or Discord if you need support for another service! ```js diff --git a/docs/src/content/docs/reference/configuration.md b/docs/src/content/docs/reference/configuration.md index 9cdeaeed..e5cd38c6 100644 --- a/docs/src/content/docs/reference/configuration.md +++ b/docs/src/content/docs/reference/configuration.md @@ -308,7 +308,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. diff --git a/packages/starlight/components/Icons.ts b/packages/starlight/components/Icons.ts index 23e5c020..f6910737 100644 --- a/packages/starlight/components/Icons.ts +++ b/packages/starlight/components/Icons.ts @@ -97,4 +97,6 @@ export const Icons = { '', reddit: '', + patreon: + '', }; diff --git a/packages/starlight/schemas/social.ts b/packages/starlight/schemas/social.ts index b55dc944..2c9f929a 100644 --- a/packages/starlight/schemas/social.ts +++ b/packages/starlight/schemas/social.ts @@ -26,6 +26,7 @@ export const SocialLinksSchema = () => 'facebook', 'email', 'reddit', + 'patreon', ]), // Link to the respective social profile for this site z.string().url() @@ -59,6 +60,7 @@ export const SocialLinksSchema = () => facebook: 'Facebook', email: 'Email', reddit: 'Reddit', + patreon: 'Patreon', }[key]; labelledLinks[key] = { label, url }; } -- cgit