git clone --depth=1 https://gerrit.wikimedia.org/r/mediawiki/core.git mediawiki
cd mediawiki
- create the .env file with:
MW_SCRIPT_PATH=/w
MW_SERVER=http://localhost:8080
MW_DOCKER_PORT=8080
MEDIAWIKI_USER=Admin
MEDIAWIKI_PASSWORD=dockerpass
XDEBUG_CONFIG=
XDEBUG_ENABLE=true
XHPROF_ENABLE=true
echo "MW_DOCKER_UID=$(id -u) MW_DOCKER_GID=$(id -g)" >> .env
docker-compose up -d
docker-compose exec mediawiki composer update
docker-compose exec mediawiki /bin/bash /docker/install.sh
- open "localhost:8080"
cd skins/
git clone https://github.com/gitbot-eth/zodiac-wikimedia-skin.git zodiac
- open LocalSettings.php (at the root of the mediawiki directory)
- add
wfLoadSkin( 'zodiac' );
to the LocalSettings.php file, above the$wgDefaultSkin
variable. - set
$wgDefaultSkin = "zodiac";
- save the file
- refresh "localhost:8080"
- when developing, open the zodiac project directly (for instance via:
cd skins/zodiac
thencode .
)
In the skin/zodiac folder run:
npm install
- make your changes
npm dev
(ornpm run watch
)