The http://sinonjs.org website, implemented as a generated static site using Stasis with frontend optimization using Optimus.
Pygments themes are fetched as a git submodule:
git submodule update --init
To run the site, make sure you have Java 1.7 or later. Then install Leiningen. Finally, run the site with:
lein ring server-headless
Or generate the static files for deployment with:
lein build-site
The main layout is defined in hiccup
syntax in src/sinon_docs/pages.clj
. The frontpage is a partial that lives in
resources/partials/index.html
.
There are some tests. Run them with midje:
lein midje
If you're going to add or change something, you might want the tests to keep running on every save:
lein midje :autotest
Copyright © 2014 Christian Johansen
BSD 2 Clause license