Update extension.json to manifest version 2

Bug: T241892
Change-Id: I9c7156df3220389e7fbf94375e9fdb753458f16e
This commit is contained in:
Ammar Abdulhamid 2020-01-04 19:33:29 +01:00
parent f87a281bf9
commit 6abae72d5e

View file

@ -25,14 +25,12 @@
"ResourceLoaderTestModules": [
"RelatedArticles\\Hooks::onResourceLoaderTestModules"
],
"ParserFirstCallInit": [
"RelatedArticles\\Hooks::onParserFirstCallInit"
],
"OutputPageParserOutput": [
"RelatedArticles\\Hooks::onOutputPageParserOutput"
],
"MakeGlobalVariablesScript": [
"RelatedArticles\\Hooks::onMakeGlobalVariablesScript"
],
@ -51,7 +49,7 @@
"i18n"
]
},
"manifest_version": 1,
"manifest_version": 2,
"ResourceModules": {
"ext.relatedArticles.cards": {
"targets": [
@ -99,11 +97,14 @@
"remoteExtPath": "RelatedArticles/resources/ext.relatedArticles.readMore.bootstrap",
"packageFiles": [
"index.js",
{ "name": "data.json", "config": {
"useCirrusSearch": "RelatedArticlesUseCirrusSearch",
"onlyUseCirrusSearch": "RelatedArticlesOnlyUseCirrusSearch",
"descriptionSource": "RelatedArticlesDescriptionSource"
} }
{
"name": "data.json",
"config": {
"useCirrusSearch": "RelatedArticlesUseCirrusSearch",
"onlyUseCirrusSearch": "RelatedArticlesOnlyUseCirrusSearch",
"descriptionSource": "RelatedArticlesDescriptionSource"
}
}
],
"dependencies": [
"mediawiki.experiments",
@ -143,14 +144,24 @@
}
},
"config": {
"@RelatedArticlesCardLimit": "Maximum number of articles that should be shown in RelatedArticles widget. This limit is derived from limits in TextExtracts and PageImages extensions. Number should be between 1 and 20.",
"RelatedArticlesCardLimit": 3,
"RelatedArticlesUseCirrusSearch": false,
"RelatedArticlesOnlyUseCirrusSearch": false,
"@RelatedArticlesDescriptionSource": "Source to get the page description from (string, or false to not fetch the description). Possible values: wikidata, textextracts, pagedescription.",
"RelatedArticlesDescriptionSource": false,
"@RelatedArticlesFooterWhitelistedSkins": "List of skin names (e.g. 'minerva') where related articles will be shown in the footer.",
"RelatedArticlesFooterWhitelistedSkins": []
"RelatedArticlesCardLimit": {
"description": "Maximum number of articles that should be shown in RelatedArticles widget. This limit is derived from limits in TextExtracts and PageImages extensions. Number should be between 1 and 20.",
"value": 3
},
"RelatedArticlesUseCirrusSearch": {
"value": false
},
"RelatedArticlesOnlyUseCirrusSearch": {
"value": false
},
"RelatedArticlesDescriptionSource": {
"description": "Source to get the page description from (string, or false to not fetch the description). Possible values: wikidata, textextracts, pagedescription.",
"value": false
},
"RelatedArticlesFooterWhitelistedSkins": {
"description": "List of skin names (e.g. 'minerva') where related articles will be shown in the footer.",
"value": []
}
},
"ConfigRegistry": {
"RelatedArticles": "GlobalVarConfig::newInstance"