Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 24 additions & 1 deletion docs/src/content/docs/zh-cn/reference/configuration.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ type LogoConfig = { alt?: string; replacesTitle?: boolean } & (
### `tableOfContents`

**类型:** `false | { minHeadingLevel?: number; maxHeadingLevel?: number; }`
**默认值:** `{ minHeadingLevel: 2; maxHeadingLevel: 3; }`
**默认值:** `{ minHeadingLevel: 2, maxHeadingLevel: 3; }`

配置每个页面右侧显示的目录。默认情况下,`<h2>` 和 `<h3>` 标题将包含在此目录中。

Expand Down Expand Up @@ -371,6 +371,29 @@ starlight({
});
```

### `markdown`

**类型:** `{ headingLinks?: boolean }`
**默认值:** `{ headingLinks: true }`

配置 Starlight 的 Markdown 处理。

#### `headingLinks`

**类型:** `boolean`
**默认值:** `true`

控制标题是否渲染为可点击的锚点链接。

```js
starlight({
markdown: {
// 禁用 Starlight 的可点击标题锚点链接。
headingLinks: false,
},
}),
```

### `expressiveCode`

**类型:** `StarlightExpressiveCodeOptions | boolean`
Expand Down