pygame.rb 668 B

12345678910111213141516171819202122232425
  1. module Docs
  2. class Pygame < UrlScraper
  3. self.type = 'pygame'
  4. self.release = '2.0.0'
  5. self.base_url = 'https://www.pygame.org/docs/'
  6. self.root_path = 'py-modindex.html'
  7. self.links = {
  8. home: 'https://www.pygame.org/',
  9. code: 'https://github.com/pygame/pygame'
  10. }
  11. html_filters.push 'pygame/pre_clean_html', 'pygame/entries', 'pygame/clean_html'
  12. options[:only_patterns] = [/ref\//]
  13. options[:attribution] = <<-HTML
  14. &copy; Pygame Developers.<br>
  15. Licensed under the GNU LGPL License version 2.1.
  16. HTML
  17. def get_latest_version(opts)
  18. get_latest_github_release('pygame', 'pygame', opts)
  19. end
  20. end
  21. end