Repository navigation
Expand file tree
/
Copy pathmetadata.schema.json
More file actions
93 lines (93 loc) · 2.63 KB
/
Copy pathmetadata.schema.json
File metadata and controls
93 lines (93 loc) · 2.63 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
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
{
"$schema": "http://json-schema.org/draft-07/schema#",
"type": "object",
"properties": {
"language": {
"type": "string",
"description": "The language of the documentation.",
"enum": ["ja-JP", "en-US", "zh-Hans"]
},
"version": {
"type": "string",
"description": "The version of the documentation, without a leading 'v'."
},
"typstOfficialUrl": {
"type": "string",
"format": "uri",
"description": "The official Typst website URL."
},
"typstOfficialDocsUrl": {
"type": "string",
"description": "The official Typst documentation base URL.",
"pattern": "^https?://.+/$"
},
"githubOrganizationUrl": {
"type": "string",
"format": "uri",
"description": "The GitHub organization URL."
},
"socialLinks": {
"type": "array",
"description": "Social links to show in the header and footer. The order of items will be the display order.",
"items": {
"type": "object",
"properties": {
"url": {
"type": "string",
"format": "uri",
"description": "The social link. For example, a GitHub repository URL, a Discord server invite URL, or a homepage.",
"examples": [
"https://github.com/typst/typst",
"https://discord.gg/2uDybryKPe",
"https://typst-jp.github.io",
"https://qm.qq.com/q/Random1234"
]
},
"title": {
"type": "string",
"description": "A brief title of the social link. If not given, a default title will be generated.",
"examples": ["Discord (Kumihan Club)"]
}
},
"required": ["url"]
}
},
"githubRepositoryUrl": {
"type": "string",
"format": "uri",
"deprecated": true,
"description": "The GitHub repository URL. Deprecated, please use `socialLinks` instead."
},
"discordServerUrl": {
"type": "string",
"format": "uri",
"deprecated": true,
"description": "The Discord server invite URL. Deprecated, please use `socialLinks` instead."
},
"originUrl": {
"type": "string",
"format": "uri",
"description": "The origin URL of the deployed site, used for metadata. Note that the base path should not be included."
},
"basePath": {
"type": "string",
"description": "The base public path for deployment. This must match the value used in typst-docs.",
"pattern": "^/([^/]+/)*$"
},
"displayTranslationStatus": {
"type": "boolean",
"description": "Indicates whether to display the translation status on the site. Community content is always displayed."
}
},
"required": [
"language",
"version",
"typstOfficialUrl",
"typstOfficialDocsUrl",
"githubOrganizationUrl",
"socialLinks",
"originUrl",
"basePath",
"displayTranslationStatus"
]
}