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/leaflet.rb

44 lines
1.1 KiB

7 years ago
module Docs
class Leaflet < UrlScraper
self.name = 'Leaflet'
self.type = 'simple'
7 years ago
self.slug = 'leaflet'
self.links = {
home: 'https://leafletjs.com/',
7 years ago
code: 'https://github.com/Leaflet/Leaflet'
}
html_filters.push 'leaflet/entries', 'leaflet/clean_html', 'title'
options[:container] = '.container'
options[:skip_links] = true
options[:attribution] = <<-HTML
&copy; 2010&ndash;2018 Vladimir Agafonkin<br>
&copy; 2010&ndash;2011, CloudMade<br>
Maps &copy; OpenStreetMap contributors.
7 years ago
HTML
version '1.3' do
self.release = '1.3.4'
self.base_url = "https://leafletjs.com/reference-#{release}.html"
end
7 years ago
version '1.2' do
self.release = '1.2.0'
self.base_url = "https://leafletjs.com/reference-#{release}.html"
7 years ago
end
version '1.1' do
self.release = '1.1.0'
self.base_url = "https://leafletjs.com/reference-#{release}.html"
7 years ago
end
version '1.0' do
self.release = '1.0.3'
self.base_url = "https://leafletjs.com/reference-#{release}.html"
7 years ago
end
end
end