Skip to content

Commit

Permalink
i18n(zh-cn): Update configuraion.mdx (#1968)
Browse files Browse the repository at this point in the history
* i18n(zh-cn): Update `sidebar.mdx`

* i18n(zh-cn): Update `configuration.mdx`

---------

Co-authored-by: liruifengv <[email protected]>
  • Loading branch information
huyikai and liruifengv authored Jun 6, 2024
1 parent 2b4ca8e commit e614a2e
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion docs/src/content/docs/zh-cn/reference/configuration.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,8 @@ type SidebarItem = {
```ts
interface BadgeConfig {
text: string;
variant: 'note' | 'tip' | 'caution' | 'danger' | 'success' | 'default';
variant?: 'note' | 'tip' | 'caution' | 'danger' | 'success' | 'default';
class?: string;
}
```

Expand Down Expand Up @@ -562,3 +563,13 @@ starlight({
```

有关创建自己的插件的详细信息,请参阅[插件参考](/zh-cn/reference/plugins/)

### `credits`

启用在你的网站页脚显示 “基于 Starlight 构建” 的链接。

```js
starlight({
credits: true,
});
```

0 comments on commit e614a2e

Please sign in to comment.