Thibaut CouroubleFinish Babel scraper7731a598 years agoHistory
26 lines · 621 B · Ruby
RawDownload
module Docs  class Babel < UrlScraper    self.type = 'simple'    self.base_url = 'http://babeljs.io/docs/'    self.release = '6.26.1'    self.initial_paths = %w(core-packages/)    self.links = {      home: 'https://babeljs.io/',      code: 'https://github.com/babel/babel'    }     html_filters.push 'babel/clean_html', 'babel/entries'     options[:trailing_slash] = true    options[:skip] = %w{setup/ editors/ community/videos/}     options[:attribution] = <<-HTML      &copy; 2018 Sebastian McKenzie<br>      Licensed under the MIT License.    HTML     stub '' do      '<div></div>'    end  endend

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t