#!/usr/bin/env bash
PREFIX="http://127.0.0.1:8080/w"
BASE_PATH="`dirname $0`/.."

wget "$PREFIX/load.php?debug=true&lang=en&modules=skins.minerva.base.reset|skins.minerva.content.styles|ext.cite.style|mediawiki.page.gallery.styles|mobile.app.pagestyles.android&only=styles&skin=vector&version=&*" -O "$BASE_PATH/app/src/main/assets/styles.css"
wget "$PREFIX/load.php?debug=true&lang=en&modules=skins.minerva.base.reset|skins.minerva.content.styles|ext.cite.style|mediawiki.page.gallery.styles|mobile.app.preview.android|mobile.app.preview&only=styles&skin=vector&version=&*" -O "$BASE_PATH/app/src/main/assets/preview.css"
wget "$PREFIX/load.php?debug=true&lang=en&modules=mobile.app.pagestyles.android.night&only=styles&skin=vector&version=&*" -O "$BASE_PATH/app/src/main/assets/dark.css"

#!/usr/bin/env bash
PREFIX="https://www.mediawiki.org/w"
BASE_PATH="`dirname $0`/.."

wget "$PREFIX/load.php?debug=true&lang=en&modules=skins.minerva.base.reset|skins.minerva.content.styles|ext.cite.style|mediawiki.page.gallery.styles|mobile.app.pagestyles.android&only=styles&skin=vector&version=&*" -O "$BASE_PATH/app/src/main/assets/styles.css"
wget "$PREFIX/load.php?debug=true&lang=en&modules=skins.minerva.base.reset|skins.minerva.content.styles|ext.cite.style|mediawiki.page.gallery.styles|mobile.app.preview.android|mobile.app.preview&only=styles&skin=vector&version=&*" -O "$BASE_PATH/app/src/main/assets/preview.css"
wget "$PREFIX/load.php?debug=true&lang=en&modules=mobile.app.pagestyles.android.night&only=styles&skin=vector&version=&*" -O "$BASE_PATH/app/src/main/assets/dark.css"

Load CSS stylesheets from a Wikimedia production environment
Load CSS stylesheets from a Wikimedia production environment

As of I177b3a355dcd2488da9af668273f7e65b6afa86b, certain Wikipedia-
specific style hacks are only applied in Wikimedia production
environments (via the config variable $wgMinervaApplyKnownTemplateHacks).
See T94102.

We can hit a production wiki for our stylesheets and still get the
styles.  This will also have the (perhaps beneficial) effect that we will
only get the code that has been deployed to production (i.e., not styles
merged to MobileFrontend master but subject to change before release).

THEREFORE, this changes make-css-assets.bash to get stylesheets from
mediawiki.org, which is among the "Group 0" wikis that first receive
weekly release branch code on Tuesdays (11 a.m. Pacific / 2 p.m Eastern).

Change-Id: I12a38fecfe21495681b1a0b1d2bf2c521396f601
