瀏覽代碼

graphviz: clean html

Simon Legner 2 月之前
父節點
當前提交
816a484ec9
共有 1 個文件被更改,包括 3 次插入0 次删除
  1. 3 0
      lib/docs/filters/graphviz/clean_html.rb

+ 3 - 0
lib/docs/filters/graphviz/clean_html.rb

@@ -7,6 +7,9 @@ module Docs
         content = at_css('.td-content')
         @doc = content if content
 
+        css('a:contains("Search the Graphviz codebase")').remove
+        css('.td-page-meta__lastmod').remove
+
         css('pre:has(code)').each do |node|
           pre = Nokogiri::XML::Node.new('pre', @doc)
           code = node.at_css('code')