added ns logic to api_url

This commit is contained in:
Spocke
2016-07-01 15:32:52 +02:00
parent d343ec8f4a
commit a78da7ae28
+8 -1
View File
@@ -1,7 +1,14 @@
module Jekyll
module APIURLFilter
def api_url(input)
input.downcase if !input.nil?
fullName = input.downcase
if fullName == "tinymce"
"tinymce/root_tinymce"
else
namespace = fullName.gsub(/\.[^.]+$/, "")
namespace + "/" + fullName if !input.nil?
end
end
end
end