diff --git a/lib/docs/filters/nokogiri2/attribution.rb b/lib/docs/filters/nokogiri2/attribution.rb deleted file mode 100644 index 1f4ec420..00000000 --- a/lib/docs/filters/nokogiri2/attribution.rb +++ /dev/null @@ -1,12 +0,0 @@ -# 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' - %(#{url}) - end - end - end -end diff --git a/lib/docs/scrapers/nokogiri2.rb b/lib/docs/scrapers/nokogiri2.rb index 9b916a40..cef6e565 100644 --- a/lib/docs/scrapers/nokogiri2.rb +++ b/lib/docs/scrapers/nokogiri2.rb @@ -8,9 +8,9 @@ module Docs self.name = 'Nokogiri' self.slug = 'nokogiri' self.release = '1.13.0' + self.base_url = "https://nokogiri.org/rdoc/" html_filters.replace 'rdoc/entries', 'nokogiri2/entries' - text_filters.replace 'attribution', 'nokogiri2/attribution' options[:root_title] = 'Nokogiri' options[:only_patterns] = [/\ANokogiri/, /\AXSD/]