-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmarkdoc.config.ts
48 lines (47 loc) · 1.37 KB
/
markdoc.config.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
import { defineMarkdocConfig, component } from "@astrojs/markdoc/config";
export default defineMarkdocConfig({
tags: {
callout: {
render: component("@components/Aside.astro"),
attributes: {
type: {
type: String,
default: 'note',
matches: ['caution', 'tip', 'caution', 'error'],
errorLevel: 'critical'
},
title: { type: String },
}
},
cardGrid: {
render: component("@astrojs/starlight/components", "CardGrid"),
attributes: {
stagger: { type: "Boolean", default: false },
},
},
card: {
render: component("@astrojs/starlight/components", "Card"),
attributes: {
icon: { type: "String" },
title: { type: "String" },
},
},
linkCard: {
render: component("@astrojs/starlight/components", "LinkCard"),
attributes: {
title: { type: "String" },
description: { type: "String" },
href: { type: "String" },
},
},
tabItem: {
render: component("@astrojs/starlight/components", "TabItem"),
attributes: {
label: { type: "String" },
}
},
tabs: {
render: component("@astrojs/starlight/components", "Tabs"),
}
},
});