GithubHelp home page GithubHelp logo

alexxnica / mediawiki-extensions-wikidata Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 30.33 MB

Github mirror of MediaWiki extension Wikidata - our actual code is hosted with Gerrit (please see https://www.mediawiki.org/wiki/Developer_access for contributing

License: Other

JavaScript 13.05% PHP 82.49% Lua 0.81% CSS 0.86% HTML 0.01% Shell 0.17% ApacheConf 0.01% Ruby 1.23% Web Ontology Language 0.20% PLpgSQL 0.02% Gherkin 1.17%

mediawiki-extensions-wikidata's Introduction

#Wikidata Build

Wikidata is using a build with Wikibase and its dependencies packaged into one git repo.

If you update the master branch of the Wikidata build repository it will be overwritten daily. To change things please instead make changes to the wikidata/build-resources repository which is used as one of the resources for automated Wikidata builds.

Installation

  1. Clone the git repo into the mediawiki extensions directory
  2. Add the following line to your LocalSettings.php. This entry point in turn loads all other entry points.
To enable Repo add the following
$wgEnableWikibaseRepo = true;
$wgEnableWikibaseClient = false;
$wmgUseWikibaseRepo = true;
$wmgUseWikibaseClient = false;
require_once __DIR__ . "/extensions/Wikidata/Wikidata.php";
require_once __DIR__ . "/extensions/Wikidata/extensions/Wikibase/repo/ExampleSettings.php";
To enable Client add the following
$wgEnableWikibaseRepo = false;
$wgEnableWikibaseClient = true;
$wmgUseWikibaseRepo = false;
$wmgUseWikibaseClient = true;
require_once __DIR__ . "/extensions/Wikidata/Wikidata.php";

Configuration

Wikibase itself needs to be configured, with appropriate settings. See the below links:

Using this repo provides extra options to allow you to choose to deploy the Repo and/or Client.

// Load the Repo Extension (default false)
$wmgUseWikibaseRepo = true;
// Load the Client Extension (default false)
$wmgUseWikibaseClient = true;

Maintenance scripts

The Maintenance scripts help within this repo will not work if you do not have the environment variable MW_INSTALL_PATH defined.

If you do not and can not define this variable please use the runScript.php maintenance script within mediawiki core (see comments in that file for instructions).

Manually update a build

Manually updating a Wikidata build requires composer to be installed on the system.

The Wikidata build uses grunt (node.js) to provide some convenience functions. To use this, do:

npm install

Then to make a build, run:

grunt install

To clean the install (remove composer.lock, /vendor and /extensions):

grunt uninstall

To make a deployment build, using appropriate branchName argument:

grunt branch --branchName="wmf/1.25wmf1"

For deployment builds, this sets the autoloader-suffix config option in the composer.json to be based on the branch name, which makes the composer autoloader code more stable when deployed and synced to multiple servers.

The sharedCacheKeyPrefix setting is also set to be based on the branch version, and can be manually changed when doing backports to a deployment branch, as needed for invalidating memcached entries.

To update a single component:

composer update --prefer-dist -o --no-dev wikibase/wikibase

Updating this README

This README is located in the wikidata/build-resources repository. Any changes made to the README in the Wikidata build repository will be overwritten daily.

mediawiki-extensions-wikidata's People

Contributors

aaronschulz avatar addshore avatar adrianheine avatar danwede avatar ebraminio avatar filbertkm avatar janzerebecki avatar jeroendedauw avatar krinkle avatar mariushoch avatar matmarex avatar mlazowik avatar paladox avatar raymondde avatar reedy avatar shirayuki avatar tobijat avatar translatewiki avatar wikidatabuilder avatar zeljkofilipin avatar

Watchers

 avatar

Forkers

l00mi

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.