Update HAProxy documentation (2.6.5)

pull/1810/head
Simon Legner 2 years ago
parent cf2c992c14
commit d55d41b03c

@ -388,7 +388,7 @@ credits = [
'https://raw.githubusercontent.com/wycats/handlebars.js/master/LICENSE' 'https://raw.githubusercontent.com/wycats/handlebars.js/master/LICENSE'
], [ ], [
'HAProxy', 'HAProxy',
'2021 Willy Tarreau, HAProxy contributors', '2022 Willy Tarreau, HAProxy contributors',
'GPLv2', 'GPLv2',
'https://raw.githubusercontent.com/haproxy/haproxy/master/LICENSE' 'https://raw.githubusercontent.com/haproxy/haproxy/master/LICENSE'
], [ ], [

@ -16,18 +16,23 @@ module Docs
options[:follow_links] = false options[:follow_links] = false
options[:attribution] = <<-HTML options[:attribution] = <<-HTML
&copy; 2021 Willy Tarreau, HAProxy contributors<br> &copy; 2022 Willy Tarreau, HAProxy contributors<br>
Licensed under the GNU General Public License version 2. Licensed under the GNU General Public License version 2.
HTML HTML
version '2.6' do
self.release = '2.6.5'
self.base_url = "https://docs.haproxy.org/#{self.version}/"
end
version '2.5' do version '2.5' do
self.release = '2.5.0' self.release = '2.5.8'
self.base_url = "https://cbonte.github.io/haproxy-dconv/#{self.version}/" self.base_url = "https://docs.haproxy.org/#{self.version}/"
end end
version '2.4' do version '2.4' do
self.release = '2.4.0' self.release = '2.4.18'
self.base_url = "https://cbonte.github.io/haproxy-dconv/#{self.version}/" self.base_url = "https://docs.haproxy.org/#{self.version}/"
end end
version '2.3' do version '2.3' do
@ -66,8 +71,8 @@ module Docs
end end
def get_latest_version(opts) def get_latest_version(opts)
doc = fetch_doc('http://www.haproxy.org', opts) doc = fetch_doc('https://www.haproxy.org', opts)
doc.at_css('table[cols=6]').css('tr')[1].at_css('td').content doc.at_css('table[cols=6]').at_css('tr:not(:first-child) > td:first-child:not(:contains("dev"))').content
end end
end end
end end

Loading…
Cancel
Save