|
|
@@ -12,7 +12,13 @@ module Docs
|
|
|
end
|
|
|
|
|
|
def get_type
|
|
|
- if breadcrumbs.size > 1
|
|
|
+ if subpath.starts_with?('classes')
|
|
|
+ 'Classes'
|
|
|
+ elsif subpath.starts_with?('hooks')
|
|
|
+ 'Hooks'
|
|
|
+ elsif subpath.starts_with?('functions')
|
|
|
+ 'Functions'
|
|
|
+ elsif breadcrumbs.size > 1
|
|
|
breadcrumbs.drop(1).join(': ')
|
|
|
else
|
|
|
at_css('.breadcrumbs .trail-end').content
|