Quellcode durchsuchen

Update HAProxy documentation (2.8.0)

Simon Legner vor 2 Jahren
Ursprung
Commit
58446f23fb
2 geänderte Dateien mit 7 neuen und 2 gelöschten Zeilen
  1. 1 1
      lib/docs/filters/haproxy/entries.rb
  2. 6 1
      lib/docs/scrapers/haproxy.rb

+ 1 - 1
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

+ 6 - 1
lib/docs/scrapers/haproxy.rb

@@ -16,10 +16,15 @@ module Docs
     options[:follow_links] = false
 
     options[:attribution] = <<-HTML
-      &copy; 2022 Willy Tarreau, HAProxy contributors<br>
+      &copy; 2023 Willy Tarreau, HAProxy contributors<br>
       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}/"