From 6abae72d5e16add183555822bdd36f2442a72eb3 Mon Sep 17 00:00:00 2001 From: Ammar Abdulhamid Date: Sat, 4 Jan 2020 19:33:29 +0100 Subject: [PATCH] Update extension.json to manifest version 2 Bug: T241892 Change-Id: I9c7156df3220389e7fbf94375e9fdb753458f16e --- extension.json | 43 +++++++++++++++++++++++++++---------------- 1 file changed, 27 insertions(+), 16 deletions(-) diff --git a/extension.json b/extension.json index a96ce106..bc76e8a0 100644 --- a/extension.json +++ b/extension.json @@ -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"