How-to install the skin

From Libre Entreprise Mediawiki Skin

Contents

Get the project

Download the tgz file from the projet's page on the labs, or clone the git repository :

git clone git://git.labs.libre-entreprise.org/le-skin.git

If you downloaded the tarball file, you will have to open of the archive with the clasic command:

tar xzf le-skin.tgz

Create the skin

Then you must create the default files with the following line:

cd le-skin
php script/generate-main-css.php 

Note that this step require the php5 and its imagemagic extension to be installed on your machine. With a debian machine, the commande aptitude install php5-cli php5-imagick should do the trick.

Copy the skin into the mediawiki installation

If the mediawiki installation you want to configure is on the same machine, you just have to copy the content of the src directory to the skins directory of your mediawiki installation. For example, if your mediawiki is installed into the /var/www/wiki directory, you should run the command:

cp -r le-skin/* /var/www/wiki/skins/

If your mediawiki installation is on another machine, you can copy the le-skin files on your serveur with a script provided by the project. First you need to create a file in the conf/ directory (you can use the included example.com file of the project as template). Name this file after the name of the serveur, and fill this it with following content:

ssh: username@serveur.example.com
wikipath: /var/www/wiki/

Replacing "username@serveur.example.com" and /var/www/wiki/ by your own values. Then use the deploy.sh script, with the name of the previous file as the first argument. For example if your file

sh script/deploy.sh serveur.example.com


Configure the wiki

Modify the LocalSettings.php file of your mediawiki installation to put the following line into it:

$wgDefaultSkin = 'le';

That’s it! Your mediawiki has the appareance of the Libre-entreprise websites. You can now configure it.