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/flow.rb

23 lines
562 B

module Docs
class Flow < UrlScraper
self.type = 'flow'
self.release = '0.79.1'
self.base_url = 'https://flow.org/en/docs/'
self.links = {
home: 'https://flow.org/',
code: 'https://github.com/facebook/flow'
}
html_filters.push 'flow/entries', 'flow/clean_html', 'title'
options[:trailing_slash] = false
options[:root_title] = 'Flow'
options[:skip] = %w(libs install)
options[:attribution] = <<-HTML
&copy; 2013&ndash;present Facebook Inc.<br>
Licensed under the MIT License.
HTML
end
end