Skip to content

Instantly share code, notes, and snippets.

View julien-leclercq's full-sized avatar

julien-leclercq

  • Montpellier, France
  • 08:54 (UTC +02:00)
View GitHub Profile
@seven1m
seven1m / download_hex_docs.sh
Created November 15, 2015 02:37
Download the docs for a project from hexdocs.pm
#!/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