Created
November 15, 2015 02:37
-
-
Save seven1m/c4c9665ee4db114915ec to your computer and use it in GitHub Desktop.
Download the docs for a project from hexdocs.pm
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
project=$1 | |
wget --mirror -k -np http://hexdocs.pm/$project | |
ruby -e "puts ARGF.read.scan(/[A-Z]\\w*\\.[\\w\\.]+/).uniq.map { |l| 'http://hexdocs.pm/$project/' + l + '.html' }" hexdocs.pm/$project/dist/sidebar_items.js | wget --mirror -k -i - | |
wget --mirror -k http://hexdocs.pm/$project/extra-api-reference.html |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
really useful thanks !