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.
36 lines
766 B
36 lines
766 B
9 years ago
|
module Docs
|
||
|
class Perl < FileScraper
|
||
|
self.name = 'Perl'
|
||
|
self.type = 'perl'
|
||
|
self.release = '5.22.0'
|
||
|
self.dir = ''
|
||
|
self.base_url = 'http://perldoc.perl.org/'
|
||
|
self.root_path = 'index.html'
|
||
|
self.links = {
|
||
|
home: 'https://www.perl.org/'
|
||
|
}
|
||
|
|
||
|
html_filters.push 'perl/entries', 'perl/clean_html'
|
||
|
|
||
|
options[:skip] = %w(
|
||
|
preferences.html
|
||
|
perlartistic.html
|
||
|
perlgpl.html
|
||
|
perlhist.html
|
||
|
perltodo.html
|
||
|
perlunifaq.html
|
||
|
)
|
||
|
|
||
|
options[:skip_patterns] = [
|
||
|
/\.pdf/,
|
||
|
/delta\.html/,
|
||
|
/\Aperlfaq/
|
||
|
]
|
||
|
|
||
|
options[:attribution] = <<-HTML
|
||
|
© 2010–2015 <br>
|
||
|
Dual Licensed under the GNU General Public License version 1+ or the Artistic License.
|
||
|
HTML
|
||
|
end
|
||
|
end
|