浏览代码

Clean footer from R packages

Only exist in the newer way of building html pages, via configure
Cimbali 4 年之前
父节点
当前提交
42731d6407
共有 1 个文件被更改,包括 2 次插入0 次删除
  1. 2 0
      lib/docs/filters/r/clean_html.rb

+ 2 - 0
lib/docs/filters/r/clean_html.rb

@@ -16,6 +16,8 @@ module Docs
           summary = at_css('table[summary]')
           summary = at_css('table[summary]')
           summary.remove if summary
           summary.remove if summary
 
 
+          css('hr ~ *, hr').remove
+
         elsif slug_parts[-2] == 'manual'
         elsif slug_parts[-2] == 'manual'
           css('table.menu, div.header, hr, h2.contents-heading, div.contents, table.index-cp, table.index-vr, table[summary]').remove
           css('table.menu, div.header, hr, h2.contents-heading, div.contents, table.index-cp, table.index-vr, table[summary]').remove