History

Fix Scala 2 docs having a “_root_” type

Nicolas Ettlin committed 4 years ago

Commit 17be27f1 parent 2584ecc1 file · +2 −2Browse files

Unified · Split

lib/docs/filters/scala/entries.rb+2−2
@@ -75,12 +75,12 @@ module Docs · 74 unmodified lines
7575 # include the companion object.
7676 def package_name
7777 name = package_drop_last(slug_parts)
78− name.empty? ? '_root_' : name
78+ name.empty? ? 'scala' : name
7979 end
8080
8181 def parent_package
8282 parent = package_drop_last(package_name.split('.'))
83− parent.empty? ? '_root_' : parent
83+ parent.empty? ? 'scala' : parent
8484 end
8585
8686 def package_drop_last(parts)

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t