[devdocsgjs/main: 198/239] Fix Scala 2 docs having a “_root_” type




commit 17be27fc61a1b60e67e0c08d85aa24a21d5da939
Author: Nicolas Ettlin <nicolas ettlin me com>
Date:   Fri Feb 11 18:39:55 2022 +0100

    Fix Scala 2 docs having a “_root_” type

 lib/docs/filters/scala/entries.rb | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/lib/docs/filters/scala/entries.rb b/lib/docs/filters/scala/entries.rb
index 5eff47fb..cf930faa 100644
--- a/lib/docs/filters/scala/entries.rb
+++ b/lib/docs/filters/scala/entries.rb
@@ -75,12 +75,12 @@ module Docs
       # include the companion object.
       def package_name
         name = package_drop_last(slug_parts)
-        name.empty? ? '_root_' : name
+        name.empty? ? 'scala' : name
       end
 
       def parent_package
         parent = package_drop_last(package_name.split('.'))
-        parent.empty? ? '_root_' : parent
+        parent.empty? ? 'scala' : parent
       end
 
       def package_drop_last(parts)


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