File tree 2 files changed +6
-6
lines changed
assets/javascripts/templates/pages
2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -483,7 +483,7 @@ credits = [
483
483
' https://ctan.org/pkg/latex2e-help-texinfo/'
484
484
], [
485
485
' Leaflet' ,
486
- ' 2010-2019 Vladimir Agafonkin<br>© 2010-2011, CloudMade<br>Maps © OpenStreetMap contributors.' ,
486
+ ' 2010-2021 Vladimir Agafonkin<br>© 2010-2011, CloudMade<br>Maps © OpenStreetMap contributors.' ,
487
487
' BSD' ,
488
488
' https://raw.githubusercontent.com/Leaflet/Leaflet/master/LICENSE'
489
489
], [
Original file line number Diff line number Diff line change @@ -14,14 +14,14 @@ class Leaflet < UrlScraper
14
14
options [ :skip_links ] = true
15
15
16
16
options [ :attribution ] = <<-HTML
17
- © 2010–2019 Vladimir Agafonkin< br >
17
+ © 2010–2021 Vladimir Agafonkin< br >
18
18
© 2010–2011, CloudMade< br >
19
19
Maps © OpenStreetMap contributors.
20
20
HTML
21
21
22
22
version '1.7' do
23
23
self . release = '1.7.1'
24
- self . base_url = "https://leafletjs.com/reference- #{ release } .html"
24
+ self . base_url = "https://leafletjs.com/reference.html"
25
25
end
26
26
27
27
version '1.6' do
@@ -60,9 +60,9 @@ class Leaflet < UrlScraper
60
60
end
61
61
62
62
def get_latest_version ( opts )
63
- doc = fetch_doc ( 'https://leafletjs.com/index .html' , opts )
64
- link = doc . css ( ' ul > li > a') . to_a . select { | node | node . content == 'Docs' } . first
65
- link [ 'href' ] . scan ( /reference-([0-9.]+) \. html/ ) [ 0 ] [ 0 ]
63
+ doc = fetch_doc ( 'https://leafletjs.com/reference-versions .html' , opts )
64
+ link = doc . at_css ( '.container > ul > li:last-child > a') . content
65
+ link . sub ( /[a-zA-Z \s ]*/ , '' )
66
66
end
67
67
end
68
68
end
You can’t perform that action at this time.
0 commit comments