-#!/bin/bash
-MW_INSTALL_PATH ?= ../..
+kss: nodecheck
+# FIXME: Use more up-to-date Ruby version
+ @node_modules/.bin/kss-node mediawiki.ui mediawiki.ui/docs -l mediawiki.ui/vector.less -t styleguide-template
+ @echo Opening the generated style guide...
+ @command -v xdg-open >/dev/null 2>&1 || { open ${PWD}/mediawiki.ui/docs/index.html; exit 1; }
+ @xdg-open ${PWD}/mediawiki.ui/docs/index.html
nodecheck:
@scripts/nodecheck.sh
-
-kss: nodecheck
- # FIXME: Use more up to date Ruby version
- kss-node mediawiki.ui mediawiki.ui/docs -l mediawiki.ui/vector.less -t styleguide-template
- # Open the resulting style guide (try using xdg-open or open):
- command -v xdg-open >/dev/null 2>&1 || { open ${PWD}/mediawiki.ui/docs/index.html; exit 1; }
- xdg-open ${PWD}/mediawiki.ui/docs/index.html
--- /dev/null
+The Makefile, package.json, scripts, styleguide-template, and
+mediawiki.ui/styleguide.md files and directories in here support the automatic
+generation of CSS documentation from the source LESS files using kss for
+node.js, https://github.com/kneath/kss