Sophie

Sophie

distrib > Mageia > 3 > i586 > media > core-updates > by-pkgid > d69f11251b134defcbed31ed9035d28c > files > 39

mediawiki-1.23.3-1.mga3.noarch.rpm

MEDIAWIKI_LOAD_URL ?= http://localhost/w/load.php

kss: nodecheck
# FIXME: Use more up-to-date Ruby version

# Generates CSS of mediawiki.ui and mediawiki.ui.button using ResourceLoader, then applies it to the
# KSS style guide
	$(eval KSS_RL_TMP := $(shell mktemp /tmp/tmp.XXXXXXXXXX))
	@curl -sG "${MEDIAWIKI_LOAD_URL}?modules=mediawiki.ui|mediawiki.ui.button&only=styles" > $(KSS_RL_TMP)
	@node_modules/.bin/kss-node ../../resources/src/mediawiki.ui static/ --css $(KSS_RL_TMP) -t styleguide-template
	@rm $(KSS_RL_TMP)

kssopen: kss
	@echo Opening the generated style guide...
	@command -v xdg-open >/dev/null 2>&1 || { open ${PWD}/static/index.html; exit 0; }
	@xdg-open ${PWD}/static/index.html

nodecheck:
	@scripts/nodecheck.sh