wiki.techinc.nl/docs/kss
S Page 70be7d9441 Specify max compatible kss version
core/docs/kss/styleguide-template/index.html uses {{whenDepth}} and
other functions deprecated in kss 2.0, so set an upper version bound in
package.json

Bug: T91725
Change-Id: I55669f3cc1c34911f717fe5fce3ea6ed00510177
2015-03-05 17:49:07 -08:00
..
scripts LSG: Allow the style guide to build without npm present at runtime 2014-08-06 18:29:53 +00:00
styleguide-template Remove less.js 2014-11-19 18:42:52 +00:00
Makefile LSG: Fix Makefile 2015-01-23 11:27:15 -08:00
package.json Specify max compatible kss version 2015-03-05 17:49:07 -08:00
README.txt LSG: Break module list into text file for readability 2015-01-19 23:37:48 +00:00
styleGuideModules.txt LSG: Fix Makefile 2015-01-23 11:27:15 -08:00

The Makefile, package.json, scripts, styleguide-template, and
mediawiki.ui/styleguide.md files and directories here and in
resources/src/mediawiki.ui/ support the automatic generation
of CSS documentation from the source LESS files using kss for
node.js, https://github.com/kneath/kss

To build and open in your web browser, run:

MEDIAWIKI_LOAD_URL=mediawiki_hostname/w/load.php make kssopen

For example,

MEDIAWIKI_LOAD_URL=1.2.3.4/w/load.php make kssopen

If MediaWiki is running on localhost, you can omit MEDIAWIKI_LOAD_URL.

To rebuild without opening the web browser, run:

MEDIAWIKI_LOAD_URL=mediawiki_hostname/w/load.php make

When modifying styleGuideModules.txt, keep the list in strict alphabetical order (with no extra formatting), so CSS loads in the same order as ResourceLoader's addModuleStyles does; this can affect rendering.