X-Git-Url: http://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/pie.php?a=blobdiff_plain;f=docs%2Fextension.schema.json;h=14a97311983ff23394c587b99c5c64ca3e05ab1e;hb=41269d28db317de86e4fafe35f781432bd2d4dc0;hp=c69cbe340c47f7637048a8d8588ce921891182db;hpb=771d4b49bc9e99cf7f7b28eced8773a2da5f85cd;p=lhc%2Fweb%2Fwiklou.git diff --git a/docs/extension.schema.json b/docs/extension.schema.json index c69cbe340c..14a9731198 100644 --- a/docs/extension.schema.json +++ b/docs/extension.schema.json @@ -415,7 +415,7 @@ }, "group": { "type": "string", - "description": "Group which this module should be loaded together with" + "description": "Group with which this module should be loaded" }, "position": { "type": "string", @@ -438,6 +438,48 @@ } } }, + { + "description": "A ResourceLoaderWikiModule definition", + "additionalProperties": false, + "properties": { + "class": { + "enum": ["ResourceLoaderWikiModule"] + }, + "group": { + "type": "string", + "description": "Group with which this module should be loaded" + }, + "position": { + "type": "string", + "description": "Position on the page to load this module at", + "enum": [ + "bottom", + "top" + ] + }, + "targets": { + "type": ["string", "array"], + "description": "ResourceLoader target the module can run on", + "items": { + "type": "string" + } + }, + "scripts": { + "type": "array", + "description": "A list of on-wiki pages containing JavaScript that should be loaded", + "items": { + "type": "string" + } + }, + "styles": { + "type": "array", + "description": "A list of on-wiki pages containing CSS that should be loaded", + "items": { + "type": "string" + } + } + } + }, { "description": "A ResourceLoaderImageModule definition", "additionalProperties": false, @@ -500,10 +542,6 @@ "type": "object", "description": "ResourceLoader LESS variables" }, - "ResourceLoaderLESSImportPaths": { - "type": "object", - "description": "ResourceLoader import paths" - }, "ConfigRegistry": { "type": "object", "description": "Registry of factory functions to create Config objects" @@ -819,20 +857,21 @@ ], "description": "A function to be called right after MediaWiki processes this file" }, + "config_prefix": { + "type": "string", + "default": "wg", + "description": "Prefix to put in front of configuration settings when exporting them to $GLOBALS" + }, "config": { "type": "object", "description": "Configuration options for this extension", - "properties": { - "_prefix": { - "type": "string", - "default": "wg", - "description": "Prefix to put in front of configuration settings when exporting them to $GLOBALS" - } - }, "patternProperties": { "^[a-zA-Z_\u007f-\u00ff][a-zA-Z0-9_\u007f-\u00ff]*$": { "properties": { - "_merge_strategy": { + "value": { + "required": true + }, + "merge_strategy": { "type": "string", "enum": [ "array_merge_recursive", @@ -841,6 +880,10 @@ "array_merge" ], "default": "array_merge" + }, + "description": { + "type": ["string", "array"], + "description": "A description of the config setting, mostly for documentation/developers" } } }