Skip to content

Commit

Permalink
i18n(zh): Update customization.mdx and configuration.md (#799)
Browse files Browse the repository at this point in the history
  • Loading branch information
leovoon committed Oct 3, 2023
1 parent 5c4f529 commit a16f3e9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docs/src/content/docs/zh/guides/customization.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -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、RSSStack Overflow、Telegram、Threads、Twitch、TwitterX 和 YouTube。如果你需要支持其他服务,请在 GitHub 或 Discord 上告诉我们!

```js
// astro.config.mjs
Expand Down
3 changes: 2 additions & 1 deletion docs/src/content/docs/zh/reference/configuration.md
Original file line number Diff line number Diff line change
Expand Up @@ -305,7 +305,7 @@ starlight({

### `social`

**类型:** `Partial<Record<'bitbucket' | 'codeberg' | 'codePen' | 'discord' | 'github' | 'gitlab' | 'gitter' | 'instagram' | 'linkedin' | 'mastodon' | 'microsoftTeams' | 'stackOverflow' | 'threads' | 'twitch' | 'twitter' | 'youtube', string>>`
**类型:** `Partial<Record<'bitbucket' | 'codeberg' | 'codePen' | 'discord' | 'github' | 'gitlab' | 'gitter' | 'instagram' | 'linkedin' | 'mastodon' | 'microsoftTeams' | 'rss' | 'stackOverflow' | 'telegram' | 'threads' | 'twitch' | 'twitter' | 'x.com' | 'youtube', string>>`

可选的社交媒体账户详情。添加任何一个都会在网站标题中显示它们作为图标链接。

Expand All @@ -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',
},
});
Expand Down

0 comments on commit a16f3e9

Please sign in to comment.