浏览代码

Remove content on the index page

Nicolas Ettlin 3 年之前
父节点
当前提交
545806a457
共有 1 个文件被更改,包括 8 次插入1 次删除
  1. 8 1
      lib/docs/filters/scala/clean_html_v3.rb

+ 8 - 1
lib/docs/filters/scala/clean_html_v3.rb

@@ -11,7 +11,14 @@ module Docs
         format_signature
         format_signature
         format_top_links
         format_top_links
         format_metadata
         format_metadata
-        format_members
+
+        # Remove the redundant long descriptions on the main page
+        if slug == 'index'
+          css('.contents').remove
+        else
+          format_members
+        end
+        
         simplify_html
         simplify_html
 
 
         doc
         doc