1
0

jasmine.rb 649 B

12345678910111213141516171819202122232425
  1. module Docs
  2. class Jasmine < UrlScraper
  3. self.type = 'jasmine'
  4. self.release = '4.0.0'
  5. self.base_url = 'https://jasmine.github.io/api/4.0/'
  6. self.root_path = 'index.html'
  7. self.links = {
  8. home: 'https://jasmine.github.io/',
  9. code: 'https://github.com/jasmine/jasmine'
  10. }
  11. html_filters.push 'jasmine/clean_html', 'jasmine/entries'
  12. options[:container] = '.main-content'
  13. options[:attribution] = <<-HTML
  14. &copy; 2008&ndash;2019 Pivotal Labs<br>
  15. Licensed under the MIT License.
  16. HTML
  17. def get_latest_version(opts)
  18. get_latest_github_release('jasmine', 'jasmine', opts)
  19. end
  20. end
  21. end