The documentation is generated by a Coffee-Script [program] (https://github.com/nickperkinslondon/coffee-mug/blob/master/generate_docs.coffee) using Coffee-Mug. The examples on the page are extracted directly from the unit-tests, so they are guaranteed to work exactly as advertised.
nickperkinslondon/coffee-mug
a coffeescript html generator, inspired by coffeekup, but without any magic
CoffeeScript