mirror of
https://github.com/freeCodeCamp/devdocs
synced 2024-11-16 19:48:10 +01:00
25 lines
668 B
Ruby
25 lines
668 B
Ruby
module Docs
|
|
class Pygame < UrlScraper
|
|
self.type = 'pygame'
|
|
self.release = '2.0.0'
|
|
self.base_url = 'https://www.pygame.org/docs/'
|
|
self.root_path = 'py-modindex.html'
|
|
self.links = {
|
|
home: 'https://www.pygame.org/',
|
|
code: 'https://github.com/pygame/pygame'
|
|
}
|
|
|
|
html_filters.push 'pygame/pre_clean_html', 'pygame/entries', 'pygame/clean_html'
|
|
|
|
options[:only_patterns] = [/ref\//]
|
|
|
|
options[:attribution] = <<-HTML
|
|
© Pygame Developers.<br>
|
|
Licensed under the GNU LGPL License version 2.1.
|
|
HTML
|
|
|
|
def get_latest_version(opts)
|
|
get_latest_github_release('pygame', 'pygame', opts)
|
|
end
|
|
end
|
|
end
|