Skip to content

Commit

Permalink
Update docs
Browse files Browse the repository at this point in the history
  • Loading branch information
malberts committed Feb 21, 2025
1 parent f2879b3 commit 5afa447
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 18 deletions.
10 changes: 5 additions & 5 deletions docs/installation-linux.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,17 +15,17 @@ operating systems as well:
to the `require` section:
``` json
"require": {
"mediawiki/chameleon-skin": "~3.0"
"mediawiki/chameleon-skin": "~5.0"
},
```
**Remark:** If you do not have a `composer.local.json` file, but a
`composer.local.json-sample`, rename the `-sample` file and add the
`"require"` section. It should then look like this:
``` json
{
"require": {
"mediawiki/chameleon-skin": "~3.0"
"mediawiki/chameleon-skin": "~5.0"
},
"extra": {
"merge-plugin": {
Expand All @@ -36,7 +36,7 @@ operating systems as well:
}
}
```
5. To actually install Chameleon run the command
```bash
COMPOSER=composer.local.json composer require --no-update mediawiki/chameleon-skin:~3.0
Expand All @@ -47,7 +47,7 @@ operating systems as well:
wfLoadSkin( 'chameleon' );
```
as the last line.
To set Chameleon as the default skin, find `$wgDefaultSkin` and amend it:
```php
$wgDefaultSkin='chameleon';
Expand Down
18 changes: 9 additions & 9 deletions docs/installation-windows.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Here is a step by step procedure for Windows:

1. You first need to install Composer. On Windows just [download the
installer][composer-installer] and run it.

2. Open a Windows Explorer window and navigate to the root folder of
your MediaWiki installation. That's the one with the `LocalSettings.php`
file in it.
Expand All @@ -13,18 +13,18 @@ Here is a step by step procedure for Windows:
endings (e.g. [Notepad++][] or [Kate][], but *not* the standard Notepad!)
and add the Chameleon skin to the `require` section:
```json
"require": {
"mediawiki/chameleon-skin": "~3.0"
"require": {
"mediawiki/chameleon-skin": "~5.0"
},
```

**Remark:** If you do not have a `composer.local.json` file, but a
`composer.local.json-sample`, rename the `-sample` file and add the
`"require"` section. It should then look like this:
```json
{
"require": {
"mediawiki/chameleon-skin": "~3.0"
"mediawiki/chameleon-skin": "~5.0"
},
"extra": {
"merge-plugin": {
Expand All @@ -41,10 +41,10 @@ Here is a step by step procedure for Windows:
4. Shift right-click in an empty space in the Windows Explorer window and
select *Open Command Prompt here* or *Open Powershell window here*. A
command line window will open.

5. On the command line run the command
`composer require "mediawiki/chameleon-skin:~3.0"`

6. If there were no errors, close the command line window.

7. Open `LocalSettings.php` in an editor capable to do UNIX style line
Expand All @@ -54,14 +54,14 @@ Here is a step by step procedure for Windows:
wfLoadSkin( 'chameleon' );
```
as the last line.

To set Chameleon as the default skin, find `$wgDefaultSkin` and amend it:
```php
$wgDefaultSkin='chameleon';
```

Save the file and close the editor.

8. __Done:__ Open your wiki in a browser and navigate to the _Special:Version_
page to verify that the skin is successfully installed. (If you have set
Chameleon as default skin it should also be obvious that the skin has
Expand Down
8 changes: 4 additions & 4 deletions docs/installation.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

### Requirements

- PHP 7.4.3 or later (tested up to PHP 8.1)
- MediaWiki 1.35 or later (tested up to MediaWiki 1.39)
- PHP 8.0.0 or later (tested up to PHP 8.3)
- MediaWiki 1.39 or later (tested up to MediaWiki 1.43)

### Installation

Expand All @@ -26,7 +26,7 @@ Here is the short version:
On a command line go to your MediaWiki installation directory and run these two commands

```
COMPOSER=composer.local.json composer require --no-update mediawiki/chameleon-skin:~4.0
COMPOSER=composer.local.json composer require --no-update mediawiki/chameleon-skin:~5.0
```
```
composer update mediawiki/chameleon-skin --no-dev -o
Expand Down Expand Up @@ -76,7 +76,7 @@ If you run into problems, try the

From your MediaWiki installation directory run `composer update "mediawiki/chameleon-skin" --no-dev -o`

If you want to upgrade from Chameleon 2.x to 3.x, first edit `composer.local.json`. Change `"mediawiki/chameleon-skin": "~2.0"` to `"mediawiki/chameleon-skin": "~3.0"`.
If you want to upgrade from Chameleon 4.x to 5.x, first edit `composer.local.json`. Change `"mediawiki/chameleon-skin": "~4.0"` to `"mediawiki/chameleon-skin": "~5.0"`.

### De-installation with Composer

Expand Down

0 comments on commit 5afa447

Please sign in to comment.