-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmanifest.json
51 lines (51 loc) · 1.73 KB
/
manifest.json
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
{
"name": "Manual of Me Theme",
"description": "Manifest file for configuring the Manual of Me theme for Hugo and Obsidian users.",
"requiredFields": [
{
"field": "Author",
"type": "string",
"description": "The name or nickname of the site author. This field is required and must be filled in for the theme to display author information correctly."
},
{
"field": "site",
"type": "string",
"description": "The unique site ID, automatically generated by the plugin. This should not be changed by the user."
},
{
"field": "theme",
"type": "string",
"description": "The GitHub address of the theme. This can be customized if the user wishes to use a different theme, but the default value should be kept for the Manual of Me theme."
},
{
"field": "content",
"type": "string",
"description": "The path to the content folder. Initially empty, this field will be automatically updated after the user downloads the sample files. Users should update this field if the content folder is located elsewhere."
}
],
"optionalFields": [],
"validation": {
"rules": [
{
"field": "Author",
"required": true,
"message": "The 'Author' field must be filled in with a name or nickname."
},
{
"field": "site",
"required": true,
"message": "The 'site' field is automatically generated and should not be changed."
},
{
"field": "theme",
"required": true,
"message": "The 'theme' field should contain the correct GitHub URL of the theme."
},
{
"field": "content",
"required": true,
"message": "The 'content' field will be automatically updated after downloading the sample files, but if it's manually changed, ensure the correct relative path is used."
}
]
}
}