[devdocsgjs/main: 206/239] Remove content on the index page




commit 545806a457dad515207fdf8fe5d847ffac1ba81b
Author: Nicolas Ettlin <nicolas ettlin me com>
Date:   Wed Feb 16 19:49:42 2022 +0100

    Remove content on the index page

 lib/docs/filters/scala/clean_html_v3.rb | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)
---
diff --git a/lib/docs/filters/scala/clean_html_v3.rb b/lib/docs/filters/scala/clean_html_v3.rb
index a6b2fcee..28c090fd 100644
--- a/lib/docs/filters/scala/clean_html_v3.rb
+++ b/lib/docs/filters/scala/clean_html_v3.rb
@@ -11,7 +11,14 @@ module Docs
         format_signature
         format_top_links
         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
 
         doc


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]