i3.rb 684 B

12345678910111213141516171819202122232425262728
  1. module Docs
  2. class I3 < UrlScraper
  3. self.name = 'i3'
  4. self.type = 'simple'
  5. self.slug = 'i3'
  6. self.release = '4.20.1'
  7. self.base_url = 'https://i3wm.org/docs/userguide.html'
  8. self.links = {
  9. home: 'https://i3wm.org/',
  10. code: 'https://github.com/i3/i3'
  11. }
  12. html_filters.push 'i3/entries', 'title'
  13. options[:container] = 'main'
  14. options[:skip_links] = true
  15. options[:attribution] = <<-HTML
  16. &copy; 2009, Michael Stapelberg and contributors
  17. HTML
  18. def get_latest_version(opts)
  19. tags = get_github_tags('i3', 'i3', opts)
  20. tag = tags.find {|tag| tag['name'].start_with?('4.')}
  21. tag['name']
  22. end
  23. end
  24. end