-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmarkdoc.config.ts
More file actions
43 lines (42 loc) · 1.28 KB
/
Copy pathmarkdoc.config.ts
File metadata and controls
43 lines (42 loc) · 1.28 KB
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
import { defineMarkdocConfig, component } from "@astrojs/markdoc/config";
export default defineMarkdocConfig({
tags: {
mediaappearance: {
render: component("./src/components/MediaAppearance.astro"),
attributes: {
href: { type: String, required: true },
title: { type: String, required: true },
outlet: { type: String, required: false },
},
},
timeline: {
render: component("./src/components/Timeline.astro"),
attributes: {
title: { type: String, required: false },
},
},
timelineevent: {
render: component("./src/components/TimelineEvent.astro"),
attributes: {
title: { type: String, required: true },
moment: { type: String, required: true },
},
},
sociallink: {
render: component("./src/components/SocialLink.astro"),
attributes: {
href: { type: String, required: true },
icon: { type: String, required: true },
ariaLabel: { type: String, required: false },
},
},
pdfembed: {
render: component("./src/components/PdfEmbed.astro"),
attributes: {
src: { type: String, required: true },
title: { type: String, required: false },
height: { type: Number, required: false },
},
},
},
});