浏览代码

mdn: remove contribute_link

Simon Legner 4 年之前
父节点
当前提交
92d8a8ec47
共有 2 个文件被更改,包括 0 次插入20 次删除
  1. 0 19
      lib/docs/filters/mdn/contribute_link.rb
  2. 0 1
      lib/docs/scrapers/mdn/mdn.rb

+ 0 - 19
lib/docs/filters/mdn/contribute_link.rb

@@ -1,19 +0,0 @@
-module Docs
-  class Mdn
-    class ContributeLinkFilter < Filter
-      def call
-        return html if current_url.host != 'developer.mozilla.org'
-
-        html << <<-HTML.strip_heredoc
-          <div class="_attribution">
-            <p class="_attribution-p">
-              <a href="#{current_url}$edit" class="_attribution-link">Edit this page on MDN</a>
-            </p>
-          </div>
-        HTML
-
-        html
-      end
-    end
-  end
-end

+ 0 - 1
lib/docs/scrapers/mdn/mdn.rb

@@ -7,7 +7,6 @@ module Docs
     params[:macros] = 1
 
     html_filters.push 'mdn/clean_html'
-    text_filters.insert_before 'attribution', 'mdn/contribute_link'
 
     options[:rate_limit] = 200
     options[:trailing_slash] = false