mirror of https://github.com/freeCodeCamp/devdocs
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
27 lines
572 B
27 lines
572 B
7 years ago
|
module Docs
|
||
|
class Pygame < UrlScraper
|
||
|
|
||
|
self.type = 'simple'
|
||
|
|
||
|
self.release = 'v1.9.4.dev0'
|
||
|
|
||
|
self.initial_paths = ['py-modindex.html']
|
||
|
self.base_url = 'https://www.pygame.org/docs/'
|
||
|
self.root_path = 'py-modindex.html'
|
||
|
self.initial_paths = []
|
||
|
|
||
|
self.links = {
|
||
|
home: 'https://www.pygame.org/',
|
||
|
code: 'https://github.com/pygame/pygame'
|
||
|
}
|
||
|
|
||
|
html_filters.push 'pygame/clean_html', 'pygame/entries'
|
||
|
|
||
|
options[:only_patterns] = [/ref\//]
|
||
|
|
||
|
options[:attribution] = <<-HTML
|
||
|
© Pygame Developpers.
|
||
|
HTML
|
||
|
end
|
||
|
end
|