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.
devdocs/lib/docs/scrapers/apache_pig.rb

38 lines
948 B

module Docs
class ApachePig < UrlScraper
self.name = 'Apache Pig'
self.slug = 'apache_pig'
self.type = 'apache_pig'
self.links = {
home: 'https://pig.apache.org/'
}
html_filters.push 'apache_pig/clean_html', 'apache_pig/entries'
options[:container] = '#content'
options[:skip] = %w(pig-index.html)
options[:skip_patterns] = [/\Aapi/, /\Ajdiff/]
options[:attribution] = <<-HTML
&copy; 2007&ndash;2016 Apache Software Foundation<br>
Licensed under the Apache Software License version 2.0.
HTML
version '0.15' do
self.release = '0.15.0'
self.base_url = "https://pig.apache.org/docs/r#{release}/"
end
version '0.14' do
self.release = '0.14.0'
self.base_url = "https://pig.apache.org/docs/r#{release}/"
end
version '0.13' do
self.release = '0.13.0'
self.base_url = "https://pig.apache.org/docs/r#{release}/"
end
end
end