1
0

reactivex.rb 693 B

123456789101112131415161718192021222324252627
  1. module Docs
  2. class Reactivex < UrlScraper
  3. self.name = 'ReactiveX'
  4. self.type = 'reactivex'
  5. self.base_url = 'http://reactivex.io/'
  6. self.root_path = 'intro.html'
  7. self.links = {
  8. home: 'http://reactivex.io/'
  9. }
  10. html_filters.push 'reactivex/entries', 'reactivex/clean_html'
  11. options[:download_images] = false
  12. options[:only_patterns] = [/documentation\//]
  13. options[:skip_patterns] = [/ko\//]
  14. options[:attribution] = <<-HTML
  15. &copy; ReactiveX contributors<br>
  16. Licensed under the Apache License 2.0.
  17. HTML
  18. def get_latest_version(opts)
  19. get_latest_github_commit_date('ReactiveX', 'reactivex.github.io', opts)
  20. end
  21. end
  22. end