/sinon-docs

The sinonjs.org website

Primary LanguageJavaScriptBSD 2-Clause "Simplified" LicenseBSD-2-Clause

sinon-docs

The http://sinonjs.org website, implemented as a generated static site using Stasis with frontend optimization using Optimus.

Usage

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

Where are things?

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.

Running tests

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

License

Copyright © 2014 Christian Johansen

BSD 2 Clause license