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

23 lines
638 B

module Docs
class Relay < UrlScraper
self.type = 'simple'
self.release = '1.4.1'
self.base_url = 'https://facebook.github.io/relay/docs/'
self.root_path = 'getting-started.html'
self.links = {
home: 'https://facebook.github.io/relay/',
code: 'https://github.com/facebook/relay'
}
html_filters.push 'relay/entries', 'relay/clean_html'
options[:container] = '.documentationContent'
options[:skip] = %w(videos.html graphql-further-reading.html)
options[:attribution] = <<-HTML
&copy; 2013&ndash;present Facebook Inc.<br>
Licensed under the BSD License.
HTML
end
end