This is the DNSimple API documentation built with nanoc.
Ruby 2 is required to build the site, all the dependencies are managed using Bundler.
$ git clone https://github.com/aetrion/developer.dnsimple.com.git dnsimple-developer
$ cd dnsimple-developer
$ bundle
For a list of nanoc
commands type
$ nanoc --help
nanoc
ships with an autocompiler that automatically compiles changed files on every HTTP request.
$ nanoc aco
Running on http://0.0.0.0:3000/
[2012-09-26 15:07:52] INFO WEBrick 1.3.1
[2012-09-26 15:07:52] INFO ruby 1.9.2 (2012-04-20) [x86_64-darwin12.1.0]
[2012-09-26 15:07:52] INFO WEBrick::HTTPServer#start: pid=23121 port=3000
Each commit to master is deployed automatically via Travis.
To publish the site manually you will need Java (as the static deployer is written in Scala).
Add a .env
file with following variables, replacing ACCESS_ID
and ACCESS_KEY
with the real values.
S3_ID=ACCESS_ID
S3_SECRET=ACCESS_KEY
Finally, run:
$ rake publish