refactor(scripts): pull in separate categories.schema.json (#1658)

This commit is contained in:
Hammy authored and GitHub committed 2025-03-20 08:39:11 -04:00
1 parent ef1a2be3c2
commit ac0f3f6677
8 files changed
+106 -99

No files matched your search

+38 -52
View File
@@ -14,7 +14,9 @@
"title": "Userstyle",
"type": "object",
"description": "The directory of the userstyle.",
"examples": ["youtube"],
"examples": [
"youtube"
],
"additionalProperties": false,
"properties": {
"name": {
@@ -28,11 +30,18 @@
"type": "string"
},
"minItems": 2,
"examples": [["AniList", "AniChart"]]
"examples": [
[
"AniList",
"AniChart"
]
]
},
{
"type": "string",
"examples": ["YouTube"]
"examples": [
"YouTube"
]
}
]
},
@@ -64,14 +73,19 @@
"lavender",
"text"
],
"examples": ["pink"]
"examples": [
"pink"
]
},
"icon": {
"$id": "#userstyles/userstyle/icon",
"title": "Icon",
"description": "The icon to use on the website. This should be the same name as the SVG file on https://simpleicons.org/. If a `.svg` suffix is present, it's taken from the local website repository resources.",
"type": "string",
"examples": ["twitch", "twitch.svg"]
"examples": [
"twitch",
"twitch.svg"
]
},
"readme": {
"$id": "#userstyles/userstyle/readme",
@@ -92,12 +106,17 @@
},
"minItems": 2,
"examples": [
["https://anilist.co", "https://anichart.net"]
[
"https://anilist.co",
"https://anichart.net"
]
]
},
{
"type": "string",
"examples": ["https://github.com"]
"examples": [
"https://github.com"
]
}
]
},
@@ -128,11 +147,16 @@
"description": "An answer to the question about the userstyle."
}
},
"required": ["question", "answer"]
"required": [
"question",
"answer"
]
}
}
},
"required": ["app-link"]
"required": [
"app-link"
]
},
"current-maintainers": {
"$id": "#userstyles/userstyle/current-maintainers",
@@ -183,58 +207,20 @@
"description": "The GitHub profile link of the collaborator to show in the userstyle README."
}
},
"required": ["url"]
"required": [
"url"
]
}
},
"categories": {
"$id": "#categories",
"type": "array",
"description": "The categories that fit the port the most, the first category is the primary category which the port will be listed under on the README.",
"minItems": 1,
"maxItems": 3,
"items": {
"$ref": "#/$defs/category"
"$ref": "https://raw.githubusercontent.com/catppuccin/catppuccin/refs/heads/main/resources/categories.schema.json#/$defs/category"
}
},
"category": {
"$id": "#category",
"type": "string",
"enum": [
"3d_modelling",
"analytics",
"application_launcher",
"artificial_intelligence",
"boot_loader",
"browser",
"browser_extension",
"cli",
"code_editor",
"desktop_environment",
"development",
"discussion_forum",
"document_viewer",
"education",
"email_client",
"entertainment",
"file_manager",
"game",
"game_development",
"health_and_fitness",
"library",
"music",
"note_taking",
"notification_daemon",
"photo_and_video",
"productivity",
"search_engine",
"self_hosted",
"social_networking",
"system",
"terminal",
"translation_tool",
"userstyle",
"wiki",
"window_manager"
]
}
}
}