|
|
@ -7,6 +7,13 @@ module Docs
|
|
|
|
name.remove! %r{ \- .*}
|
|
|
|
name.remove! %r{ \- .*}
|
|
|
|
name.remove! 'Introduction To '
|
|
|
|
name.remove! 'Introduction To '
|
|
|
|
name.remove! %r{ Guide\z}
|
|
|
|
name.remove! %r{ Guide\z}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if version == "2.10"
|
|
|
|
|
|
|
|
if slug =~ /\Acollections\// and slug !~ /index$/
|
|
|
|
|
|
|
|
name = name.split('.')[2]
|
|
|
|
|
|
|
|
end
|
|
|
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
|
|
name
|
|
|
|
name
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
|
@ -21,6 +28,12 @@ module Docs
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if version == "2.10"
|
|
|
|
|
|
|
|
if slug =~ /\Acollections\//
|
|
|
|
|
|
|
|
return "Collection #{slug.split('/')[1..-2].join(".")}"
|
|
|
|
|
|
|
|
end
|
|
|
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
|
|
if slug =~ /\Acli\//
|
|
|
|
if slug =~ /\Acli\//
|
|
|
|
'CLI Reference'
|
|
|
|
'CLI Reference'
|
|
|
|
elsif slug =~ /\Anetwork\//
|
|
|
|
elsif slug =~ /\Anetwork\//
|
|
|
|