You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
devdocs/lib/docs/scrapers/redux.rb

25 lines
566 B

module Docs
class Redux < UrlScraper
self.type = 'redux'
self.release = '3.6.0'
self.base_url = 'http://redux.js.org/docs/'
self.links = {
home: 'http://redux.js.org/',
code: 'https://github.com/reactjs/redux/'
}
html_filters.push 'redux/entries', 'redux/clean_html'
options[:skip] = %w(Feedback.html)
options[:attribution] = <<-HTML
&copy; 2015&ndash;2016 Dan Abramov<br>
Licensed under the MIT License.
HTML
stub '' do
request_one('http://redux.js.org/index.html').body
end
end
end