From 8f7e88e5502ff270c24f7b1480deadf5680691bd Mon Sep 17 00:00:00 2001 From: Adrien Pinet Date: Sun, 24 Sep 2023 17:34:55 +0200 Subject: [PATCH 01/21] add twitter new logo --- packages/starlight/components/Icons.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/starlight/components/Icons.ts b/packages/starlight/components/Icons.ts index 68f1632fa4a..24137fb60cd 100644 --- a/packages/starlight/components/Icons.ts +++ b/packages/starlight/components/Icons.ts @@ -68,6 +68,7 @@ export const Icons = { '', twitter: '', + x: '', mastodon: '', codeberg: From 375c1c1994b573b2010f86e784eb704d5c5ebe93 Mon Sep 17 00:00:00 2001 From: Adrien Pinet Date: Sun, 24 Sep 2023 21:02:16 +0200 Subject: [PATCH 02/21] add X social --- packages/starlight/components/SocialIcons.astro | 1 + packages/starlight/utils/user-config.ts | 1 + 2 files changed, 2 insertions(+) diff --git a/packages/starlight/components/SocialIcons.astro b/packages/starlight/components/SocialIcons.astro index 2a42e71f797..3c11a28b6a6 100644 --- a/packages/starlight/components/SocialIcons.astro +++ b/packages/starlight/components/SocialIcons.astro @@ -21,6 +21,7 @@ const labels: Record = { microsoftTeams: 'Microsoft Teams', instagram: 'Instagram', stackOverflow: 'Stack Overflow', + x: 'X', }; const links = Object.entries(config.social || {}).filter(([, url]) => Boolean(url)) as [ diff --git a/packages/starlight/utils/user-config.ts b/packages/starlight/utils/user-config.ts index dcc69ee4398..3940a670eb0 100644 --- a/packages/starlight/utils/user-config.ts +++ b/packages/starlight/utils/user-config.ts @@ -152,6 +152,7 @@ const UserConfigSchema = z.object({ 'microsoftTeams', 'instagram', 'stackOverflow', + 'x', ]), // Link to the respective social profile for this site z.string().url() From d715b5f8a3148e87d7bac074200a3e12ee5e5713 Mon Sep 17 00:00:00 2001 From: Adrien Pinet Date: Sat, 30 Sep 2023 13:55:14 +0200 Subject: [PATCH 03/21] add X as in social section in customization.mdx and configuration.mdx for all existing languages --- docs/src/content/docs/de/reference/configuration.md | 3 ++- docs/src/content/docs/es/guides/customization.mdx | 2 +- docs/src/content/docs/es/reference/configuration.md | 3 ++- docs/src/content/docs/fr/guides/customization.mdx | 2 +- docs/src/content/docs/fr/reference/configuration.md | 3 ++- docs/src/content/docs/guides/customization.mdx | 2 +- docs/src/content/docs/it/guides/customization.mdx | 2 +- docs/src/content/docs/it/reference/configuration.md | 3 ++- docs/src/content/docs/ja/guides/customization.mdx | 2 +- docs/src/content/docs/ja/reference/configuration.md | 3 ++- docs/src/content/docs/ko/guides/customization.mdx | 2 +- docs/src/content/docs/ko/reference/configuration.md | 3 ++- docs/src/content/docs/pt-br/guides/customization.mdx | 2 +- docs/src/content/docs/pt-br/reference/configuration.md | 3 ++- docs/src/content/docs/reference/configuration.md | 3 ++- docs/src/content/docs/zh/guides/customization.mdx | 2 +- docs/src/content/docs/zh/reference/configuration.md | 3 ++- 17 files changed, 26 insertions(+), 17 deletions(-) diff --git a/docs/src/content/docs/de/reference/configuration.md b/docs/src/content/docs/de/reference/configuration.md index de88c323a74..42c105697c6 100644 --- a/docs/src/content/docs/de/reference/configuration.md +++ b/docs/src/content/docs/de/reference/configuration.md @@ -295,7 +295,7 @@ Das `defaultLocale` wird verwendet, um Ersatzinhalte bereitzustellen, wenn Über ### `social` -**Typ:** `Partial>` +**Typ:** `Partial>` Optionale Angaben zu den Social-Media-Konten für diese Site. Wenn du eines dieser Konten hinzufügst, werden sie als Icon-Links in der Kopfzeile der Website angezeigt. @@ -311,6 +311,7 @@ starlight({ threads: 'https://www.threads.net/@nmoodev', twitch: 'https://www.twitch.tv/bholmesdev', twitter: 'https://twitter.com/astrodotbuild', + x: 'https://x.com/astrodotbuild', youtube: 'https://youtube.com/@astrodotbuild', }, }); diff --git a/docs/src/content/docs/es/guides/customization.mdx b/docs/src/content/docs/es/guides/customization.mdx index b1603164115..3452e807a0e 100644 --- a/docs/src/content/docs/es/guides/customization.mdx +++ b/docs/src/content/docs/es/guides/customization.mdx @@ -188,7 +188,7 @@ defineConfig({ Starlight cuenta con soporte incorporado para agregar enlaces a tus cuentas de redes sociales en el encabezado del sitio mediante la opción [`social`](/es/reference/configuration/#social) en la integración de Starlight. -Actualmente, se admiten enlaces a Bitbucket, Codeberg, CodePen, Discord, GitHub, GitLab, Gitter, Instagram, LinkedIn, Mastodon, Microsoft Teams, Stack Overflow, Threads, Twitch, Twitter, y Youtube ¡Háznoslo saber en GitHub o Discord si necesitas soporte para otro servicio! +Actualmente, se admiten enlaces a Bitbucket, Codeberg, CodePen, Discord, GitHub, GitLab, Gitter, Instagram, LinkedIn, Mastodon, Microsoft Teams, Stack Overflow, Threads, Twitch, Twitter, X, y Youtube ¡Háznoslo saber en GitHub o Discord si necesitas soporte para otro servicio! ```js // astro.config.mjs diff --git a/docs/src/content/docs/es/reference/configuration.md b/docs/src/content/docs/es/reference/configuration.md index 3d7df8e148d..4a9fbc39ac1 100644 --- a/docs/src/content/docs/es/reference/configuration.md +++ b/docs/src/content/docs/es/reference/configuration.md @@ -308,7 +308,7 @@ El idioma predeterminado se utilizará para proporcionar contenido de respaldo d ### `social` -**tipo:** `Partial>` +**tipo:** `Partial>` Detalles opcionales sobre las cuentas de redes sociales para este sitio. Agregar cualquiera de estos los mostrará como enlaces de iconos en el encabezado del sitio. @@ -323,6 +323,7 @@ starlight({ threads: 'https://www.threads.net/@nmoodev', twitch: 'https://www.twitch.tv/bholmesdev', twitter: 'https://twitter.com/astrodotbuild', + x: 'https://x.com/astrodotbuild', youtube: 'https://youtube.com/@astrodotbuild', }, }); diff --git a/docs/src/content/docs/fr/guides/customization.mdx b/docs/src/content/docs/fr/guides/customization.mdx index 1185031c6d0..5ae64237b83 100644 --- a/docs/src/content/docs/fr/guides/customization.mdx +++ b/docs/src/content/docs/fr/guides/customization.mdx @@ -191,7 +191,7 @@ defineConfig({ Starlight supporte par défaut l’ajout de liens vers vos comptes de médias sociaux dans l’en-tête du site via l’option [`social`](/reference/configuration/#social) dans l’intégration Starlight. -Actuellement, les liens vers Bitbucket, Codeberg, Codepen, Discord, GitHub, GitLab, Gitter, Instagram, LinkedIn, Mastodon, Microsoft Teams, Stack Overflow, Threads, Twitch, Twitter et Youtube sont pris en charge. +Actuellement, les liens vers Bitbucket, Codeberg, Codepen, Discord, GitHub, GitLab, Gitter, Instagram, LinkedIn, Mastodon, Microsoft Teams, Stack Overflow, Threads, Twitch, Twitter, X et Youtube sont pris en charge. Faites-nous savoir sur GitHub ou Discord si vous avez besoin de la prise en charge d’un autre service ! ```js diff --git a/docs/src/content/docs/fr/reference/configuration.md b/docs/src/content/docs/fr/reference/configuration.md index 9dcaa23e101..6a81f427c80 100644 --- a/docs/src/content/docs/fr/reference/configuration.md +++ b/docs/src/content/docs/fr/reference/configuration.md @@ -304,7 +304,7 @@ La locale par défaut sera utilisée pour fournir un contenu de remplacement lor ### `social` -**type:** `Partial>` +**type:** `Partial>` Détails optionnels sur les comptes de médias sociaux pour ce site. L'ajout de l'un d'entre eux les affichera sous forme de liens iconiques dans l'en-tête du site. @@ -320,6 +320,7 @@ starlight({ threads: 'https://www.threads.net/@nmoodev', twitch: 'https://www.twitch.tv/bholmesdev', twitter: 'https://twitter.com/astrodotbuild', + x: 'https://x.com/astrodotbuild', youtube: 'https://youtube.com/@astrodotbuild', }, }); diff --git a/docs/src/content/docs/guides/customization.mdx b/docs/src/content/docs/guides/customization.mdx index e605372cdb7..94c5ffa79d4 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, GitHub, GitLab, Gitter, Instagram, LinkedIn, Mastodon, Microsoft Teams, Stack Overflow, Threads, Twitch, Twitter, and Youtube are supported. +Currently, links to Bitbucket, Codeberg, CodePen, Discord, GitHub, GitLab, Gitter, Instagram, LinkedIn, Mastodon, Microsoft Teams, Stack Overflow, 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/it/guides/customization.mdx b/docs/src/content/docs/it/guides/customization.mdx index 236bda3062d..143b94f0c2f 100644 --- a/docs/src/content/docs/it/guides/customization.mdx +++ b/docs/src/content/docs/it/guides/customization.mdx @@ -192,7 +192,7 @@ defineConfig({ Starlight dispone del supporto integrato per aggiungere collegamenti ai tuoi account di social media all'intestazione del sito tramite l'opzione [`social`](/it/reference/configuration/#social) nell'integrazione Starlight. -Attualmente sono supportati i collegamenti a Bitbucket, Codeberg, CodePen, Discord, GitHub, GitLab, Gitter, Instagram, LinkedIn, Mastodon, Microsoft Teams, Stack Overflow, Threads, Twitch, Twitter e Youtube. +Attualmente sono supportati i collegamenti a Bitbucket, Codeberg, CodePen, Discord, GitHub, GitLab, Gitter, Instagram, LinkedIn, Mastodon, Microsoft Teams, Stack Overflow, Threads, Twitch, Twitter, X e Youtube. Facci sapere su GitHub o Discord se hai bisogno di supporto per un altro servizio! ```js diff --git a/docs/src/content/docs/it/reference/configuration.md b/docs/src/content/docs/it/reference/configuration.md index 950e7cf0106..ec9dea02c8c 100644 --- a/docs/src/content/docs/it/reference/configuration.md +++ b/docs/src/content/docs/it/reference/configuration.md @@ -307,7 +307,7 @@ Verrà utilizzato come fallback per le pagine non tradotte. ### `social` -**type:** `Partial>` +**type:** `Partial>` Dettagli opzionali per gli account social del sito. Se vengono aggiunti apparirà l'icona corrispondente nella barra superiore. @@ -323,6 +323,7 @@ starlight({ threads: 'https://www.threads.net/@nmoodev', twitch: 'https://www.twitch.tv/bholmesdev', twitter: 'https://twitter.com/astrodotbuild', + x: 'https://x.com/astrodotbuild', youtube: 'https://youtube.com/@astrodotbuild', }, }); diff --git a/docs/src/content/docs/ja/guides/customization.mdx b/docs/src/content/docs/ja/guides/customization.mdx index fafe669206a..e8d4873803e 100644 --- a/docs/src/content/docs/ja/guides/customization.mdx +++ b/docs/src/content/docs/ja/guides/customization.mdx @@ -186,7 +186,7 @@ defineConfig({ Starlightは、Starlightインテグレーションの[`social`](/ja/reference/configuration/#social)オプションを使用して、サイトヘッダーにソーシャルメディアアカウントへのリンクを追加する機能を備えています。 -現在、Bitbucket、Codeberg、CodePen、Discord、GitHub、GitLab、Gitter、Instagram、LinkedIn、Mastodon、Microsoft Teams、Stack Overflow、Threads、Twitch、Twitter、YouTubeへのリンクがサポートされています。他のサービスのサポートが必要な場合は、GitHubまたはDiscordでお知らせください! +現在、Bitbucket、Codeberg、CodePen、Discord、GitHub、GitLab、Gitter、Instagram、LinkedIn、Mastodon、Microsoft Teams、Stack Overflow、Threads、Twitch、Twitter、X、YouTubeへのリンクがサポートされています。他のサービスのサポートが必要な場合は、GitHubまたはDiscordでお知らせください! ```js // astro.config.mjs diff --git a/docs/src/content/docs/ja/reference/configuration.md b/docs/src/content/docs/ja/reference/configuration.md index 6f492af38ce..358a7dea4e2 100644 --- a/docs/src/content/docs/ja/reference/configuration.md +++ b/docs/src/content/docs/ja/reference/configuration.md @@ -302,7 +302,7 @@ starlight({ ### `social` -**type:** `Partial>` +**type:** `Partial>` このサイトのソーシャルメディアアカウントに関する任意の項目です。これらのいずれかを追加すると、サイトヘッダーにアイコンリンクとして表示されます。 @@ -318,6 +318,7 @@ starlight({ threads: 'https://www.threads.net/@nmoodev', twitch: 'https://www.twitch.tv/bholmesdev', twitter: 'https://twitter.com/astrodotbuild', + x: 'https://x.com/astrodotbuild', youtube: 'https://youtube.com/@astrodotbuild', }, }); diff --git a/docs/src/content/docs/ko/guides/customization.mdx b/docs/src/content/docs/ko/guides/customization.mdx index 1414d587aff..34b489ef46e 100644 --- a/docs/src/content/docs/ko/guides/customization.mdx +++ b/docs/src/content/docs/ko/guides/customization.mdx @@ -186,7 +186,7 @@ defineConfig({ Starlight에는 [`social`](/ko/reference/configuration/#social) 옵션을 사용하여 사이트 헤더에 소셜 미디어 계정을 링크하는 기능이 내장되어 있습니다. -현재 Bitbucket, Codeberg, CodePen, Discord, GitHub, GitLab, Gitter, Instagram, LinkedIn, Mastodon, Microsoft Teams, Stack Overflow, Threads, Twitch, Twitter 및 Youtube에 대한 링크가 지원됩니다. 다른 서비스에 대한 지원이 필요하면 GitHub나 Discord를 통해 알려주세요! +현재 Bitbucket, Codeberg, CodePen, Discord, GitHub, GitLab, Gitter, Instagram, LinkedIn, Mastodon, Microsoft Teams, Stack Overflow, Threads, Twitch, Twitter, X 및 Youtube에 대한 링크가 지원됩니다. 다른 서비스에 대한 지원이 필요하면 GitHub나 Discord를 통해 알려주세요! ```js // astro.config.mjs diff --git a/docs/src/content/docs/ko/reference/configuration.md b/docs/src/content/docs/ko/reference/configuration.md index 20c09053a60..93974ab9765 100644 --- a/docs/src/content/docs/ko/reference/configuration.md +++ b/docs/src/content/docs/ko/reference/configuration.md @@ -307,7 +307,7 @@ starlight({ ### `social` -**타입:** `Partial>` +**타입:** `Partial>` 이 사이트의 소셜 미디어 계정에 대한 선택적 세부 정보입니다. 이 중 하나를 추가하면 사이트 헤더에 아이콘 링크로 표시됩니다. @@ -323,6 +323,7 @@ starlight({ threads: 'https://www.threads.net/@nmoodev', twitch: 'https://www.twitch.tv/bholmesdev', twitter: 'https://twitter.com/astrodotbuild', + x: 'https://x.com/astrodotbuild', youtube: 'https://youtube.com/@astrodotbuild', }, }); diff --git a/docs/src/content/docs/pt-br/guides/customization.mdx b/docs/src/content/docs/pt-br/guides/customization.mdx index 55b30e78912..1700d069aac 100644 --- a/docs/src/content/docs/pt-br/guides/customization.mdx +++ b/docs/src/content/docs/pt-br/guides/customization.mdx @@ -192,7 +192,7 @@ defineConfig({ Starlight tem suporte integrado para adicionar links de suas contas de redes sociais ao cabeçalho do site através da opção [`social`](/pt-br/reference/configuration/#social) na integração Starlight. -Atualmente, links para Bitbucket, Codeberg, CodePen, Discord, GitHub, GitLab, Gitter, LinkedIn, Mastodon, Microsoft Teams, Stack Overflow, Threads, Twitch, Twitter e Youtube são suportados. +Atualmente, links para Bitbucket, Codeberg, CodePen, Discord, GitHub, GitLab, Gitter, LinkedIn, Mastodon, Microsoft Teams, Stack Overflow, Threads, Twitch, Twitter, X e Youtube são suportados. Nos avise no GitHub ou Discord se você precisa de suporte para outro serviço! ```js diff --git a/docs/src/content/docs/pt-br/reference/configuration.md b/docs/src/content/docs/pt-br/reference/configuration.md index 3402b754fcf..859a9c9511d 100644 --- a/docs/src/content/docs/pt-br/reference/configuration.md +++ b/docs/src/content/docs/pt-br/reference/configuration.md @@ -307,7 +307,7 @@ O local padrãoserá utilizado para providenciar conteúdo de fallback onde est ### `social` -**tipo:** `Partial>` +**tipo:** `Partial>` Detalhes opcionais sobre as contas de redes sociais para esse site. Adicionar qualquer um desses irá os mostrar como links de ícone no cabeçalho do site. @@ -323,6 +323,7 @@ starlight({ threads: 'https://www.threads.net/@nmoodev', twitch: 'https://www.twitch.tv/bholmesdev', twitter: 'https://twitter.com/astrodotbuild', + x: 'https://x.com/astrodotbuild', youtube: 'https://youtube.com/@astrodotbuild', }, }); diff --git a/docs/src/content/docs/reference/configuration.md b/docs/src/content/docs/reference/configuration.md index 19c877db075..39b3a5e3de7 100644 --- a/docs/src/content/docs/reference/configuration.md +++ b/docs/src/content/docs/reference/configuration.md @@ -307,7 +307,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. @@ -323,6 +323,7 @@ starlight({ threads: 'https://www.threads.net/@nmoodev', twitch: 'https://www.twitch.tv/bholmesdev', twitter: 'https://twitter.com/astrodotbuild', + x: 'https://x.com/astrodotbuild', youtube: 'https://youtube.com/@astrodotbuild', }, }); diff --git a/docs/src/content/docs/zh/guides/customization.mdx b/docs/src/content/docs/zh/guides/customization.mdx index 3eebca3a148..b946f2af296 100644 --- a/docs/src/content/docs/zh/guides/customization.mdx +++ b/docs/src/content/docs/zh/guides/customization.mdx @@ -189,7 +189,7 @@ defineConfig({ Starlight 内置了对通过 Starlight 集成中的 [`social`](/zh/reference/configuration/#social) 选项将链接添加到网站标题的社交媒体帐户的支持。 -目前,支持链接到 Bitbucket、Codeberg、CodePen、Discord、GitHub、GitLab、Gitter、Instagram、LinkedIn、Mastodon、Microsoft Teams、Stack Overflow、Threads、Twitch、Twitter 和 YouTube。如果你需要支持其他服务,请在 GitHub 或 Discord 上告诉我们! +目前,支持链接到 Bitbucket、Codeberg、CodePen、Discord、GitHub、GitLab、Gitter、Instagram、LinkedIn、Mastodon、Microsoft Teams、Stack Overflow、Threads、Twitch、Twitter、X 和 YouTube。如果你需要支持其他服务,请在 GitHub 或 Discord 上告诉我们! ```js // astro.config.mjs diff --git a/docs/src/content/docs/zh/reference/configuration.md b/docs/src/content/docs/zh/reference/configuration.md index b744720dc36..4ec4e7e1eae 100644 --- a/docs/src/content/docs/zh/reference/configuration.md +++ b/docs/src/content/docs/zh/reference/configuration.md @@ -305,7 +305,7 @@ starlight({ ### `social` -**类型:** `Partial>` +**类型:** `Partial>` 可选的社交媒体账户详情。添加任何一个都会在网站标题中显示它们作为图标链接。 @@ -321,6 +321,7 @@ starlight({ threads: 'https://www.threads.net/@nmoodev', twitch: 'https://www.twitch.tv/bholmesdev', twitter: 'https://twitter.com/astrodotbuild', + x: 'https://x.com/astrodotbuild', youtube: 'https://youtube.com/@astrodotbuild', }, }); From e2105ae9714002decf06db11dba5535c01f4d18e Mon Sep 17 00:00:00 2001 From: Chris Swithinbank Date: Mon, 2 Oct 2023 23:57:02 +0200 Subject: [PATCH 04/21] Discard changes to docs/src/content/docs/de/reference/configuration.md --- docs/src/content/docs/de/reference/configuration.md | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/docs/src/content/docs/de/reference/configuration.md b/docs/src/content/docs/de/reference/configuration.md index 42c105697c6..de88c323a74 100644 --- a/docs/src/content/docs/de/reference/configuration.md +++ b/docs/src/content/docs/de/reference/configuration.md @@ -295,7 +295,7 @@ Das `defaultLocale` wird verwendet, um Ersatzinhalte bereitzustellen, wenn Über ### `social` -**Typ:** `Partial>` +**Typ:** `Partial>` Optionale Angaben zu den Social-Media-Konten für diese Site. Wenn du eines dieser Konten hinzufügst, werden sie als Icon-Links in der Kopfzeile der Website angezeigt. @@ -311,7 +311,6 @@ starlight({ threads: 'https://www.threads.net/@nmoodev', twitch: 'https://www.twitch.tv/bholmesdev', twitter: 'https://twitter.com/astrodotbuild', - x: 'https://x.com/astrodotbuild', youtube: 'https://youtube.com/@astrodotbuild', }, }); From abb40f70e782c84579ab5d0cdf4f0caa04de46bf Mon Sep 17 00:00:00 2001 From: Chris Swithinbank Date: Mon, 2 Oct 2023 23:57:11 +0200 Subject: [PATCH 05/21] Discard changes to docs/src/content/docs/es/guides/customization.mdx --- docs/src/content/docs/es/guides/customization.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/src/content/docs/es/guides/customization.mdx b/docs/src/content/docs/es/guides/customization.mdx index 3452e807a0e..b1603164115 100644 --- a/docs/src/content/docs/es/guides/customization.mdx +++ b/docs/src/content/docs/es/guides/customization.mdx @@ -188,7 +188,7 @@ defineConfig({ Starlight cuenta con soporte incorporado para agregar enlaces a tus cuentas de redes sociales en el encabezado del sitio mediante la opción [`social`](/es/reference/configuration/#social) en la integración de Starlight. -Actualmente, se admiten enlaces a Bitbucket, Codeberg, CodePen, Discord, GitHub, GitLab, Gitter, Instagram, LinkedIn, Mastodon, Microsoft Teams, Stack Overflow, Threads, Twitch, Twitter, X, y Youtube ¡Háznoslo saber en GitHub o Discord si necesitas soporte para otro servicio! +Actualmente, se admiten enlaces a Bitbucket, Codeberg, CodePen, Discord, GitHub, GitLab, Gitter, Instagram, LinkedIn, Mastodon, Microsoft Teams, Stack Overflow, Threads, Twitch, Twitter, y Youtube ¡Háznoslo saber en GitHub o Discord si necesitas soporte para otro servicio! ```js // astro.config.mjs From f98c6451de97d0157964de45d7415f4359a1a5da Mon Sep 17 00:00:00 2001 From: Chris Swithinbank Date: Mon, 2 Oct 2023 23:57:23 +0200 Subject: [PATCH 06/21] Discard changes to docs/src/content/docs/es/reference/configuration.md --- docs/src/content/docs/es/reference/configuration.md | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/docs/src/content/docs/es/reference/configuration.md b/docs/src/content/docs/es/reference/configuration.md index 4a9fbc39ac1..3d7df8e148d 100644 --- a/docs/src/content/docs/es/reference/configuration.md +++ b/docs/src/content/docs/es/reference/configuration.md @@ -308,7 +308,7 @@ El idioma predeterminado se utilizará para proporcionar contenido de respaldo d ### `social` -**tipo:** `Partial>` +**tipo:** `Partial>` Detalles opcionales sobre las cuentas de redes sociales para este sitio. Agregar cualquiera de estos los mostrará como enlaces de iconos en el encabezado del sitio. @@ -323,7 +323,6 @@ starlight({ threads: 'https://www.threads.net/@nmoodev', twitch: 'https://www.twitch.tv/bholmesdev', twitter: 'https://twitter.com/astrodotbuild', - x: 'https://x.com/astrodotbuild', youtube: 'https://youtube.com/@astrodotbuild', }, }); From 2929aa7eaca0c76e9805fdcd89ed87690da704ec Mon Sep 17 00:00:00 2001 From: Chris Swithinbank Date: Mon, 2 Oct 2023 23:57:33 +0200 Subject: [PATCH 07/21] Discard changes to docs/src/content/docs/fr/guides/customization.mdx --- docs/src/content/docs/fr/guides/customization.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/src/content/docs/fr/guides/customization.mdx b/docs/src/content/docs/fr/guides/customization.mdx index 5ae64237b83..1185031c6d0 100644 --- a/docs/src/content/docs/fr/guides/customization.mdx +++ b/docs/src/content/docs/fr/guides/customization.mdx @@ -191,7 +191,7 @@ defineConfig({ Starlight supporte par défaut l’ajout de liens vers vos comptes de médias sociaux dans l’en-tête du site via l’option [`social`](/reference/configuration/#social) dans l’intégration Starlight. -Actuellement, les liens vers Bitbucket, Codeberg, Codepen, Discord, GitHub, GitLab, Gitter, Instagram, LinkedIn, Mastodon, Microsoft Teams, Stack Overflow, Threads, Twitch, Twitter, X et Youtube sont pris en charge. +Actuellement, les liens vers Bitbucket, Codeberg, Codepen, Discord, GitHub, GitLab, Gitter, Instagram, LinkedIn, Mastodon, Microsoft Teams, Stack Overflow, Threads, Twitch, Twitter et Youtube sont pris en charge. Faites-nous savoir sur GitHub ou Discord si vous avez besoin de la prise en charge d’un autre service ! ```js From 1883267d73967fb693f19d75aea814578cd46d1c Mon Sep 17 00:00:00 2001 From: Chris Swithinbank Date: Mon, 2 Oct 2023 23:57:44 +0200 Subject: [PATCH 08/21] Discard changes to docs/src/content/docs/fr/reference/configuration.md --- docs/src/content/docs/fr/reference/configuration.md | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/docs/src/content/docs/fr/reference/configuration.md b/docs/src/content/docs/fr/reference/configuration.md index 6a81f427c80..9dcaa23e101 100644 --- a/docs/src/content/docs/fr/reference/configuration.md +++ b/docs/src/content/docs/fr/reference/configuration.md @@ -304,7 +304,7 @@ La locale par défaut sera utilisée pour fournir un contenu de remplacement lor ### `social` -**type:** `Partial>` +**type:** `Partial>` Détails optionnels sur les comptes de médias sociaux pour ce site. L'ajout de l'un d'entre eux les affichera sous forme de liens iconiques dans l'en-tête du site. @@ -320,7 +320,6 @@ starlight({ threads: 'https://www.threads.net/@nmoodev', twitch: 'https://www.twitch.tv/bholmesdev', twitter: 'https://twitter.com/astrodotbuild', - x: 'https://x.com/astrodotbuild', youtube: 'https://youtube.com/@astrodotbuild', }, }); From e329365265e02557a444ef0a304d98e92bc4c9d5 Mon Sep 17 00:00:00 2001 From: Chris Swithinbank Date: Mon, 2 Oct 2023 23:57:54 +0200 Subject: [PATCH 09/21] Discard changes to docs/src/content/docs/it/guides/customization.mdx --- docs/src/content/docs/it/guides/customization.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/src/content/docs/it/guides/customization.mdx b/docs/src/content/docs/it/guides/customization.mdx index 143b94f0c2f..236bda3062d 100644 --- a/docs/src/content/docs/it/guides/customization.mdx +++ b/docs/src/content/docs/it/guides/customization.mdx @@ -192,7 +192,7 @@ defineConfig({ Starlight dispone del supporto integrato per aggiungere collegamenti ai tuoi account di social media all'intestazione del sito tramite l'opzione [`social`](/it/reference/configuration/#social) nell'integrazione Starlight. -Attualmente sono supportati i collegamenti a Bitbucket, Codeberg, CodePen, Discord, GitHub, GitLab, Gitter, Instagram, LinkedIn, Mastodon, Microsoft Teams, Stack Overflow, Threads, Twitch, Twitter, X e Youtube. +Attualmente sono supportati i collegamenti a Bitbucket, Codeberg, CodePen, Discord, GitHub, GitLab, Gitter, Instagram, LinkedIn, Mastodon, Microsoft Teams, Stack Overflow, Threads, Twitch, Twitter e Youtube. Facci sapere su GitHub o Discord se hai bisogno di supporto per un altro servizio! ```js From c74619284faf018800c1a8ed10581947d66c4f1e Mon Sep 17 00:00:00 2001 From: Chris Swithinbank Date: Mon, 2 Oct 2023 23:58:04 +0200 Subject: [PATCH 10/21] Discard changes to docs/src/content/docs/it/reference/configuration.md --- docs/src/content/docs/it/reference/configuration.md | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/docs/src/content/docs/it/reference/configuration.md b/docs/src/content/docs/it/reference/configuration.md index ec9dea02c8c..950e7cf0106 100644 --- a/docs/src/content/docs/it/reference/configuration.md +++ b/docs/src/content/docs/it/reference/configuration.md @@ -307,7 +307,7 @@ Verrà utilizzato come fallback per le pagine non tradotte. ### `social` -**type:** `Partial>` +**type:** `Partial>` Dettagli opzionali per gli account social del sito. Se vengono aggiunti apparirà l'icona corrispondente nella barra superiore. @@ -323,7 +323,6 @@ starlight({ threads: 'https://www.threads.net/@nmoodev', twitch: 'https://www.twitch.tv/bholmesdev', twitter: 'https://twitter.com/astrodotbuild', - x: 'https://x.com/astrodotbuild', youtube: 'https://youtube.com/@astrodotbuild', }, }); From 1a2a90db2a4209d662ed61b54bc10036d1d4fd9b Mon Sep 17 00:00:00 2001 From: Chris Swithinbank Date: Mon, 2 Oct 2023 23:58:13 +0200 Subject: [PATCH 11/21] Discard changes to docs/src/content/docs/ja/guides/customization.mdx --- docs/src/content/docs/ja/guides/customization.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/src/content/docs/ja/guides/customization.mdx b/docs/src/content/docs/ja/guides/customization.mdx index e8d4873803e..fafe669206a 100644 --- a/docs/src/content/docs/ja/guides/customization.mdx +++ b/docs/src/content/docs/ja/guides/customization.mdx @@ -186,7 +186,7 @@ defineConfig({ Starlightは、Starlightインテグレーションの[`social`](/ja/reference/configuration/#social)オプションを使用して、サイトヘッダーにソーシャルメディアアカウントへのリンクを追加する機能を備えています。 -現在、Bitbucket、Codeberg、CodePen、Discord、GitHub、GitLab、Gitter、Instagram、LinkedIn、Mastodon、Microsoft Teams、Stack Overflow、Threads、Twitch、Twitter、X、YouTubeへのリンクがサポートされています。他のサービスのサポートが必要な場合は、GitHubまたはDiscordでお知らせください! +現在、Bitbucket、Codeberg、CodePen、Discord、GitHub、GitLab、Gitter、Instagram、LinkedIn、Mastodon、Microsoft Teams、Stack Overflow、Threads、Twitch、Twitter、YouTubeへのリンクがサポートされています。他のサービスのサポートが必要な場合は、GitHubまたはDiscordでお知らせください! ```js // astro.config.mjs From e931ecbfefd6a519d97ca3fbb9fda3fe182f5175 Mon Sep 17 00:00:00 2001 From: Chris Swithinbank Date: Mon, 2 Oct 2023 23:58:23 +0200 Subject: [PATCH 12/21] Discard changes to docs/src/content/docs/ja/reference/configuration.md --- docs/src/content/docs/ja/reference/configuration.md | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/docs/src/content/docs/ja/reference/configuration.md b/docs/src/content/docs/ja/reference/configuration.md index 358a7dea4e2..6f492af38ce 100644 --- a/docs/src/content/docs/ja/reference/configuration.md +++ b/docs/src/content/docs/ja/reference/configuration.md @@ -302,7 +302,7 @@ starlight({ ### `social` -**type:** `Partial>` +**type:** `Partial>` このサイトのソーシャルメディアアカウントに関する任意の項目です。これらのいずれかを追加すると、サイトヘッダーにアイコンリンクとして表示されます。 @@ -318,7 +318,6 @@ starlight({ threads: 'https://www.threads.net/@nmoodev', twitch: 'https://www.twitch.tv/bholmesdev', twitter: 'https://twitter.com/astrodotbuild', - x: 'https://x.com/astrodotbuild', youtube: 'https://youtube.com/@astrodotbuild', }, }); From bc23536df4622217ab7b31c3ab5984ffdda4da03 Mon Sep 17 00:00:00 2001 From: Chris Swithinbank Date: Mon, 2 Oct 2023 23:58:31 +0200 Subject: [PATCH 13/21] Discard changes to docs/src/content/docs/ko/guides/customization.mdx --- docs/src/content/docs/ko/guides/customization.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/src/content/docs/ko/guides/customization.mdx b/docs/src/content/docs/ko/guides/customization.mdx index 34b489ef46e..1414d587aff 100644 --- a/docs/src/content/docs/ko/guides/customization.mdx +++ b/docs/src/content/docs/ko/guides/customization.mdx @@ -186,7 +186,7 @@ defineConfig({ Starlight에는 [`social`](/ko/reference/configuration/#social) 옵션을 사용하여 사이트 헤더에 소셜 미디어 계정을 링크하는 기능이 내장되어 있습니다. -현재 Bitbucket, Codeberg, CodePen, Discord, GitHub, GitLab, Gitter, Instagram, LinkedIn, Mastodon, Microsoft Teams, Stack Overflow, Threads, Twitch, Twitter, X 및 Youtube에 대한 링크가 지원됩니다. 다른 서비스에 대한 지원이 필요하면 GitHub나 Discord를 통해 알려주세요! +현재 Bitbucket, Codeberg, CodePen, Discord, GitHub, GitLab, Gitter, Instagram, LinkedIn, Mastodon, Microsoft Teams, Stack Overflow, Threads, Twitch, Twitter 및 Youtube에 대한 링크가 지원됩니다. 다른 서비스에 대한 지원이 필요하면 GitHub나 Discord를 통해 알려주세요! ```js // astro.config.mjs From 5aa02bdcca8314d8113113d87466dce7184c97a2 Mon Sep 17 00:00:00 2001 From: Chris Swithinbank Date: Mon, 2 Oct 2023 23:58:37 +0200 Subject: [PATCH 14/21] Discard changes to docs/src/content/docs/ko/reference/configuration.md --- docs/src/content/docs/ko/reference/configuration.md | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/docs/src/content/docs/ko/reference/configuration.md b/docs/src/content/docs/ko/reference/configuration.md index 93974ab9765..20c09053a60 100644 --- a/docs/src/content/docs/ko/reference/configuration.md +++ b/docs/src/content/docs/ko/reference/configuration.md @@ -307,7 +307,7 @@ starlight({ ### `social` -**타입:** `Partial>` +**타입:** `Partial>` 이 사이트의 소셜 미디어 계정에 대한 선택적 세부 정보입니다. 이 중 하나를 추가하면 사이트 헤더에 아이콘 링크로 표시됩니다. @@ -323,7 +323,6 @@ starlight({ threads: 'https://www.threads.net/@nmoodev', twitch: 'https://www.twitch.tv/bholmesdev', twitter: 'https://twitter.com/astrodotbuild', - x: 'https://x.com/astrodotbuild', youtube: 'https://youtube.com/@astrodotbuild', }, }); From 2c0c636c6a83e1d6a6ac8b3585b46b0300302550 Mon Sep 17 00:00:00 2001 From: Chris Swithinbank Date: Mon, 2 Oct 2023 23:58:46 +0200 Subject: [PATCH 15/21] Discard changes to docs/src/content/docs/pt-br/guides/customization.mdx --- docs/src/content/docs/pt-br/guides/customization.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/src/content/docs/pt-br/guides/customization.mdx b/docs/src/content/docs/pt-br/guides/customization.mdx index 1700d069aac..55b30e78912 100644 --- a/docs/src/content/docs/pt-br/guides/customization.mdx +++ b/docs/src/content/docs/pt-br/guides/customization.mdx @@ -192,7 +192,7 @@ defineConfig({ Starlight tem suporte integrado para adicionar links de suas contas de redes sociais ao cabeçalho do site através da opção [`social`](/pt-br/reference/configuration/#social) na integração Starlight. -Atualmente, links para Bitbucket, Codeberg, CodePen, Discord, GitHub, GitLab, Gitter, LinkedIn, Mastodon, Microsoft Teams, Stack Overflow, Threads, Twitch, Twitter, X e Youtube são suportados. +Atualmente, links para Bitbucket, Codeberg, CodePen, Discord, GitHub, GitLab, Gitter, LinkedIn, Mastodon, Microsoft Teams, Stack Overflow, Threads, Twitch, Twitter e Youtube são suportados. Nos avise no GitHub ou Discord se você precisa de suporte para outro serviço! ```js From b4fba27e0d24dff475f18510a78949487e6583f1 Mon Sep 17 00:00:00 2001 From: Chris Swithinbank Date: Mon, 2 Oct 2023 23:58:55 +0200 Subject: [PATCH 16/21] Discard changes to docs/src/content/docs/pt-br/reference/configuration.md --- docs/src/content/docs/pt-br/reference/configuration.md | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/docs/src/content/docs/pt-br/reference/configuration.md b/docs/src/content/docs/pt-br/reference/configuration.md index 859a9c9511d..3402b754fcf 100644 --- a/docs/src/content/docs/pt-br/reference/configuration.md +++ b/docs/src/content/docs/pt-br/reference/configuration.md @@ -307,7 +307,7 @@ O local padrãoserá utilizado para providenciar conteúdo de fallback onde est ### `social` -**tipo:** `Partial>` +**tipo:** `Partial>` Detalhes opcionais sobre as contas de redes sociais para esse site. Adicionar qualquer um desses irá os mostrar como links de ícone no cabeçalho do site. @@ -323,7 +323,6 @@ starlight({ threads: 'https://www.threads.net/@nmoodev', twitch: 'https://www.twitch.tv/bholmesdev', twitter: 'https://twitter.com/astrodotbuild', - x: 'https://x.com/astrodotbuild', youtube: 'https://youtube.com/@astrodotbuild', }, }); From dfb0d1913f9d602c1776412398f148e4b3f4888d Mon Sep 17 00:00:00 2001 From: Chris Swithinbank Date: Mon, 2 Oct 2023 23:59:06 +0200 Subject: [PATCH 17/21] Discard changes to docs/src/content/docs/zh/guides/customization.mdx --- docs/src/content/docs/zh/guides/customization.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/src/content/docs/zh/guides/customization.mdx b/docs/src/content/docs/zh/guides/customization.mdx index b946f2af296..3eebca3a148 100644 --- a/docs/src/content/docs/zh/guides/customization.mdx +++ b/docs/src/content/docs/zh/guides/customization.mdx @@ -189,7 +189,7 @@ defineConfig({ Starlight 内置了对通过 Starlight 集成中的 [`social`](/zh/reference/configuration/#social) 选项将链接添加到网站标题的社交媒体帐户的支持。 -目前,支持链接到 Bitbucket、Codeberg、CodePen、Discord、GitHub、GitLab、Gitter、Instagram、LinkedIn、Mastodon、Microsoft Teams、Stack Overflow、Threads、Twitch、Twitter、X 和 YouTube。如果你需要支持其他服务,请在 GitHub 或 Discord 上告诉我们! +目前,支持链接到 Bitbucket、Codeberg、CodePen、Discord、GitHub、GitLab、Gitter、Instagram、LinkedIn、Mastodon、Microsoft Teams、Stack Overflow、Threads、Twitch、Twitter 和 YouTube。如果你需要支持其他服务,请在 GitHub 或 Discord 上告诉我们! ```js // astro.config.mjs From 7062310bae81d2f51db248c372f0fea7db108835 Mon Sep 17 00:00:00 2001 From: Chris Swithinbank Date: Mon, 2 Oct 2023 23:59:14 +0200 Subject: [PATCH 18/21] Discard changes to docs/src/content/docs/zh/guides/customization.mdx From a8cf9b86121d55102a26037b42bef0982c226ec5 Mon Sep 17 00:00:00 2001 From: Chris Swithinbank Date: Mon, 2 Oct 2023 23:59:25 +0200 Subject: [PATCH 19/21] Discard changes to docs/src/content/docs/zh/reference/configuration.md --- docs/src/content/docs/zh/reference/configuration.md | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/docs/src/content/docs/zh/reference/configuration.md b/docs/src/content/docs/zh/reference/configuration.md index 4ec4e7e1eae..b744720dc36 100644 --- a/docs/src/content/docs/zh/reference/configuration.md +++ b/docs/src/content/docs/zh/reference/configuration.md @@ -305,7 +305,7 @@ starlight({ ### `social` -**类型:** `Partial>` +**类型:** `Partial>` 可选的社交媒体账户详情。添加任何一个都会在网站标题中显示它们作为图标链接。 @@ -321,7 +321,6 @@ starlight({ threads: 'https://www.threads.net/@nmoodev', twitch: 'https://www.twitch.tv/bholmesdev', twitter: 'https://twitter.com/astrodotbuild', - x: 'https://x.com/astrodotbuild', youtube: 'https://youtube.com/@astrodotbuild', }, }); From fccd9997c4a2f51896d880d9800113c3d1b20efd Mon Sep 17 00:00:00 2001 From: Chris Swithinbank Date: Tue, 3 Oct 2023 00:02:48 +0200 Subject: [PATCH 20/21] Rename `x` to `x.com` --- docs/src/content/docs/reference/configuration.md | 4 ++-- packages/starlight/components/Icons.ts | 3 ++- packages/starlight/components/SocialIcons.astro | 2 +- packages/starlight/utils/user-config.ts | 2 +- 4 files changed, 6 insertions(+), 5 deletions(-) diff --git a/docs/src/content/docs/reference/configuration.md b/docs/src/content/docs/reference/configuration.md index 39b3a5e3de7..e871f9f8dc8 100644 --- a/docs/src/content/docs/reference/configuration.md +++ b/docs/src/content/docs/reference/configuration.md @@ -307,7 +307,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. @@ -323,7 +323,7 @@ starlight({ threads: 'https://www.threads.net/@nmoodev', twitch: 'https://www.twitch.tv/bholmesdev', twitter: 'https://twitter.com/astrodotbuild', - x: 'https://x.com/astrodotbuild', + 'x.com': 'https://x.com/astrodotbuild', youtube: 'https://youtube.com/@astrodotbuild', }, }); diff --git a/packages/starlight/components/Icons.ts b/packages/starlight/components/Icons.ts index 24137fb60cd..1271d11286d 100644 --- a/packages/starlight/components/Icons.ts +++ b/packages/starlight/components/Icons.ts @@ -68,7 +68,8 @@ export const Icons = { '', twitter: '', - x: '', + 'x.com': + '', mastodon: '', codeberg: diff --git a/packages/starlight/components/SocialIcons.astro b/packages/starlight/components/SocialIcons.astro index 3c11a28b6a6..3fee9c147a8 100644 --- a/packages/starlight/components/SocialIcons.astro +++ b/packages/starlight/components/SocialIcons.astro @@ -21,7 +21,7 @@ const labels: Record = { microsoftTeams: 'Microsoft Teams', instagram: 'Instagram', stackOverflow: 'Stack Overflow', - x: 'X', + 'x.com': 'X', }; const links = Object.entries(config.social || {}).filter(([, url]) => Boolean(url)) as [ diff --git a/packages/starlight/utils/user-config.ts b/packages/starlight/utils/user-config.ts index 3940a670eb0..d8504091d84 100644 --- a/packages/starlight/utils/user-config.ts +++ b/packages/starlight/utils/user-config.ts @@ -152,7 +152,7 @@ const UserConfigSchema = z.object({ 'microsoftTeams', 'instagram', 'stackOverflow', - 'x', + 'x.com', ]), // Link to the respective social profile for this site z.string().url() From b65b1f48b055d66c75133e272d67025314e3f926 Mon Sep 17 00:00:00 2001 From: Chris Swithinbank Date: Tue, 3 Oct 2023 00:10:13 +0200 Subject: [PATCH 21/21] Add changeset --- .changeset/clever-moose-drum.md | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 .changeset/clever-moose-drum.md diff --git a/.changeset/clever-moose-drum.md b/.changeset/clever-moose-drum.md new file mode 100644 index 00000000000..f5ba28bb4a8 --- /dev/null +++ b/.changeset/clever-moose-drum.md @@ -0,0 +1,5 @@ +--- +"@astrojs/starlight": patch +--- + +Add X social link logo