From 58446f23fb5070e81575c5b1ca1c235c9d8f7e0c Mon Sep 17 00:00:00 2001 From: Simon Legner Date: Wed, 2 Aug 2023 22:16:21 +0200 Subject: [PATCH] Update HAProxy documentation (2.8.0) --- lib/docs/filters/haproxy/entries.rb | 2 +- lib/docs/scrapers/haproxy.rb | 7 ++++++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/lib/docs/filters/haproxy/entries.rb b/lib/docs/filters/haproxy/entries.rb index 8a8d90ca..785b8ac3 100755 --- a/lib/docs/filters/haproxy/entries.rb +++ b/lib/docs/filters/haproxy/entries.rb @@ -34,7 +34,7 @@ module Docs node.css('.keyword').each do |n| name = n.at_css('b').content id = n['id'] - entries << [name, URI.escape(id), REPLACE_TYPE[type] || type] + entries << [name, id, REPLACE_TYPE[type] || type] end end end diff --git a/lib/docs/scrapers/haproxy.rb b/lib/docs/scrapers/haproxy.rb index 8fb07165..bac09b9c 100644 --- a/lib/docs/scrapers/haproxy.rb +++ b/lib/docs/scrapers/haproxy.rb @@ -16,10 +16,15 @@ module Docs options[:follow_links] = false options[:attribution] = <<-HTML - © 2022 Willy Tarreau, HAProxy contributors
+ © 2023 Willy Tarreau, HAProxy contributors
Licensed under the GNU General Public License version 2. HTML + version '2.8' do + self.release = '2.8.0' + self.base_url = "https://docs.haproxy.org/#{self.version}/" + end + version '2.7' do self.release = '2.7.0' self.base_url = "https://docs.haproxy.org/#{self.version}/"