relay.rb 638 B

12345678910111213141516171819202122
  1. module Docs
  2. class Relay < UrlScraper
  3. self.type = 'simple'
  4. self.release = '1.4.1'
  5. self.base_url = 'https://facebook.github.io/relay/docs/'
  6. self.root_path = 'getting-started.html'
  7. self.links = {
  8. home: 'https://facebook.github.io/relay/',
  9. code: 'https://github.com/facebook/relay'
  10. }
  11. html_filters.push 'relay/entries', 'relay/clean_html'
  12. options[:container] = '.documentationContent'
  13. options[:skip] = %w(videos.html graphql-further-reading.html)
  14. options[:attribution] = <<-HTML
  15. &copy; 2013&ndash;present Facebook Inc.<br>
  16. Licensed under the BSD License.
  17. HTML
  18. end
  19. end