Update Nokogiri documentation (1.13.0)

pull/1692/head
Simon Legner 3 years ago
parent b39b98d133
commit 9c21cbd3ee

@ -589,7 +589,7 @@ credits = [
'https://raw.githubusercontent.com/nodejs/node/master/LICENSE'
], [
'Nokogiri',
'2008-2018 Aaron Patterson, Mike Dalessio, Charles Nutter, Sergio Arbeo, Patrick Mahoney, Yoko Harada, Akinori MUSHA, John Shahid, Lars Kanis',
'20082021 Aaron Patterson, Mike Dalessio, Charles Nutter, Sergio Arbeo, Patrick Mahoney, Yoko Harada, Akinori MUSHA, John Shahid, Lars Kanis',
'MIT',
'https://raw.githubusercontent.com/sparklemotion/nokogiri/master/LICENSE.md'
], [

@ -0,0 +1,12 @@
# frozen_string_literal: true
module Docs
class Nokogiri2
class AttributionFilter < Docs::AttributionFilter
def attribution_link
url = current_url.to_s.sub! 'http://localhost', 'https://nokogiri.org/rdoc'
%(<a href="#{url}" class="_attribution-link">#{url}</a>)
end
end
end
end

@ -7,15 +7,16 @@ module Docs
self.name = 'Nokogiri'
self.slug = 'nokogiri'
self.release = '1.10.4'
self.release = '1.13.0'
html_filters.replace 'rdoc/entries', 'nokogiri2/entries'
text_filters.replace 'attribution', 'nokogiri2/attribution'
options[:root_title] = 'Nokogiri'
options[:only_patterns] = [/\ANokogiri/, /\AXSD/]
options[:attribution] = <<-HTML
&copy; 2008&ndash;2018 Aaron Patterson, Mike Dalessio, Charles Nutter, Sergio Arbeo,<br>
&copy; 2008&ndash;2021 Aaron Patterson, Mike Dalessio, Charles Nutter, Sergio Arbeo,<br>
Patrick Mahoney, Yoko Harada, Akinori MUSHA, John Shahid, Lars Kanis<br>
Licensed under the MIT License.
HTML

Loading…
Cancel
Save