docs: improve individual readme usage sections (#1583)

* docs: improve individual readme usage sections

* fix(userstyles.schema.json): disable `additionalProperties` for all objects
This commit is contained in:
uncenter authored and GitHub committed 2025-01-20 20:21:20 -05:00
1 parent 421cb769eb
commit d1e9fa4c30
5 files changed
+42 -53

No files matched your search

+17 -14
View File
@@ -15,13 +15,6 @@
"type": "object",
"description": "The directory of the userstyle.",
"examples": ["youtube"],
"required": [
"name",
"categories",
"readme",
"color",
"current-maintainers"
],
"additionalProperties": false,
"properties": {
"name": {
@@ -85,7 +78,7 @@
"title": "README",
"description": "Options to help in the auto-generation of the userstyle README.",
"type": "object",
"required": ["app-link"],
"additionalProperties": false,
"properties": {
"app-link": {
"$id": "#userstyles/userstyle/readme/app-link",
@@ -108,10 +101,10 @@
}
]
},
"usage": {
"$id": "#userstyles/userstyle/readme/usage",
"title": "Usage",
"description": "The Usage section of the userstyle README.",
"note": {
"$id": "#userstyles/userstyle/readme/note",
"title": "Note",
"description": "An additional note for the Usage section of the userstyle README.",
"type": "string"
},
"faq": {
@@ -122,6 +115,7 @@
"minItems": 1,
"items": {
"type": "object",
"additionalProperties": false,
"properties": {
"question": {
"type": "string",
@@ -137,7 +131,8 @@
"required": ["question", "answer"]
}
}
}
},
"required": ["app-link"]
},
"current-maintainers": {
"$id": "#userstyles/userstyle/current-maintainers",
@@ -154,7 +149,14 @@
"description": "List of all users that have maintained this userstyle in the past.",
"$ref": "#/$defs/collaborators"
}
}
},
"required": [
"name",
"categories",
"readme",
"color",
"current-maintainers"
]
}
}
},
@@ -173,6 +175,7 @@
"type": "array",
"items": {
"type": "object",
"additionalProperties": false,
"properties": {
"name": {
"type": "string",