1
0

scikit_image.rb 831 B

1234567891011121314151617181920212223242526272829
  1. module Docs
  2. class ScikitImage < UrlScraper
  3. self.name = 'scikit-image'
  4. self.slug = 'scikit_image'
  5. self.type = 'sphinx'
  6. self.release = '0.18.1'
  7. self.base_url = 'https://scikit-image.org/docs/0.18.x/'
  8. self.links = {
  9. home: 'https://scikit-image.org/',
  10. code: 'https://github.com/scikit-image/scikit-image'
  11. }
  12. html_filters.push 'scikit_image/entries', 'sphinx/clean_html'
  13. options[:container] = '.span9'
  14. options[:skip] = %w(api_changes.html)
  15. options[:only_patterns] = [/\Aapi/, /\Auser_guide/]
  16. options[:attribution] = <<-HTML
  17. &copy; 2019 the scikit-image team<br>
  18. Licensed under the BSD 3-clause License.
  19. HTML
  20. def get_latest_version(opts)
  21. tags = get_github_tags('scikit-image', 'scikit-image', opts)
  22. tags[0]['name'][1..-1]
  23. end
  24. end
  25. end