Skip to content

Commit faa41bb

Browse files
committed
chore: add metadata JSON file for website configuration
1 parent 18f7590 commit faa41bb

File tree

2 files changed

+79
-0
lines changed

2 files changed

+79
-0
lines changed

website/metadata.json

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
{
2+
"$schema": "./metadata.schema.json",
3+
"language": "ja-JP",
4+
"version": "0.13.1",
5+
"typstOfficialUrl": "https://typst.app",
6+
"typstOfficialDocsUrl": "https://typst.app/docs/",
7+
"githubOrganizationUrl": "https://github.com/typst",
8+
"githubRepositoryUrl": "https://github.com/typst/typst",
9+
"discordServerUrl": "https://discord.gg/typst",
10+
"originUrl": "https://typst.app",
11+
"basePath": "/docs/",
12+
"displayTranslationStatus": true
13+
}

website/metadata.schema.json

Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
{
2+
"$schema": "http://json-schema.org/draft-07/schema#",
3+
"type": "object",
4+
"properties": {
5+
"language": {
6+
"type": "string",
7+
"description": "The language of the documentation.",
8+
"enum": ["ja-JP", "en-US"]
9+
},
10+
"version": {
11+
"type": "string",
12+
"description": "The version of the documentation, without a leading 'v'."
13+
},
14+
"typstOfficialUrl": {
15+
"type": "string",
16+
"format": "uri",
17+
"description": "The official Typst website URL."
18+
},
19+
"typstOfficialDocsUrl": {
20+
"type": "string",
21+
"description": "The official Typst documentation base URL.",
22+
"pattern": "^https?://.+/$"
23+
},
24+
"githubOrganizationUrl": {
25+
"type": "string",
26+
"format": "uri",
27+
"description": "The GitHub organization URL."
28+
},
29+
"githubRepositoryUrl": {
30+
"type": "string",
31+
"format": "uri",
32+
"description": "The GitHub repository URL."
33+
},
34+
"discordServerUrl": {
35+
"type": "string",
36+
"format": "uri",
37+
"description": "The Discord server invite URL."
38+
},
39+
"originUrl": {
40+
"type": "string",
41+
"format": "uri",
42+
"description": "The origin URL of the deployed site, used for metadata. Note that the base path should not be included."
43+
},
44+
"basePath": {
45+
"type": "string",
46+
"description": "The base public path for deployment. This must match the value used in typst-docs.",
47+
"pattern": "^/$|^/[^/]+/$"
48+
},
49+
"displayTranslationStatus": {
50+
"type": "boolean",
51+
"description": "Indicates whether to display the translation status on the site. Community content is always displayed."
52+
}
53+
},
54+
"required": [
55+
"language",
56+
"version",
57+
"typstOfficialUrl",
58+
"typstOfficialDocsUrl",
59+
"githubOrganizationUrl",
60+
"githubRepositoryUrl",
61+
"discordServerUrl",
62+
"originUrl",
63+
"basePath",
64+
"displayTranslationStatus"
65+
]
66+
}

0 commit comments

Comments
 (0)