summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEvgeny Fadeev <evgeny.fadeev@gmail.com>2011-11-28 11:42:08 -0500
committerEvgeny Fadeev <evgeny.fadeev@gmail.com>2011-11-28 11:42:08 -0500
commit0a13ee30ca1619c6fe584157c9ebf5dfed8c2fb7 (patch)
tree4fb87fc4a3e45239d43e6d05b3a82e6b8b7ccc69
parent7818b277c5f4c95c86f945f5bad1a4f52c4f7aca (diff)
downloadaskbot-0a13ee30ca1619c6fe584157c9ebf5dfed8c2fb7.tar.gz
askbot-0a13ee30ca1619c6fe584157c9ebf5dfed8c2fb7.tar.bz2
askbot-0a13ee30ca1619c6fe584157c9ebf5dfed8c2fb7.zip
added documentation on usage of lesscss and customizing the style.less file
-rw-r--r--askbot/doc/source/customizing-skin-in-askbot.rst4
-rw-r--r--askbot/doc/source/customizing-style-css-file-in-askbot.rst28
2 files changed, 32 insertions, 0 deletions
diff --git a/askbot/doc/source/customizing-skin-in-askbot.rst b/askbot/doc/source/customizing-skin-in-askbot.rst
index 92680e52..09ea0dbb 100644
--- a/askbot/doc/source/customizing-skin-in-askbot.rst
+++ b/askbot/doc/source/customizing-skin-in-askbot.rst
@@ -117,6 +117,10 @@ then it is not very convinient to tweak the skin,
as the file path may be long and files may be writable only
by from the root account.
+**IMPORTANT:** Do not edit file style.css manually, instead edit the
+source style.less, written in the `lesscss <http://lesscss.org>`_ format.
+See also: :ref:`customizing-style-css-file-in-askbot`.
+
Create a custom skin in a new directory
---------------------------------------
This is technically possible, but not advisable
diff --git a/askbot/doc/source/customizing-style-css-file-in-askbot.rst b/askbot/doc/source/customizing-style-css-file-in-askbot.rst
new file mode 100644
index 00000000..2c2d0327
--- /dev/null
+++ b/askbot/doc/source/customizing-style-css-file-in-askbot.rst
@@ -0,0 +1,28 @@
+.. _customizing-style-css-file-in-askbot:
+
+====================================
+Customizing style.css file in Askbot
+====================================
+
+File style.css is produced by the `lesscss compiler <http://lesscss.org>`_ - ``lessc``.
+
+Please read documentation about the lesscss format.
+
+Compiling lesscss files
+=======================
+
+The following command will compile the lesscss source file,
+an option -x will produce compressed css file:
+
+ lessc file.lesscss -x > file.css
+
+Installing lesscss
+==================
+
+Make sure you have recent version of `node.js <http://nodejs.org>`_ - latest version preferred.
+More recent versions of node come with the tool called `npm <http://npmjs.org>`_,
+for earlier versions ``npm`` will need to be installed manually.
+
+To install lesscss, type:
+
+ sudo npm install less