mirror of https://github.com/freeCodeCamp/devdocs
parent
6af0eb4e50
commit
efd45d5961
@ -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'
|
|
||||||
%(<a href="#{url}" class="_attribution-link">#{url}</a>)
|
|
||||||
end
|
|
||||||
end
|
|
||||||
end
|
|
||||||
end
|
|
Loading…
Reference in new issue