flow.rb 647 B

1234567891011121314151617181920212223242526
  1. module Docs
  2. class Flow < UrlScraper
  3. self.type = 'simple'
  4. self.release = '0.169.0'
  5. self.base_url = 'https://flow.org/en/docs/'
  6. self.links = {
  7. home: 'https://flow.org/',
  8. code: 'https://github.com/facebook/flow'
  9. }
  10. html_filters.push 'flow/entries', 'flow/clean_html', 'title'
  11. options[:trailing_slash] = false
  12. options[:root_title] = 'Flow'
  13. options[:skip] = %w(libs install)
  14. options[:attribution] = <<-HTML
  15. &copy; 2013&ndash;present Facebook Inc.<br>
  16. Licensed under the MIT License.
  17. HTML
  18. def get_latest_version(opts)
  19. get_npm_version('flow-bin', opts)
  20. end
  21. end
  22. end