Page MenuHomePhabricator

Onwiki and README instructions differ
Open, Needs TriagePublic

Description

README says

== Installation ==

Put this line in your Localsettings.php for the parser "sparql" and the special pages:

    wfLoadExtension( 'LinkedWiki' );

Onwiki at https://www.mediawiki.org/wiki/Extension:LinkedWiki#Installation says you need to yarn install

Event Timeline

Reedy created this task.Jul 23 2018, 12:14 PM
Restricted Application added a subscriber: Aklapper. · View Herald TranscriptJul 23 2018, 12:14 PM
Reedy added a comment.EditedJul 23 2018, 12:23 PM

Is yarn install needed if you're not developing?

Because the docs also say to run composer install but there's only development dependancies

EDIT:

Just noticed this up at the top (why isn't it next to the other requires?)

	"require": {
		"bordercloud/sparql": "dev-master"
	},
Karima added a subscriber: Karima.Jul 23 2018, 1:05 PM

In theory... with wfLoadExtension( 'LinkedWiki' )... you can use composer and yarn at the root of wiki to install/update all dependencies of extensions and skins of Mediawiki...

In practice with Mediawiki, if an user installed a new extension without checking dependecies with composer and yarn, bugs can appear and alert the user to do these operations.
So if you use this extension without seeing a problem... you don"t need of these dependencies.

However for LinkedWiki, I advise to install all dependencies with at the root of the extension
composer install --no-dev (minimum)
yarn --production=true (to use special page and figures of sgvizler2)

I will update the doc.

Thanks

Karima claimed this task.Jul 23 2018, 1:10 PM

Remarks : for the moment, the installation is too complex (with endpoints in the file extension). Another solution need to be imagined.