mirror of https://github.com/freeCodeCamp/devdocs
parent
b39b98d133
commit
9c21cbd3ee
@ -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
|
Loading…
Reference in new issue