| 123456789101112131415161718192021222324252627282930 |
- 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
- © 2018 Sebastian McKenzie<br>
- Licensed under the MIT License.
- HTML
- stub '' do
- '<div></div>'
- end
- def get_latest_version(opts)
- get_latest_github_release('babel', 'babel', opts)
- end
- end
- end
|