-
Notifications
You must be signed in to change notification settings - Fork 3
/
keystatic.config.ts
112 lines (110 loc) · 2.9 KB
/
keystatic.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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
import { config, fields, collection } from "@keystatic/core";
export default config({
storage: import.meta.env.PUBLIC_KEYSTATIC_GITHUB_APP_SLUG
? {
kind: "github",
repo: {
owner: "DHARPA-Project",
name: "kiara-website",
},
}
: { kind: "local" },
collections: {
concepts: collection({
label: "Concepts",
slugField: "title",
path: "src/content/docs/concepts/*",
format: { contentField: "content" },
schema: {
title: fields.slug({ name: { label: "Title" } }),
content: fields.document({
label: "Content",
formatting: true,
dividers: true,
links: true,
images: true,
}),
},
}),
users: collection({
label: "Module user docs",
slugField: "title",
path: "src/content/docs/module-users/*",
format: { contentField: "content" },
schema: {
title: fields.slug({ name: { label: "Title" } }),
content: fields.document({
label: "Content",
formatting: true,
dividers: true,
links: true,
images: true,
}),
},
}),
developer: collection({
label: "Module writer docs",
slugField: "title",
path: "src/content/docs/module-writers/*",
format: { contentField: "content" },
schema: {
title: fields.slug({ name: { label: "Title" } }),
content: fields.document({
label: "Content",
formatting: true,
dividers: true,
links: true,
images: true,
}),
},
}),
miniapp: collection({
label: "Mini-app user docs",
slugField: "title",
path: "src/content/docs/mini-app-users/*",
format: { contentField: "content" },
schema: {
title: fields.slug({ name: { label: "Title" } }),
content: fields.document({
label: "Content",
formatting: true,
dividers: true,
links: true,
images: true,
}),
},
}),
core: collection({
label: "Core developer docs",
slugField: "title",
path: "src/content/docs/core-devs/*",
format: { contentField: "content" },
schema: {
title: fields.slug({ name: { label: "Title" } }),
content: fields.document({
label: "Content",
formatting: true,
dividers: true,
links: true,
images: true,
}),
},
}),
internal: collection({
label: "Internal docs",
slugField: "title",
path: "src/content/docs/internal/*",
format: { contentField: "content" },
schema: {
title: fields.slug({ name: { label: "Title" } }),
content: fields.document({
label: "Content",
formatting: true,
dividers: true,
links: true,
images: true,
}),
},
}),
},
});