1
0

deno.rb 593 B

1234567891011121314151617181920212223
  1. module Docs
  2. class Deno < UrlScraper
  3. self.name = 'Deno'
  4. self.type = 'simple'
  5. self.release = '1.27.0'
  6. self.base_url = 'https://doc.deno.land/deno/stable/'
  7. self.links = {
  8. home: 'https://deno.land/',
  9. code: 'https://github.com/denoland/deno'
  10. }
  11. html_filters.push 'deno/entries', 'deno/clean_html'
  12. # https://github.com/denoland/manual/blob/main/LICENSE
  13. options[:attribution] = <<-HTML
  14. &copy; 2018–2022 the Deno authors
  15. HTML
  16. def get_latest_version(opts)
  17. get_latest_github_release('denoland', 'deno', opts)
  18. end
  19. end
  20. end