mediawiki-extensions-Relate.../extension.json
jdlrobson dbb73c389d Remove Related Articles from desktop beta features
This change removes RelatedArticles from beta features.
It repurposes the BlacklistSkins config to be a whitelist that describes
when related pages should be shown in the footer.

To avoid enabling related pages on desktop, this depends on a config
change that makes use of the new configuration option.

Simplify browser tests to reflect the new status quo.

Bug: T146436
Bug: T160076
Depends-On: I522e0182d1c3d9261bd0561c3ec0c789b6431c7a
Change-Id: I84da1fb33a901a6365375d00d192af35422ff0b0
2017-04-04 23:01:36 +00:00

138 lines
3.5 KiB
JSON

{
"name": "RelatedArticles",
"version": "2.1.0",
"author": [
"Roland Unger",
"Hans Musil",
"Matthias Mullie",
"Sam Smith"
],
"url": "https://www.mediawiki.org/wiki/Extension:RelatedArticles",
"descriptionmsg": "relatedarticles-desc",
"license-name": "GPL-2.0",
"type": "betafeatures",
"AutoloadClasses": {
"RelatedArticles\\Hooks": "includes/Hooks.php",
"RelatedArticles\\SidebarHooks": "includes/SidebarHooks.php",
"RelatedArticles\\FooterHooks": "includes/FooterHooks.php"
},
"ExtensionMessagesFiles": {
"RelatedArticlesMagic": "RelatedArticles.i18n.magic.php"
},
"Hooks": {
"ResourceLoaderTestModules": [
"RelatedArticles\\Hooks::onResourceLoaderTestModules"
],
"ParserFirstCallInit": [
"RelatedArticles\\Hooks::onParserFirstCallInit"
],
"OutputPageParserOutput": [
"RelatedArticles\\Hooks::onOutputPageParserOutput"
],
"SidebarBeforeOutput": [
"RelatedArticles\\SidebarHooks::onSidebarBeforeOutput"
],
"MakeGlobalVariablesScript": [
"RelatedArticles\\FooterHooks::onMakeGlobalVariablesScript"
],
"BeforePageDisplay": [
"RelatedArticles\\FooterHooks::onBeforePageDisplay"
],
"EventLoggingRegisterSchemas": [
"RelatedArticles\\FooterHooks::onEventLoggingRegisterSchemas"
],
"ResourceLoaderGetConfigVars": [
"RelatedArticles\\FooterHooks::onResourceLoaderGetConfigVars"
],
"ResourceLoaderRegisterModules": [
"RelatedArticles\\FooterHooks::onResourceLoaderRegisterModules"
]
},
"MessagesDirs": {
"RelatedArticles": [
"i18n"
]
},
"manifest_version": 1,
"ResourceModules": {
"ext.relatedArticles.readMore.gateway": {
"scripts": [
"resources/ext.relatedArticles.readMore.gateway/RelatedPagesGateway.js"
],
"dependencies": [
"oojs"
],
"targets": [
"mobile",
"desktop"
]
},
"ext.relatedArticles.readMore.bootstrap": {
"scripts": [
"resources/ext.relatedArticles.readMore.bootstrap/index.js"
],
"dependencies": [
"mediawiki.experiments",
"mediawiki.user",
"mediawiki.api",
"mediawiki.Uri",
"mediawiki.viewport",
"ext.relatedArticles.readMore.gateway",
"ext.relatedArticles.readMore.eventLogging",
"jquery.throttle-debounce"
],
"targets": [
"mobile",
"desktop"
]
},
"ext.relatedArticles.readMore": {
"dependencies": [
"mediawiki.util",
"ext.relatedArticles.readMore.eventLogging"
],
"scripts": [
"resources/ext.relatedArticles.readMore/index.js"
],
"styles": [
"resources/ext.relatedArticles.readMore/readMore.less"
],
"skinStyles": {
"default": "resources/ext.relatedArticles.readMore/readMore.default.less",
"monobook": [
"resources/ext.relatedArticles.readMore/readMore.default.less",
"resources/ext.relatedArticles.readMore/readMore.monobook.less"
],
"minerva": ""
},
"messages": [
"relatedarticles-read-more-heading"
],
"targets": [
"desktop",
"mobile"
]
}
},
"config": {
"RelatedArticlesShowInSidebar": true,
"RelatedArticlesShowInFooter": false,
"RelatedArticlesUseCirrusSearch": false,
"RelatedArticlesOnlyUseCirrusSearch": false,
"RelatedArticlesLoggingSamplingRate": 0.01,
"RelatedArticlesEnabledSamplingRate": 1,
"@RelatedArticlesFooterWhitelistedSkins": "List of skin names (e.g. 'minerva') where related articles will be shown in the footer.",
"RelatedArticlesFooterWhitelistedSkins": [ "minerva" ]
},
"ConfigRegistry": {
"RelatedArticles": "GlobalVarConfig::newInstance"
},
"ResourceFileModulePaths": {
"localBasePath": "",
"remoteExtPath": "RelatedArticles"
}
}