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.
|
|
|
module Docs
|
|
|
|
class Perl < FileScraper
|
|
|
|
self.name = 'Perl'
|
|
|
|
self.type = 'perl'
|
|
|
|
self.dir = '/Users/Thibaut/DevDocs/Docs/Perl'
|
|
|
|
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 )
|
|
|
|
|
|
|
|
options[:skip_patterns] = [/\.pdf/, /delta\.html/]
|
|
|
|
|
|
|
|
options[:attribution] = <<-HTML
|
|
|
|
© 1993–2016 Larry Wall and others<br>
|
|
|
|
Licensed under the GNU General Public License version 1 or later, or the Artistic License.<br>
|
|
|
|
The Perl logo is a trademark of the Perl Foundation.
|
|
|
|
HTML
|
|
|
|
|
|
|
|
version '5.22' do
|
|
|
|
self.release = '5.22.0'
|
|
|
|
self.base_url = "http://perldoc.perl.org/#{self.release}/"
|
|
|
|
end
|
|
|
|
|
|
|
|
version '5.20' do
|
|
|
|
self.release = '5.20.2'
|
|
|
|
self.base_url = "http://perldoc.perl.org/#{self.release}/"
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|