diff --git a/assets/javascripts/templates/pages/about_tmpl.coffee b/assets/javascripts/templates/pages/about_tmpl.coffee
index e4914dc7..72cc9451 100644
--- a/assets/javascripts/templates/pages/about_tmpl.coffee
+++ b/assets/javascripts/templates/pages/about_tmpl.coffee
@@ -494,7 +494,7 @@ credits = [
'https://ctan.org/pkg/latex2e-help-texinfo/'
], [
'Leaflet',
- '2010-2021 Vladimir Agafonkin
© 2010-2011, CloudMade
Maps © OpenStreetMap contributors.',
+ '2010-2022 Vladimir Agafonkin
© 2010-2011, CloudMade
Maps © OpenStreetMap contributors.',
'BSD',
'https://raw.githubusercontent.com/Leaflet/Leaflet/master/LICENSE'
], [
diff --git a/lib/docs/scrapers/leaflet.rb b/lib/docs/scrapers/leaflet.rb
index 31ec27e7..52bae4ff 100644
--- a/lib/docs/scrapers/leaflet.rb
+++ b/lib/docs/scrapers/leaflet.rb
@@ -14,14 +14,19 @@ module Docs
options[:skip_links] = true
options[:attribution] = <<-HTML
- © 2010–2021 Vladimir Agafonkin
+ © 2010–2022 Vladimir Agafonkin
© 2010–2011, CloudMade
Maps © OpenStreetMap contributors.
HTML
+ version '1.8' do
+ self.release = '1.8.0'
+ self.base_url = "https://leafletjs.com/SlavaUkraini/reference.html"
+ end
+
version '1.7' do
self.release = '1.7.1'
- self.base_url = "https://leafletjs.com/reference.html"
+ self.base_url = "https://leafletjs.com/reference-#{release}.html"
end
version '1.6' do
@@ -31,7 +36,7 @@ module Docs
version '1.5' do
self.release = '1.5.1'
- self.base_url = "https://leafletjs.com/reference-1.5.0.html"
+ self.base_url = "https://leafletjs.com/reference-#{release}.html"
end
version '1.4' do