Thursday, September 27, 2012

Offline reference for javascript, jquery, jquery-ui and d3.js

For anyone who'se looking to do some javascript/jquery/d3 hacking on a plane without internet, here's the API references I've been able to dig up.


The official spec at is fine as a reference and the non-draft standards have a PDF option to download the spec. See generally, and for HTML/CSS/SVG specifically the most recent ones as of this post seem to be:


The best doc I could find is in CHM (windows help file format). You can read this file with xchm (e.g., sudo aptitude install xchm). The file itself is at:

Jquery and Jquery-UI

There's a single CHM file that includes docs for both jquery and jquery-ui at There's a PDF version of just JQuery at


Getting D3 docs available offline requires a bit more work. Following roughly this guide, here are the steps:
  1. sudo aptitude install libxml2-dev libxslt-dev ruby1.8
  2. gem install gollum
  3. git clone
  4. cd ; gollum
  5. Navigate your browser to http://localhost:4567/ or whatever port gollum starts up on (it prints it out when it starts up).