diff --git a/.changeset/afraid-vans-count.md b/.changeset/afraid-vans-count.md new file mode 100644 index 0000000000..ea153b8021 --- /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 a86cdb41c9..9cfe9cbec4 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 9cdeaeed42..e5cd38c6d9 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 23e5c020ef..f691073778 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 b55dc94411..2c9f929ac7 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 }; }