jdlrobson / mediawiki-2018-skin

MIT License
0 stars 0 forks source link

2018 MediaWiki skin

2018 is a proof of concept MediaWiki skin designed with the following goals:

We intend to do that by:

Features

Design overview Design breakdown Preview feature Embedded charts Tools menu Sortable page history

Installation

Prerequisites

To deploy this skin either for development or production purposes (not recommended) you will need:

  1. A running instance of MediaWiki 1.30.0 or higher
  2. npm
  3. Composer

Fetching the skin

From your MediaWiki root, run the following commands:

git clone https://gitlab.com/morags/mediawiki-2018-skin.git skins && cd skins/2018
npm install

Enabling the skin in MediaWiki

Add the following line to LocalSettings.php, which is located in your MediaWiki root:

require_once "$IP/skins/2018/2018.php";

You can then enable the skin per user through the MediaWiki GUI (Preferences > Appearance > Skin), or set it as default for all users by adding the following to LocalSettings.php:

$wgDefaultSkin = "2018";

Testing

Frontend tests are covered by npm and Grunt:

npm test

Backend tests are covered by Composer:

composer test

License

The skin is released under the MIT license. For more details see the LICENSE file.