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.
38 lines
996 B
38 lines
996 B
7 years ago
|
module Docs
|
||
|
class Leaflet < UrlScraper
|
||
|
self.name = 'Leaflet'
|
||
|
self.type = 'leaflet'
|
||
|
self.slug = 'leaflet'
|
||
|
self.links = {
|
||
|
home: 'http://leafletjs.com/',
|
||
|
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
|
||
|
© 2017 <a href="http://agafonkin.com/en">Vladimir Agafonkin</a>.
|
||
|
Maps © <a href="http://openstreetmap.org/copyright">OpenStreetMap</a> contributors.</p>
|
||
|
HTML
|
||
|
|
||
|
version '1.2' do
|
||
|
self.release = '1.2.0'
|
||
|
self.base_url = "http://leafletjs.com/reference-#{release}.html"
|
||
|
end
|
||
|
|
||
|
version '1.1' do
|
||
|
self.release = '1.1.0'
|
||
|
self.base_url = "http://leafletjs.com/reference-#{release}.html"
|
||
|
end
|
||
|
|
||
|
version '1.0' do
|
||
|
self.release = '1.0.3'
|
||
|
self.base_url = "http://leafletjs.com/reference-#{release}.html"
|
||
|
end
|
||
|
|
||
|
end
|
||
|
end
|