Skip to content

Commit 4182af6

Browse files
committed
docs(theme-default): add options for code-group container
1 parent d0a20aa commit 4182af6

File tree

2 files changed

+20
-6
lines changed

2 files changed

+20
-6
lines changed

docs/reference/default-theme/config.md

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -544,14 +544,21 @@ module.exports = {
544544

545545
#### themePlugins.container
546546

547-
- Type: `{ [name: 'tip' | 'warning' | 'danger' | 'details']: boolean}`
548-
549-
- Default: `{ tip: true, warning: true, danger: true, details: true }`
547+
- Type: `Record<ContainerType, boolean>`
550548

551549
- Details:
552550

553551
Enable custom blocks that powered by [@vuepress/plugin-container](../plugin/container.md) or not.
554552

553+
`ContainerType` type is:
554+
555+
- `tip`
556+
- `warning`
557+
- `danger`
558+
- `details`
559+
- `codeGroup`
560+
- `codeGroupItem`
561+
555562
- Also see:
556563
- [Default Theme > Markdown > Custom Blocks](./markdown.md#custom-blocks)
557564

docs/zh/reference/default-theme/config.md

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -544,14 +544,21 @@ module.exports = {
544544

545545
#### themePlugins.container
546546

547-
- 类型: `{ [name: 'tip' | 'warning' | 'danger' | 'details']: boolean}`
548-
549-
- 默认值: `{ tip: true, warning: true, danger: true, details: true }`
547+
- 类型: `Record<ContainerType, boolean>`
550548

551549
- 详情:
552550

553551
是否启用由 [@vuepress/plugin-container](../plugin/container.md) 支持的自定义容器。
554552

553+
`ContainerType` 类型为:
554+
555+
- `tip`
556+
- `warning`
557+
- `danger`
558+
- `details`
559+
- `codeGroup`
560+
- `codeGroupItem`
561+
555562
- 参考:
556563
- [默认主题 > Markdown > 自定义容器](./markdown.md#自定义容器)
557564

0 commit comments

Comments
 (0)