Edit index.html
as you would any HTML.
You can edit Stylus source files in css/
- they get compiled to CSS by the make tool.
JavaScripts are in js/
- they get combined using the make tool.
The list of JavaScript files are in the Makefile
.
Raw images are all in .png and are stored in images/
. They get
auto-optimized under assets/
using the make tool.
For retina images, save them as images/[email protected]
(for jpegs) or
images/[email protected]
(for PNGs). They will get auto-scaled down using the make tool.
To use retina images in <img>
, use <img data-src="hello.jpg">
. The @2x
suffix will be added automatically on retina systems.
The make tool builds optimized assets (in assets/
) from source files (in
images/
, css/
and js/
). GNU Make already comes pre-installed in most
systems, but you need a few more things.
In OSX:
Then:
make start
in a TerminalThere's a make script (Makefile
) that takes care of processing your CSS, JS and images.
Just type make
and they will be generated. In general:
images/
, css/
and js/
make
in the Terminalassets/
.Put images in images/
. All PNG files, please.
[email protected]
will be converted to [email protected]
and rescaled to XXX.jpg
too[email protected]
will be optimized to [email protected]
and rescaled to XXX.png
tooXXX.jpg.png
will be converted to XXX.jpg
with the optimal settingsXXX.png
will optimized to XXX.png
Put JS in js/
. Edit the Makefile to change the order of how they're baked into script.js.
CSS is powered by Stylus + Nib. The .styl
files will automatically be converted to .css
.
See http://learnboost.github.com/stylus for more info.