pygame.rb 544 B

123456789101112131415161718192021
  1. module Docs
  2. class Pygame < UrlScraper
  3. self.type = 'simple'
  4. self.release = '1.9.4'
  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/clean_html', 'pygame/entries'
  12. options[:only_patterns] = [/ref\//]
  13. options[:attribution] = <<-HTML
  14. &copy; Pygame Developpers.<br>
  15. Licensed under the GNU LGPL License version 2.1.
  16. HTML
  17. end
  18. end