| 12345678910111213141516171819202122232425262728 |
- 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
- © 2013–present Facebook Inc.<br>
- Licensed under the BSD License.
- HTML
- def get_latest_version(options, &block)
- fetch_doc('http://facebook.github.io/relay/en/', options) do |doc|
- block.call doc.at_css('header > a > h3').content[1..-1]
- end
- end
- end
- end
|