diff --git a/assets/javascripts/templates/pages/about_tmpl.coffee b/assets/javascripts/templates/pages/about_tmpl.coffee
index f72b00a0..365f20d9 100644
--- a/assets/javascripts/templates/pages/about_tmpl.coffee
+++ b/assets/javascripts/templates/pages/about_tmpl.coffee
@@ -388,7 +388,7 @@ credits = [
'https://raw.githubusercontent.com/wycats/handlebars.js/master/LICENSE'
], [
'HAProxy',
- '2021 Willy Tarreau, HAProxy contributors',
+ '2022 Willy Tarreau, HAProxy contributors',
'GPLv2',
'https://raw.githubusercontent.com/haproxy/haproxy/master/LICENSE'
], [
diff --git a/lib/docs/scrapers/haproxy.rb b/lib/docs/scrapers/haproxy.rb
index db558563..8c9349a0 100644
--- a/lib/docs/scrapers/haproxy.rb
+++ b/lib/docs/scrapers/haproxy.rb
@@ -16,18 +16,23 @@ module Docs
options[:follow_links] = false
options[:attribution] = <<-HTML
- © 2021 Willy Tarreau, HAProxy contributors
+ © 2022 Willy Tarreau, HAProxy contributors
Licensed under the GNU General Public License version 2.
HTML
+ version '2.6' do
+ self.release = '2.6.5'
+ self.base_url = "https://docs.haproxy.org/#{self.version}/"
+ end
+
version '2.5' do
- self.release = '2.5.0'
- self.base_url = "https://cbonte.github.io/haproxy-dconv/#{self.version}/"
+ self.release = '2.5.8'
+ self.base_url = "https://docs.haproxy.org/#{self.version}/"
end
version '2.4' do
- self.release = '2.4.0'
- self.base_url = "https://cbonte.github.io/haproxy-dconv/#{self.version}/"
+ self.release = '2.4.18'
+ self.base_url = "https://docs.haproxy.org/#{self.version}/"
end
version '2.3' do
@@ -66,8 +71,8 @@ module Docs
end
def get_latest_version(opts)
- doc = fetch_doc('http://www.haproxy.org', opts)
- doc.at_css('table[cols=6]').css('tr')[1].at_css('td').content
+ doc = fetch_doc('https://www.haproxy.org', opts)
+ doc.at_css('table[cols=6]').at_css('tr:not(:first-child) > td:first-child:not(:contains("dev"))').content
end
end
end