-
-
Save sleepiecappy/b689147669cd2fe1a29eedc7a80c5b6b to your computer and use it in GitHub Desktop.
Download the docs for a project from hexdocs.pm
This file contains hidden or 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