From a16f3e9853524e7d0f2cfbef317d9313ffa5ca5c Mon Sep 17 00:00:00 2001 From: Lih Haur Voon Date: Tue, 3 Oct 2023 22:46:15 +0800 Subject: [PATCH] i18n(zh): Update customization.mdx and configuration.md (#799) --- docs/src/content/docs/zh/guides/customization.mdx | 2 +- docs/src/content/docs/zh/reference/configuration.md | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/docs/src/content/docs/zh/guides/customization.mdx b/docs/src/content/docs/zh/guides/customization.mdx index 3eebca3a14..016e8df04b 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、RSS、Stack Overflow、Telegram、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 b744720dc3..0e89bd22ae 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.com': 'https://x.com/astrodotbuild', youtube: 'https://youtube.com/@astrodotbuild', }, });