11

I am trying to download a local copy of the API documentation for D3, so that I can more easily search it. Is there a way to do this?

If I hit fork, it just downloads the actual project files.

Peter Mortensen
  • 30,738
  • 21
  • 105
  • 131
mheavers
  • 29,530
  • 58
  • 194
  • 315

1 Answers1

23
git clone https://github.com/mbostock/d3.wiki.git
Matthew Flaschen
  • 278,309
  • 50
  • 514
  • 539
  • ah, thanks. Where does this end up being saved? I followed these instructions here: http://gitref.org/creating/ – mheavers Mar 26 '12 at 20:36
  • In a `d3.wiki` subdirectory of the current directory. – Matthew Flaschen Mar 26 '12 at 20:44
  • sorry - this is my first time using git and I suppose I don't get the premise - I can see my repositories online, and I can access them using the terminal, although that is extremely confusing to me - but is there some sort of publicly accessible url for this? If I use https://github.com/heaversm/d3.wiki I get a 404 – mheavers Mar 26 '12 at 20:47
  • @mheavers, I don't follow. If you want a URL, isn't it just https://github.com/mbostock/d3/wiki/API-Reference ? You asked for a local copy, which is what the `clone` command will give you. – Matthew Flaschen Mar 26 '12 at 20:51
  • Yes but where can I find that - I can't find it on my hard drive - is it just that it's getting cloned to some hidden directory? – mheavers Mar 26 '12 at 20:54
  • It's in the directory where you ran that command. After running it, in the same directory, do `dir`. – Matthew Flaschen Mar 26 '12 at 21:11
  • ah - sorry - it was copied into the .ssh directory, which is hidden from mac finder. Thanks for the help. – mheavers Mar 26 '12 at 22:19