|
|
@ -14,27 +14,12 @@ module Docs
|
|
|
|
at_css('h1').content
|
|
|
|
at_css('h1').content
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
|
|
def get_name_other
|
|
|
|
|
|
|
|
header = at_css('h1')
|
|
|
|
|
|
|
|
if header
|
|
|
|
|
|
|
|
header.content
|
|
|
|
|
|
|
|
else
|
|
|
|
|
|
|
|
path_parts.last.titleize
|
|
|
|
|
|
|
|
end
|
|
|
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def get_type
|
|
|
|
def get_type
|
|
|
|
if path_parts.length <= 1
|
|
|
|
if path_parts.length <= 1
|
|
|
|
data = at_css('h1').content
|
|
|
|
at_css('h1').content
|
|
|
|
else
|
|
|
|
else
|
|
|
|
data = path_parts[0...path_parts.length-1].join(": ").titleize + ": " + at_css('h1').content
|
|
|
|
path_parts[0...-1].join(": ").titleize + ": " + at_css('h1').content
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
data
|
|
|
|
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
|
|
def path_count
|
|
|
|
|
|
|
|
path_parts.length
|
|
|
|
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
|
|
def additional_entries
|
|
|
|
def additional_entries
|
|
|
|