mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/RelatedArticles
synced 2024-11-24 08:14:21 +00:00
804debdd8e
Bug: T277958 Depends-On: I34519c75bafb56b7f042d7bb95eed49b59bb01a8 Change-Id: Id4391badba750d5acc0d03c8caf0165ba5910741
172 lines
4.6 KiB
JSON
172 lines
4.6 KiB
JSON
{
|
|
"name": "RelatedArticles",
|
|
"version": "3.1.0",
|
|
"author": [
|
|
"[https://www.mediawiki.org/wiki/Reading/Web/Team Readers Web Team]",
|
|
"Roland Unger",
|
|
"Hans Musil",
|
|
"Matthias Mullie",
|
|
"Sam Smith"
|
|
],
|
|
"url": "https://www.mediawiki.org/wiki/Extension:RelatedArticles",
|
|
"descriptionmsg": "relatedarticles-desc",
|
|
"license-name": "GPL-2.0-only",
|
|
"type": "betafeatures",
|
|
"requires": {
|
|
"MediaWiki": ">= 1.31.0"
|
|
},
|
|
"AutoloadNamespaces": {
|
|
"RelatedArticles\\": "includes/"
|
|
},
|
|
"ExtensionMessagesFiles": {
|
|
"RelatedArticlesMagic": "RelatedArticles.i18n.magic.php"
|
|
},
|
|
"Hooks": {
|
|
"ParserFirstCallInit": "RelatedArticles\\Hooks::onParserFirstCallInit",
|
|
"OutputPageParserOutput": "RelatedArticles\\Hooks::onOutputPageParserOutput",
|
|
"MakeGlobalVariablesScript": "RelatedArticles\\Hooks::onMakeGlobalVariablesScript",
|
|
"BeforePageDisplay": "RelatedArticles\\Hooks::onBeforePageDisplay",
|
|
"ResourceLoaderGetConfigVars": "RelatedArticles\\Hooks::onResourceLoaderGetConfigVars",
|
|
"SkinAfterContent": "RelatedArticles\\Hooks::onSkinAfterContent"
|
|
},
|
|
"MessagesDirs": {
|
|
"RelatedArticles": [
|
|
"i18n"
|
|
]
|
|
},
|
|
"manifest_version": 2,
|
|
"ResourceModules": {
|
|
"ext.relatedArticles.cards": {
|
|
"targets": [
|
|
"desktop",
|
|
"mobile"
|
|
],
|
|
"dependencies": [
|
|
"oojs",
|
|
"mediawiki.util",
|
|
"ext.relatedArticles.lib"
|
|
],
|
|
"scripts": [
|
|
"resources/ext.relatedArticles.cards/init.js",
|
|
"resources/ext.relatedArticles.cards/CardModel.js",
|
|
"resources/ext.relatedArticles.cards/CardView.js",
|
|
"resources/ext.relatedArticles.cards/CardListView.js"
|
|
],
|
|
"styles": [
|
|
"resources/ext.relatedArticles.cards/styles.less"
|
|
]
|
|
},
|
|
"ext.relatedArticles.lib": {
|
|
"targets": [
|
|
"desktop",
|
|
"mobile"
|
|
],
|
|
"scripts": [
|
|
"resources/ext.relatedArticles.lib/CSS.escape/css.escape.js"
|
|
]
|
|
},
|
|
"ext.relatedArticles.readMore.gateway": {
|
|
"scripts": [
|
|
"resources/ext.relatedArticles.readMore.gateway/RelatedPagesGateway.js"
|
|
],
|
|
"dependencies": [
|
|
"oojs"
|
|
],
|
|
"targets": [
|
|
"mobile",
|
|
"desktop"
|
|
]
|
|
},
|
|
"ext.relatedArticles.readMore.bootstrap": {
|
|
"localBasePath": "resources/ext.relatedArticles.readMore.bootstrap",
|
|
"remoteExtPath": "RelatedArticles/resources/ext.relatedArticles.readMore.bootstrap",
|
|
"packageFiles": [
|
|
"index.js",
|
|
{
|
|
"name": "data.json",
|
|
"config": {
|
|
"useCirrusSearch": "RelatedArticlesUseCirrusSearch",
|
|
"onlyUseCirrusSearch": "RelatedArticlesOnlyUseCirrusSearch",
|
|
"descriptionSource": "RelatedArticlesDescriptionSource"
|
|
}
|
|
}
|
|
],
|
|
"dependencies": [
|
|
"mediawiki.experiments",
|
|
"mediawiki.user",
|
|
"mediawiki.api",
|
|
"mediawiki.Uri",
|
|
"mediawiki.viewport",
|
|
"ext.relatedArticles.readMore.gateway",
|
|
"mediawiki.util"
|
|
],
|
|
"targets": [
|
|
"mobile",
|
|
"desktop"
|
|
]
|
|
},
|
|
"ext.relatedArticles.readMore": {
|
|
"dependencies": [
|
|
"mediawiki.util"
|
|
],
|
|
"scripts": [
|
|
"resources/ext.relatedArticles.readMore/index.js"
|
|
],
|
|
"styles": [
|
|
"resources/ext.relatedArticles.readMore/readMore.less"
|
|
],
|
|
"skinStyles": {
|
|
"default": "resources/ext.relatedArticles.readMore/readMore.default.less",
|
|
"minerva": "resources/ext.relatedArticles.readMore/readMore.minerva.less"
|
|
},
|
|
"messages": [
|
|
"relatedarticles-read-more-heading"
|
|
],
|
|
"targets": [
|
|
"desktop",
|
|
"mobile"
|
|
]
|
|
}
|
|
},
|
|
"QUnitTestModule": {
|
|
"localBasePath": "tests/qunit",
|
|
"remoteExtPath": "RelatedArticles/tests/qunit",
|
|
"scripts": [
|
|
"ext.relatedArticles.cards/CardModel.test.js",
|
|
"ext.relatedArticles.cards/CardView.test.js",
|
|
"ext.relatedArticles.readMore.gateway/RelatedPagesGateway.test.js"
|
|
],
|
|
"dependencies": [
|
|
"ext.relatedArticles.cards",
|
|
"ext.relatedArticles.readMore.gateway"
|
|
]
|
|
},
|
|
"config": {
|
|
"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
|
|
},
|
|
"RelatedArticlesFooterAllowedSkins": {
|
|
"description": "List of skin names (e.g. 'minerva') where related articles will be shown in the footer.",
|
|
"value": []
|
|
}
|
|
},
|
|
"ConfigRegistry": {
|
|
"RelatedArticles": "GlobalVarConfig::newInstance"
|
|
},
|
|
"ResourceFileModulePaths": {
|
|
"localBasePath": "",
|
|
"remoteExtPath": "RelatedArticles"
|
|
}
|
|
}
|